List of all members.
Public Member Functions |
| | ViewObject (int on_level=-1) |
| | Construct ViewObject.
|
|
virtual void | draw () |
| | Draw view string and value.
|
| virtual int | eventHandler (Event *p_event) |
| | Handle "view" event if tag matches view_string (others ignored).
|
|
void | setLocation (ViewObjectLocation new_location) |
| | General location of the ViewObject on the screen.
|
|
int | setPersistence (bool persistent) |
| | Set persistence of object. Returns 0.
|
| int | setVisibility (bool visible) |
| | Set visibility of object.
|
|
void | setValue (int new_value) |
|
int | getValue () |
|
void | setBorder (bool new_border) |
|
bool | getBorder () |
|
void | setColor (int new_color) |
|
int | getColor () |
|
void | setViewString (string new_view_string) |
|
string | getViewString () |
Protected Attributes |
|
string | view_string |
| | Label for value (e.g. "Points")
|
|
int | value |
| | Value displayed (e.g. points)
|
|
bool | border |
| | True if border around display.
|
|
int | color |
| | Color for text.
|
Constructor & Destructor Documentation
| ViewObject::ViewObject |
( |
int |
on_level = -1 | ) |
|
Construct ViewObject.
Defaults: border, top_center, default color, current level.
Member Function Documentation
| virtual int ViewObject::eventHandler |
( |
Event * |
p_event | ) |
[virtual] |
Handle "view" event if tag matches view_string (others ignored).
Return 0 if ignored, else 1
Reimplemented from Object.
Reimplemented in Fraps.
| int ViewObject::setVisibility |
( |
bool |
visible | ) |
[virtual] |
Set visibility of object.
Objects not visible are not drawn. Return 0.
Reimplemented from Object.
The documentation for this class was generated from the following file: