company logo

Layout :: icon - Icon definition

In order to decorate buttons, controls or data items in a list with icons, an icon might be set for the layout. The image displayed as decoration is, typically, the normal pixmap.

Return value:  Icon data ( odabagui::Icon & )

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

Implementation overview

Implementation details

  1. Get icon definition from layout
    const odabagui::Icon & Layout  :: icon (  )

    The function returns the icon definition from the layout. The icon definition is still owned by the layout. Thus, changing icon properties implicitly changes the layout, too.

  2. to list
  3. Set or replace icon definition
    const odabagui::Icon & Layout  :: icon ( odabagui::Icon &cIcon )

    The function sets or replaces the current icon definition with the icon definition passed in cIcon.

    • cIcon - Icon data

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

  4. to list