class Cairo::FontOptions
Public Class Methods
Source
static VALUE cr_options_create (VALUE self) { cairo_font_options_t *options; options = cairo_font_options_create (); cr_options_check_status (options); RTYPEDDATA_DATA (self) = options; return Qnil; }
Public Instance Methods
Source
static VALUE cr_options_equal (VALUE self, VALUE other) { if (!rb_cairo__is_kind_of (other, rb_cCairo_FontOptions)) return Qfalse; return CBOOL2RVAL (cairo_font_options_equal (_SELF (self), _SELF (other))); }
Also aliased as: eql?
Source
static VALUE cr_options_get_antialias (VALUE self) { return INT2NUM (cairo_font_options_get_antialias (_SELF (self))); }
Source
static VALUE cr_options_get_color_mode (VALUE self) { return INT2NUM (cairo_font_options_get_color_mode (_SELF (self))); }
Source
static VALUE cr_options_get_color_palette (VALUE self) { return UINT2NUM (cairo_font_options_get_color_palette (_SELF (self))); }
Source
static VALUE cr_options_copy (VALUE self) { return CRFONTOPTIONS2RVAL (_SELF (self)); }
Source
static VALUE cr_options_hash (VALUE self) { return ULONG2NUM (cairo_font_options_hash (_SELF (self))); }
Source
static VALUE cr_options_get_hint_metrics (VALUE self) { return INT2NUM (cairo_font_options_get_hint_metrics (_SELF (self))); }
Source
static VALUE cr_options_get_hint_style (VALUE self) { return INT2NUM (cairo_font_options_get_hint_style (_SELF (self))); }
Source
static VALUE cr_options_merge (VALUE self, VALUE other) { cairo_font_options_merge (_SELF (self), _SELF (other)); return self; }
Also aliased as: update
Source
static VALUE cr_options_set_antialias (VALUE self, VALUE antialias) { cairo_font_options_set_antialias (_SELF (self), RVAL2CRANTIALIAS (antialias)); return self; }
Source
static VALUE cr_options_set_color_mode (VALUE self, VALUE mode) { cairo_font_options_set_color_mode (_SELF (self), RVAL2CRCOLORMODE (mode)); return self; }
Source
static VALUE cr_options_set_color_palette (VALUE self, VALUE index) { cairo_font_options_set_color_palette (_SELF (self), NUM2UINT (index)); return self; }
Source
static VALUE cr_options_set_custom_palette_color (VALUE self, VALUE index, VALUE red, VALUE green, VALUE blue, VALUE alpha) { cairo_font_options_set_custom_palette_color (_SELF (self), NUM2UINT (index), NUM2DBL (red), NUM2DBL (green), NUM2DBL (blue), NUM2DBL (alpha)); return self; }
Source
static VALUE cr_options_set_hint_metrics (VALUE self, VALUE hint_metrics) { cairo_font_options_set_hint_metrics (_SELF (self), RVAL2CRHINTMETRICS (hint_metrics)); return self; }
Source
static VALUE cr_options_set_hint_style (VALUE self, VALUE hint_style) { cairo_font_options_set_hint_style (_SELF (self), RVAL2CRHINTSTYLE (hint_style)); return self; }
Source
static VALUE cr_options_set_subpixel_order (VALUE self, VALUE subpixel_order) { cairo_font_options_set_subpixel_order (_SELF (self), RVAL2CRSUBPIXELORDER (subpixel_order)); return self; }
Source
static VALUE cr_options_set_variations (VALUE self, VALUE variations) { cairo_font_options_set_variations (_SELF (self), RVAL2CSTR (variations)); return self; }
Source
static VALUE cr_options_get_subpixel_order (VALUE self) { return INT2NUM (cairo_font_options_get_subpixel_order (_SELF (self))); }
Source
static VALUE cr_options_get_variations (VALUE self) { const char *variations; variations = cairo_font_options_get_variations (_SELF (self)); if (!variations) return Qnil; return CSTR2RVAL (variations); }