Module: ImgAccessors
- Included in:
- Fox::FXLabel, Fox::FXMenuCaption
- Defined in:
- lib/libGUIb16.rb,
lib/libGUIb14.rb
Instance Method Summary collapse
Instance Method Details
#img ⇒ Object
1108 1109 1110 |
# File 'lib/libGUIb16.rb', line 1108 def img @icon_filename.to_s end |
#img=(filename) ⇒ Object
1100 1101 1102 1103 1104 1105 1106 |
# File 'lib/libGUIb16.rb', line 1100 def img= filename raise TypeError unless filename.is_a? String if filename.size > 0 setIcon loadImage(filename) @icon_filename = filename end end |