Image :: Image - Constructor
The constructor creates an icon definition object. Before applying the icon to a GUI resource, the icon definition might be modified.
Implementation overview
- Copy constructor
Image :: Image ( cImage ) - Create icon from path definitions
Image :: Image ( sActivePath, sNormalPath, sDisabledPath ) - Create an empty image definition
Image :: Image (  ) - - internal feature (not documented)
Image :: Image ( cIcon ) - Create icon from resource name
Image :: Image ( sResource )
Implementation details
-
Copy constructor
Image  :: Image ( odabagui::Image &cImage )
The copy constructor creates an image definition from the definition passed in cIcon.
- cImage - Reference to constant image definition
to list
-
Create icon from path definitions
Image  :: Image ( odaba::String &sActivePath, odaba::String &sNormalPath, odaba::String &sDisabledPath )
The icon definition is created from the path definitions passed in sActivePath, sInactivePath and sDisabledPath.
- sActivePath
- Path to active image
The path is a file path to an image resource stored as bitmap (.bmp), compressed image (.jpg) or in platform independent image format (.png).
- sNormalPath - Path to inactive image
- sDisabledPath
- Path to disabled image
The path is a file path to an image resource stored as bitmap (.bmp), compressed image (.jpg) or in platform independent image format (.png).
to list
- sActivePath
- Path to active image
-
Create an empty image definition
Image  :: Image (  )
The function creates an empty icon definition. Before using an empty (invalid) icon definition, at least the path to the active pixmap needs to be set (active())
to list
-
- internal feature (not documented)
Image  :: Image ( odabagui::Icon &cIcon )
- cIcon
- Icon data
Icon data defines three pixmaps for displaying images with different states.
to list
- cIcon
- Icon data
-
Create icon from resource name
Image  :: Image ( odaba::String &sResource )
The constructor creates an icon definition from the icon resource (ADKC_Bitmap) with the name passed in sResource.
- sResource
- Name of resoure
"ok_button" // button in the current window
"address.street" // line edit in the address subwindow
".name" // line edit in the upper control (window)
to list
- sResource
- Name of resoure