#include <update.hpp>
Public Types | |
PAINT = 1<<0 | |
updates the paint (not the layout). | |
LAYOUT = 1<<1 | |
updates the layout (not the paint). | |
LAYOUT_PAINT = (LAYOUT | PAINT) | |
NO_DELAY = 1<<2 | |
updates immediately. | |
HIDDEN_OBJECTS = 1<<3 | |
updates objects even if they are not shown. | |
SOFT_DBF = 1<<4 | |
enables soft double buffering for X11. | |
NO_SOFT_DBF = 1<<5 | |
disables soft double buffering for X11. | |
SHOW = 1<<6 | |
HIDE = 1<<7 | |
ADJUST_WIN_SIZE = 1<<8 | |
enum | { PAINT = 1<<0, LAYOUT = 1<<1, LAYOUT_PAINT = (LAYOUT | PAINT), NO_DELAY = 1<<2, HIDDEN_OBJECTS = 1<<3, SOFT_DBF = 1<<4, NO_SOFT_DBF = 1<<5, SHOW = 1<<6, HIDE = 1<<7, ADJUST_WIN_SIZE = 1<<8 } |
Public Member Functions | |
UUpdate (unsigned int mode_mask=LAYOUT|PAINT) | |
creates an object that specifies how to update UGroup(s) and subclasses. | |
UUpdate (const UUpdate &) | |
UUpdate & | operator= (const UUpdate &) |
bool | operator== (const UUpdate &) |
void | noDelay () |
will update immediately (update operations are normally buffered). | |
void | hiddenObjects () |
will update hidden objects (which are normally ignored). | |
void | softDbf () |
will use soft double bufferiong (for X11 rendering only). | |
UMask | getModes () const |
returns the current mode mask. | |
void | addModes (unsigned int m) |
int | getDbfMode () const |
bool | isHiddenObjectsMode () const |
void | setPaintData (const UData *) |
[impl] set the data to be painted. | |
void | setPaintStr (const UStr *, int strpos1, int strpos2) |
[impl] set the string to be painted. | |
void | setMove (float delta_x, float delta_y, bool is_percent) |
[impl] used to move objects. | |
void | setScroll (float delta_x, float delta_y, bool is_percent) |
[impl] used to scroll objects. | |
Static Public Attributes | |
static const UUpdate | paint |
paint only: prefined constant for UUpdate(PAINT); | |
static const UUpdate | layoutAndPaint |
layout then paint: prefined constant for UUpdate(LAYOUT|PAINT); | |
Friends | |
class | UGroup |
class | UBox |
class | UWin |
class | UHardWinImpl |
class | USoftWinImpl |
class | UAppliImpl |
See also: UGroup::update(), UBox::update(), UWin::update().
anonymous enum |
ubit::UUpdate::UUpdate | ( | unsigned int | mode_mask = LAYOUT|PAINT |
) |
creates an object that specifies how to update UGroup(s) and subclasses.
This object is given as an argument to UGroup::update(), UBox::update(), UWin::update() 'mode_mask' is a OREd combination of the constants defined in the UUpdate enum example:
UUpdate upd(UUpdate::LAYOUT | UUpdate::PAINT | UUpdate::NO_DELAY); UBox* box = ...; box->update(upd);