Class: Cairo::FontOptions
- Inherits:
-
Object
- Object
- Cairo::FontOptions
- Defined in:
- lib/cairo.rb,
ext/cairo/rb_cairo_font_options.c
Instance Method Summary collapse
- #== ⇒ Object
- #antialias ⇒ Object
- #dup ⇒ Object
- #eql? ⇒ Boolean
- #hash ⇒ Object
- #hint_metrics ⇒ Object
- #hint_style ⇒ Object
- #initialize ⇒ Object constructor
- #merge(other) ⇒ Object
- #merge! ⇒ Object (also: #update)
- #set_antialias ⇒ Object
- #set_hint_metrics ⇒ Object
- #set_hint_style ⇒ Object
- #set_subpixel_order ⇒ Object
- #set_variations ⇒ Object
- #subpixel_order ⇒ Object
- #variations ⇒ Object
Constructor Details
#initialize ⇒ Object
83 84 85 86 87 88 89 90 91 92 |
# File 'ext/cairo/rb_cairo_font_options.c', line 83 static VALUE (VALUE self) { *; = (); (); RTYPEDDATA_DATA (self) = ; return Qnil; } |
Instance Method Details
#== ⇒ Object
107 108 109 110 111 112 113 114 |
# File 'ext/cairo/rb_cairo_font_options.c', line 107 static VALUE (VALUE self, VALUE other) { if (!rb_cairo__is_kind_of (other, rb_cCairo_FontOptions)) return Qfalse; return CBOOL2RVAL ( (_SELF (self), _SELF (other))); } |
#antialias ⇒ Object
129 130 131 132 133 |
# File 'ext/cairo/rb_cairo_font_options.c', line 129 static VALUE (VALUE self) { return INT2NUM ( (_SELF (self))); } |
#dup ⇒ Object
94 95 96 97 98 |
# File 'ext/cairo/rb_cairo_font_options.c', line 94 static VALUE (VALUE self) { return CRFONTOPTIONS2RVAL (_SELF (self)); } |
#eql? ⇒ Boolean
107 108 109 110 111 112 113 114 |
# File 'ext/cairo/rb_cairo_font_options.c', line 107 static VALUE (VALUE self, VALUE other) { if (!rb_cairo__is_kind_of (other, rb_cCairo_FontOptions)) return Qfalse; return CBOOL2RVAL ( (_SELF (self), _SELF (other))); } |
#hash ⇒ Object
116 117 118 119 120 |
# File 'ext/cairo/rb_cairo_font_options.c', line 116 static VALUE (VALUE self) { return ULONG2NUM ( (_SELF (self))); } |
#hint_metrics ⇒ Object
171 172 173 174 175 |
# File 'ext/cairo/rb_cairo_font_options.c', line 171 static VALUE (VALUE self) { return INT2NUM ( (_SELF (self))); } |
#hint_style ⇒ Object
157 158 159 160 161 |
# File 'ext/cairo/rb_cairo_font_options.c', line 157 static VALUE (VALUE self) { return INT2NUM ( (_SELF (self))); } |
#merge(other) ⇒ Object
143 144 145 |
# File 'lib/cairo.rb', line 143 def merge(other) dup.merge!(other) end |
#merge! ⇒ Object Also known as: update
100 101 102 103 104 105 |
# File 'ext/cairo/rb_cairo_font_options.c', line 100 static VALUE (VALUE self, VALUE other) { (_SELF (self), _SELF (other)); return self; } |
#set_antialias ⇒ Object
122 123 124 125 126 127 |
# File 'ext/cairo/rb_cairo_font_options.c', line 122 static VALUE (VALUE self, VALUE antialias) { (_SELF (self), RVAL2CRANTIALIAS (antialias)); return self; } |
#set_hint_metrics ⇒ Object
163 164 165 166 167 168 169 |
# File 'ext/cairo/rb_cairo_font_options.c', line 163 static VALUE (VALUE self, VALUE hint_metrics) { (_SELF (self), RVAL2CRHINTMETRICS (hint_metrics)); return self; } |
#set_hint_style ⇒ Object
149 150 151 152 153 154 155 |
# File 'ext/cairo/rb_cairo_font_options.c', line 149 static VALUE (VALUE self, VALUE hint_style) { (_SELF (self), RVAL2CRHINTSTYLE (hint_style)); return self; } |
#set_subpixel_order ⇒ Object
135 136 137 138 139 140 141 |
# File 'ext/cairo/rb_cairo_font_options.c', line 135 static VALUE (VALUE self, VALUE subpixel_order) { (_SELF (self), RVAL2CRSUBPIXELORDER (subpixel_order)); return self; } |
#set_variations ⇒ Object
178 179 180 181 182 183 184 |
# File 'ext/cairo/rb_cairo_font_options.c', line 178 static VALUE (VALUE self, VALUE variations) { (_SELF (self), RVAL2CSTR (variations)); return self; } |
#subpixel_order ⇒ Object
143 144 145 146 147 |
# File 'ext/cairo/rb_cairo_font_options.c', line 143 static VALUE (VALUE self) { return INT2NUM ( (_SELF (self))); } |
#variations ⇒ Object
186 187 188 189 190 191 192 193 194 195 196 |
# File 'ext/cairo/rb_cairo_font_options.c', line 186 static VALUE (VALUE self) { const char *variations; variations = (_SELF (self)); if (!variations) return Qnil; return CSTR2RVAL (variations); } |