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
71 72 73 74 75 76 77 78 79 80 |
# File 'ext/cairo/rb_cairo_font_options.c', line 71 static VALUE (VALUE self) { *; = (); (); DATA_PTR (self) = ; return Qnil; } |
Instance Method Details
#== ⇒ Object
95 96 97 98 99 100 101 102 |
# File 'ext/cairo/rb_cairo_font_options.c', line 95 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
117 118 119 120 121 |
# File 'ext/cairo/rb_cairo_font_options.c', line 117 static VALUE (VALUE self) { return INT2NUM ( (_SELF (self))); } |
#dup ⇒ Object
82 83 84 85 86 |
# File 'ext/cairo/rb_cairo_font_options.c', line 82 static VALUE (VALUE self) { return CRFONTOPTIONS2RVAL (_SELF (self)); } |
#eql? ⇒ Boolean
95 96 97 98 99 100 101 102 |
# File 'ext/cairo/rb_cairo_font_options.c', line 95 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
104 105 106 107 108 |
# File 'ext/cairo/rb_cairo_font_options.c', line 104 static VALUE (VALUE self) { return INT2NUM ( (_SELF (self))); } |
#hint_metrics ⇒ Object
159 160 161 162 163 |
# File 'ext/cairo/rb_cairo_font_options.c', line 159 static VALUE (VALUE self) { return INT2NUM ( (_SELF (self))); } |
#hint_style ⇒ Object
145 146 147 148 149 |
# File 'ext/cairo/rb_cairo_font_options.c', line 145 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
88 89 90 91 92 93 |
# File 'ext/cairo/rb_cairo_font_options.c', line 88 static VALUE (VALUE self, VALUE other) { (_SELF (self), _SELF (other)); return self; } |
#set_antialias ⇒ Object
110 111 112 113 114 115 |
# File 'ext/cairo/rb_cairo_font_options.c', line 110 static VALUE (VALUE self, VALUE antialias) { (_SELF (self), RVAL2CRANTIALIAS (antialias)); return self; } |
#set_hint_metrics ⇒ Object
151 152 153 154 155 156 157 |
# File 'ext/cairo/rb_cairo_font_options.c', line 151 static VALUE (VALUE self, VALUE hint_metrics) { (_SELF (self), RVAL2CRHINTMETRICS (hint_metrics)); return self; } |
#set_hint_style ⇒ Object
137 138 139 140 141 142 143 |
# File 'ext/cairo/rb_cairo_font_options.c', line 137 static VALUE (VALUE self, VALUE hint_style) { (_SELF (self), RVAL2CRHINTSTYLE (hint_style)); return self; } |
#set_subpixel_order ⇒ Object
123 124 125 126 127 128 129 |
# File 'ext/cairo/rb_cairo_font_options.c', line 123 static VALUE (VALUE self, VALUE subpixel_order) { (_SELF (self), RVAL2CRSUBPIXELORDER (subpixel_order)); return self; } |
#set_variations ⇒ Object
166 167 168 169 170 171 172 |
# File 'ext/cairo/rb_cairo_font_options.c', line 166 static VALUE (VALUE self, VALUE variations) { (_SELF (self), RVAL2CSTR (variations)); return self; } |
#subpixel_order ⇒ Object
131 132 133 134 135 |
# File 'ext/cairo/rb_cairo_font_options.c', line 131 static VALUE (VALUE self) { return INT2NUM ( (_SELF (self))); } |
#variations ⇒ Object
174 175 176 177 178 179 180 181 182 183 184 |
# File 'ext/cairo/rb_cairo_font_options.c', line 174 static VALUE (VALUE self) { const char *variations; variations = (_SELF (self)); if (!variations) return Qnil; return CSTR2RVAL (variations); } |