Class: FX::Font
- Inherits:
-
Object
- Object
- FX::Font
- Defined in:
- lib/libGUIb14.rb,
lib/libGUIb16.rb
Instance Attribute Summary collapse
-
#fd ⇒ Object
Returns the value of attribute fd.
Instance Method Summary collapse
- #from_FXFont(f) ⇒ Object
- #from_s(s) ⇒ Object
-
#initialize ⇒ Font
constructor
A new instance of Font.
- #to_FXFont ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize ⇒ Font
Returns a new instance of Font.
218 219 220 |
# File 'lib/libGUIb14.rb', line 218 def initialize @fd = Fox::FXFontDesc.new end |
Instance Attribute Details
#fd ⇒ Object
Returns the value of attribute fd.
221 222 223 |
# File 'lib/libGUIb14.rb', line 221 def fd @fd end |
Instance Method Details
#from_FXFont(f) ⇒ Object
237 238 239 240 |
# File 'lib/libGUIb14.rb', line 237 def from_FXFont f @fd = f.fontDesc self end |
#from_s(s) ⇒ Object
226 227 228 229 |
# File 'lib/libGUIb14.rb', line 226 def from_s s @fd.from_s s self end |
#to_FXFont ⇒ Object
231 232 233 234 235 |
# File 'lib/libGUIb14.rb', line 231 def to_FXFont f = Fox::FXFont.new $fxapp, @fd f.create f end |
#to_s ⇒ Object
222 223 224 |
# File 'lib/libGUIb14.rb', line 222 def to_s @fd.to_s end |