ubit::UData Class Reference

Base class for Viewable Objects. More...

#include <udata.hpp>

Inheritance diagram for ubit::UData:

ubit::UBrick ubit::UObject ubit::UIma ubit::UStr ubit::USymbol ubit::UPix List of all members.

Public Member Functions

 UData (UMask b_modes=0)
virtual class UDatadataCast ()
 dynamic cast
virtual const UClassgetClass () const =0
virtual UDataonChange (UCall &)
 adds a callback that is fired when the value is modified.
virtual void changed (bool update=true)
 [impl] called when object's content is changed.
virtual void update ()=0
 updates graphics.

Detailed Description

Base class for Viewable Objects.

Data objects can have callback functions that are fired when their value is changed. Data parents can also be notified when data value are modified by using the UOn::dataChange condition (see below).

see an example in class UStr. The only difference is that UOn::dataChange must be used instead of UOn::strChange for specifing callbacks in parents.


Member Function Documentation

void ubit::UData::changed ( bool  update = true  )  [virtual]

[impl] called when object's content is changed.

This function updates graphics (if 'update' is true) then fires parents' UOn::dataChange callbacks

Reimplemented in ubit::UStr.

UData & ubit::UData::onChange ( UCall  )  [virtual]

adds a callback that is fired when the value is modified.

See also:
UData doc.

Reimplemented in ubit::UStr.


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