Class: FX::Font

Inherits:
Object
  • Object
show all
Defined in:
lib/libGUIb14.rb,
lib/libGUIb16.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeFont

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

#fdObject

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_FXFontObject



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_sObject



222
223
224
# File 'lib/libGUIb14.rb', line 222

def to_s
  @fd.to_s
end