ubit::UUpdate Class Reference

specifies how to update UGroup, UBox, UWin objects and subclasses. More...

#include <update.hpp>

List of all members.

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 &)
UUpdateoperator= (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


Detailed Description

specifies how to update UGroup, UBox, UWin objects and subclasses.

See also: UGroup::update(), UBox::update(), UWin::update().


Member Enumeration Documentation

anonymous enum

Enumerator:
PAINT  updates the paint (not the layout).
LAYOUT  updates the layout (not the paint).
NO_DELAY  updates immediately.

by default, objects are updated asynchronously when the program returns to the event loop

HIDDEN_OBJECTS  updates objects even if they are not shown.

by default, hidden objects (when isShown() is false) are not updated.

SOFT_DBF  enables soft double buffering for X11.

by default, double buffering depends on UConf.x_double_buffer

NO_SOFT_DBF  disables soft double buffering for X11.

by default, double buffering depends on UConf.x_double_buffer


Constructor & Destructor Documentation

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);
 


The documentation for this class was generated from the following files:
Generated on Mon Jan 29 00:20:54 2007 for Ubit by  doxygen 1.4.7