#include <gui_lamp.h>
Public Member Functions | |
tcGuiLamp (const char *name, tcBench *bench, int idd) | |
~tcGuiLamp () | |
virtual bool | ParseXML (TiXmlElement *ahDom) |
void | create () |
void | set_state (LAMPSTATE state) |
LAMPSTATE | get_state () |
void | draw (tcGuiDspDisplay &pd) |
void | animate () |
void | blink (LAMPSTATE base_state, LAMPSTATE blink_state, int milliseconds=300) |
tcGuiLamp::tcGuiLamp | ( | const char * | name, | |
tcBench * | bench, | |||
int | idd | |||
) |
tcGuiLamp::~tcGuiLamp | ( | ) |
bool tcGuiLamp::ParseXML | ( | TiXmlElement * | apElement | ) | [virtual] |
Parse common XML elements from the DOM.
Reimplemented from MityDSP::tcGuiObject.
void tcGuiLamp::create | ( | ) | [virtual] |
Reimplemented from MityDSP::tcGuiObject.
void tcGuiLamp::set_state | ( | LAMPSTATE | state | ) |
LAMPSTATE MityDSP::tcGuiLamp::get_state | ( | ) | [inline] |
void tcGuiLamp::draw | ( | tcGuiDspDisplay & | pd | ) | [virtual] |
Reimplemented from MityDSP::tcGuiObject.
void tcGuiLamp::animate | ( | ) | [virtual] |
Handle display widget animation (scrolling, etc.). This method should be called periodically from the top level framework when the widget is visible.
Reimplemented from MityDSP::tcGuiObject.