Class: UI::Font
Instance Attribute Summary (collapse)
-
- (Object) proxy
readonly
Returns the value of attribute proxy.
Instance Method Summary (collapse)
-
- (Boolean) bold?
Returns wether the font is bold.
- - (Object) initialize(obj, size, trait = nil) constructor
-
- (Boolean) italic?
Returns wether the font is italic.
Constructor Details
Instance Attribute Details
- (Object) proxy (readonly)
Returns the value of attribute proxy
25 26 27 |
# File 'flow/ui/font.rb', line 25 def proxy @proxy end |
Instance Method Details
- (Boolean) bold?
Returns wether the font is bold
40 41 42 |
# File 'flow/ui/font.rb', line 40 def bold? trait == :bold or trait == :bold_italic end |
- (Boolean) italic?
Returns wether the font is italic
34 35 36 |
# File 'flow/ui/font.rb', line 34 def italic? trait == :italic or trait == :bold_italic end |