#include <update.hpp>
Public Types | |
| enum | Mode { ALL, LAYOUT, PAINT, MOVE, SCROLL, SHOW, HIDE, TITLE } |
Public Member Functions | |
| UUpdate (Mode=ALL) | |
| constructor (see class UUpdate and its methods for details). | |
| void | layoutIfNotShown (bool=true) |
| updates objects even if they are not shown (see UCtrl::isShown()). | |
| void | paintDoubleBuffered (bool=true) |
| paints in double buffering mode. | |
| void | paintElem (const UElem *) |
| [impl] paints this element (and whatever is located beneath or above it). | |
| void | paintStr (const UStr *, int strpos1, int strpos2) |
| [impl] paints a subpart of this string. | |
| void | paintRegion (const URegion *) |
| [impl] paints this region. | |
| void | paintTitle (const UStr *) |
| [impl] paints this title. | |
| void | setOffset (u_pos delta_x, u_pos delta_y) |
| [impl] used with the MOVE and SCROLL modes. | |
Static Public Attributes | |
| static const UUpdate | layout |
| same as: UUpdate(UUpdate::LAYOUT) | |
| static const UUpdate | paint |
| same as: UUpdate(UUpdate::PAINT) | |
| static const UUpdate | all |
| same as: UUpdate(UUpdate::ALL) = LAYOUT then PAINT | |
Friends | |
| class | UBox |
| class | UWin |
| class | USoftwinImpl |
| class | UHardwinImpl |
This object is given as an argument of UGroup::update() Examples:
box.update(UUpdate::paint); // repaints the box
box.update(UUpdate::all); // updates box layout then repaints
box.update(); // same as: box.update(UUpdate::all);
</pe>
Notes:
UUpdate upd = UUpdate::all; // layout and paint
upd.evenIfNotShown();
box.update(upd);
UUpdate upd = UUpdate::paint; // just paint
upd.setDoubleBuffering();
box.update(upd);
1.4.1