Module: Iup::ImageAttributes
- Includes:
- AttributeReference
- Defined in:
- lib/wrapped/image-attributes.rb
Overview
Defines attributes for widgets which contain images.
Instance Method Summary collapse
-
#image(val = nil) ⇒ Object
Sets the image to display, based on an image or image name.
-
#iminactive(val = nil) ⇒ Object
Sets the image to display when inactive, based on an image or image name.
-
#impress(val = nil) ⇒ Object
Sets the image to display when pressed, based on an image or image name.
Methods included from AttributeReference
Instance Method Details
#image(val = nil) ⇒ Object
Sets the image to display, based on an image or image name. This can use an actual image object, or the name of an image from IupImageLib.
11 12 13 |
# File 'lib/wrapped/image-attributes.rb', line 11 def image val=nil attribute_reference 'IMAGE', ImageWidget, val end |
#iminactive(val = nil) ⇒ Object
Sets the image to display when inactive, based on an image or image name.
16 17 18 |
# File 'lib/wrapped/image-attributes.rb', line 16 def iminactive val=nil attribute_reference 'IMINACTION', ImageWidget, val end |
#impress(val = nil) ⇒ Object
Sets the image to display when pressed, based on an image or image name.
21 22 23 |
# File 'lib/wrapped/image-attributes.rb', line 21 def impress val=nil attribute_reference 'IMPRESS', ImageWidget, val end |