Module: Iup::ImageAttributes

Includes:
AttributeReference
Included in:
Button, Label, Toggle
Defined in:
lib/wrapped/image-attributes.rb

Overview

Defines attributes for widgets which contain images.

Instance Method Summary collapse

Methods included from AttributeReference

#attribute_reference

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