List of all members | Public Member Functions | Public Attributes
Image Class Reference

Image widget. More...

+ Inheritance diagram for Image:

Public Member Functions

 Image (string imagePath)
 creates an Image widget on the user inteface. More...
 

Public Attributes

number alpha
 transparency value between 0.0 and 1.0
 
table bounds
 widget bounding rect {x,y,width,height}
 
function changed
 callback function used by child widgets to be notified of changes
 
string displayName
 widget display name
 
bool enabled
 boolean flag to enable / disable the widget
 
int height
 widget height in pixels
 
string image
 image path for background image
 
bool interceptsMouseClicks
 boolean flag to toggle mouse handling on widget
 
string name
 widget name
 
string overImage
 image path for background image with mouse over
 
bool persistent
 flag to tell if the widget values should be serialized when saving. True by default. Persistent widgets will call their changed function on reload
 
table position
 widget position {x,y}
 
RectanglePlacement::Type rectanglePlacement
 image alignement
 
bool showLabel
 show widgets label if any
 
table size
 widget size {width, height}
 
string tooltip
 widget tooltip, default is name
 
bool visible
 boolean flag to toggle widget visibility
 
int width
 widget width in pixels
 
int x
 x position in pixels
 
int y
 y position in pixels
 

Detailed Description

Image widget.

creates an Image widget on the user inteface.

img = Image("resources/image.png")
img.pos = {100, 100}
img.alpha = 0.5

Constructor & Destructor Documentation

Image::Image ( string  imagePath)

creates an Image widget on the user inteface.

Parameters
imagePaththe name to give to the widget