
Public Member Functions | |
| bool | IsPair () |
| virtual void | Add (GtkWidget *w) |
| virtual void | Update (GtkWidget *w) |
| virtual void | SetSelected (GtkWidget *w, int state) |
| virtual xmlNodePtr | Save (xmlDocPtr xml) |
| virtual bool | Load (xmlNodePtr) |
| virtual bool | OnSignal (SignalId Signal, Object *Child) |
| virtual void | Transform2D (Matrix2D &m, double x, double y) |
Definition at line 38 of file electron.h.
| virtual void gcp::Electron::Add | ( | GtkWidget * | w | ) | [virtual] |
| w,: | the GtkWidget inside which the Object will be displayed. |
Reimplemented from gcu::Object.
| virtual void gcp::Electron::Update | ( | GtkWidget * | w | ) | [virtual] |
| w,: | the GtkWidget inside which the Object is displayed. |
Reimplemented from gcu::Object.
| virtual void gcp::Electron::SetSelected | ( | GtkWidget * | w, | |
| int | state | |||
| ) | [virtual] |
| w,: | the GtkWidget inside which the Object is displayed. | |
| state,: | the selection state of the Object. |
Reimplemented from gcu::Object.
| virtual xmlNodePtr gcp::Electron::Save | ( | xmlDocPtr | xml | ) | [virtual] |
| xml,: | the xmlDoc used to save the document. |
Reimplemented from gcu::Object.
| virtual bool gcp::Electron::Load | ( | xmlNodePtr | node | ) | [virtual] |
| node,: | a pointer to the xmlNode containing the serialized object. |
Example:
std::string str = (const char*)node->name; Object* pObject = Object::CreateObject(str, this); if (pObject) { if (!pObject->Load(node)) delete Object; } else cerr << "Warning: unknown object: " << str << endl;
Reimplemented from gcu::Object.
| virtual bool gcp::Electron::OnSignal | ( | SignalId | Signal, | |
| Object * | Child | |||
| ) | [virtual] |
| Signal,: | the appropriate SignalId | |
| Child,: | the child which emitted the signal or NULL |
Reimplemented from gcu::Object.
| virtual void gcp::Electron::Transform2D | ( | Matrix2D & | m, | |
| double | x, | |||
| double | y | |||
| ) | [virtual] |
| m,: | the 2D Matrix of the transformation. | |
| x,: | the x component of the center of the transformation. | |
| y,: | the y component of the center of the transformation. |
Reimplemented from gcu::Object.
1.5.3