Class: Cairo::FontOptions
- Inherits:
-
Object
- Object
- Cairo::FontOptions
- Defined in:
- lib/cairo.rb,
ext/cairo/rb_cairo_font_options.c
Instance Method Summary collapse
- #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
- #subpixel_order ⇒ Object
Constructor Details
#initialize ⇒ Object
68 69 70 71 72 73 74 75 76 77 |
# File 'ext/cairo/rb_cairo_font_options.c', line 68 static VALUE (VALUE self) { *; = (); (); DATA_PTR (self) = ; return Qnil; } |
Instance Method Details
#antialias ⇒ Object
115 116 117 118 119 |
# File 'ext/cairo/rb_cairo_font_options.c', line 115 static VALUE (VALUE self) { return INT2NUM ( (_SELF (self))); } |
#dup ⇒ Object
79 80 81 82 83 84 85 86 87 |
# File 'ext/cairo/rb_cairo_font_options.c', line 79 static VALUE (VALUE self) { *; = (_SELF (self)); (); return CRFONTOPTIONS2RVAL (); } |
#eql? ⇒ Boolean
96 97 98 99 100 |
# File 'ext/cairo/rb_cairo_font_options.c', line 96 static VALUE (VALUE self, VALUE other) { return CBOOL2RVAL ( (_SELF (self), _SELF (other))); } |
#hash ⇒ Object
102 103 104 105 106 |
# File 'ext/cairo/rb_cairo_font_options.c', line 102 static VALUE (VALUE self) { return INT2NUM ( (_SELF (self))); } |
#hint_metrics ⇒ Object
157 158 159 160 161 |
# File 'ext/cairo/rb_cairo_font_options.c', line 157 static VALUE (VALUE self) { return INT2NUM ( (_SELF (self))); } |
#hint_style ⇒ Object
143 144 145 146 147 |
# File 'ext/cairo/rb_cairo_font_options.c', line 143 static VALUE (VALUE self) { return INT2NUM ( (_SELF (self))); } |
#merge(other) ⇒ Object
135 136 137 |
# File 'lib/cairo.rb', line 135 def merge(other) dup.merge!(other) end |
#merge! ⇒ Object Also known as: update
89 90 91 92 93 94 |
# File 'ext/cairo/rb_cairo_font_options.c', line 89 static VALUE (VALUE self, VALUE other) { (_SELF (self), _SELF (other)); return self; } |
#set_antialias ⇒ Object
108 109 110 111 112 113 |
# File 'ext/cairo/rb_cairo_font_options.c', line 108 static VALUE (VALUE self, VALUE antialias) { (_SELF (self), RVAL2CRANTIALIAS (antialias)); return self; } |
#set_hint_metrics ⇒ Object
149 150 151 152 153 154 155 |
# File 'ext/cairo/rb_cairo_font_options.c', line 149 static VALUE (VALUE self, VALUE hint_metrics) { (_SELF (self), RVAL2CRHINTMETRICS (hint_metrics)); return self; } |
#set_hint_style ⇒ Object
135 136 137 138 139 140 141 |
# File 'ext/cairo/rb_cairo_font_options.c', line 135 static VALUE (VALUE self, VALUE hint_style) { (_SELF (self), RVAL2CRHINTSTYLE (hint_style)); return self; } |
#set_subpixel_order ⇒ Object
121 122 123 124 125 126 127 |
# File 'ext/cairo/rb_cairo_font_options.c', line 121 static VALUE (VALUE self, VALUE subpixel_order) { (_SELF (self), RVAL2CRSUBPIXELORDER (subpixel_order)); return self; } |
#subpixel_order ⇒ Object
129 130 131 132 133 |
# File 'ext/cairo/rb_cairo_font_options.c', line 129 static VALUE (VALUE self) { return INT2NUM ( (_SELF (self))); } |