|
| IconPainter () |
| Construct an icon painter. More...
|
|
virtual | ~IconPainter () |
| Icon painter destructor.
|
|
BBox & | bounds () |
| Reference to the bounds of the icon. More...
|
|
const BBox & | bounds () const |
| return the bounds of the icon in work area coordinates
|
|
IconPainter & | text (std::string text) |
| Set the text for the icon painter. More...
|
|
IconPainter & | validation (std::string val) |
| Set the validation string for the icon. More...
|
|
IconPainter & | sprite (std::string sprite) |
| Set the sprite for the icon. More...
|
|
IconPainter & | sprite_area (SpriteArea *sprite_area) |
| Set the sprite area to use for the icon. More...
|
|
IconPainter & | use_wimp_sprite_area () |
| Use sprite from WIMP sprite pool. More...
|
|
IconPainter & | use_client_sprite_area () |
| Use application client area for the sprite. More...
|
|
IconPainter & | text_icon (bool t) |
| Set icon as a text icon. More...
|
|
bool | text_icon () const |
| Check if this is a text icon.
|
|
IconPainter & | sprite_icon (bool s) |
| Set icon as a sprite icon.
|
|
bool | sprite_icon () const |
| Check if this is a sprite icon.
|
|
IconPainter & | border (bool f) |
| Add a border to the icon.
|
|
IconPainter & | hcentred (bool f) |
| Set horizontally centred flag. More...
|
|
IconPainter & | vcentred (bool f) |
| Set vertically centred flag. More...
|
|
IconPainter & | filled (bool f) |
| Set filled flag. More...
|
|
IconPainter & | rjust (bool f) |
| Set right justified flag. More...
|
|
IconPainter & | half_sprite (bool f) |
| Set show sprite at half size flag. More...
|
|
IconPainter & | inverted (bool f) |
| Set inverted flag. More...
|
|
IconPainter & | shaded (bool f) |
| Set shaded flag. More...
|
|
IconPainter & | foreground (unsigned int col) |
| Set foreground colour of sprite. More...
|
|
IconPainter & | background (unsigned int col) |
| Set background colour of sprite. More...
|
|
IconPainter & | text_and_sprite_left () |
| Text and sprite left justified, text at bottom, sprite at top for text and sprite icons.
|
|
IconPainter & | text_and_sprite_right () |
| Text and sprite right justified, text at bottom, sprite at top for text and sprite icons.
|
|
IconPainter & | text_12_sprite_left () |
| Sprite at left, text +12 units right of it, text and sprite vertically centred for text and sprite icons.
|
|
IconPainter & | text_left_sprite_right () |
| text at left, sprite at right, text and sprite vertically centred for text and sprite icons.
|
|
IconPainter & | text_and_sprite_centred () |
| text and sprite centred, text at bottom, sprite at top for text and sprite icons.
|
|
IconPainter & | top_text_and_sprite_centred () |
| text and sprite centred text at top, sprite at bottom for text and sprite icons.
|
|
IconPainter & | on_top_text_and_sprite_centred () |
| text and sprite centred (text on top) text and sprite centred for text and sprite icons.
|
|
IconPainter & | text_right_sprite_left () |
| text at right, sprite at left text and sprite centred for text and sprite icons.
|
|
virtual void | redraw (const RedrawEvent &event) |
| Redraw the icon.
|
|
virtual | ~Listener () |
| Destroy the listener object.
|
|
Class to draw an icon in a redraw listener.
The IconPainter can either be added to the window directly as it is a RedrawListener or the redraw method can be called using the redraw parameter from another redraw listener for the window.