company logo

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

Implementation details

  1. 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
  2. to list
  3. 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).

  4. to list
  5. 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() )

  6. to list
  7. - internal feature (not documented)
    Image  :: Image ( odabagui::Icon &cIcon )
    • cIcon - Icon data

      Icon data defines three pixmaps for displaying images with different states.

  8. to list
  9. 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)

  10. to list