ubit
Classes | Public Types | Public Member Functions | Static Public Attributes | Friends | List of all members
ubit::UUpdate Class Reference

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

#include <uupdate.hpp>

Classes

struct  ScrollMove
 
struct  StrData
 

Public Types

enum  {
  PAINT = 1<<0, LAYOUT = 1<<1, LAYOUT_PAINT = (LAYOUT | PAINT), HIDDEN_OBJECTS = 1<<3,
  SHOW = 1<<6, HIDE = 1<<7, ADJUST_WIN_SIZE = 1<<8
}
 
enum  { ADD_REMOVE = 1<<11, STR_DATA = 1<<12, MOVE = 1<<14 }
 

Public Member Functions

 UUpdate (unsigned int mode_mask=LAYOUT|PAINT)
 creates an object that specifies how to update UElem(s) and subclasses. More...
 
 UUpdate (const UUpdate &)
 
UUpdateoperator= (const UUpdate &)
 
bool operator== (const UUpdate &)
 
void addModes (unsigned int m)
 
long getModes () const
 returns the current mode mask.
 
bool isHiddenObjectsMode () const
 if true, hidden objects (which are normally ignored) will be updated.
 
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 x_percent, bool y_percent)
 [impl] used to move 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 UElem
 
class UBox
 
class UWin
 
class UView
 
class UAppliImpl
 
class UpdateRequest
 

Detailed Description

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

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

Member Enumeration Documentation

§ anonymous enum

anonymous enum
Enumerator
PAINT 

updates the paint (not the layout).

LAYOUT 

updates the layout (not the paint).

LAYOUT_PAINT 

updates the layout and the paint.

HIDDEN_OBJECTS 

updates objects even if they are not shown.

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

Constructor & Destructor Documentation

§ UUpdate()

ubit::UUpdate::UUpdate ( unsigned int  mode_mask = LAYOUT|PAINT)

creates an object that specifies how to update UElem(s) and subclasses.

This object is given as an argument to UElem::update(), UBox::update(), UWin::update() 'mode_mask' is a OREd combination of the constants defined in the UUpdate enum example:

    ;
    UBox* box = ...;
    box->update(UUpdate upd(UUpdate::LAYOUT | UUpdate::PAINT));

The documentation for this class was generated from the following files: