#include <text.h>

Public Member Functions | |
| xmlNodePtr | Save (xmlDocPtr xml) const |
| bool | Load (xmlNodePtr) |
| void | Add (GtkWidget *w) const |
| void | Update (GtkWidget *w) const |
| void | SetSelected (GtkWidget *w, int state) |
| bool | OnChanged (bool save) |
| void | Transform2D (gcu::Matrix2D &m, double x, double y) |
| void | GetSize (double &x, double &y) |
| double | GetYAlign () |
| bool | SetProperty (unsigned property, char const *value) |
Definition at line 41 of file text.h.
| xmlNodePtr gcp::Text::Save | ( | xmlDocPtr | xml | ) | const [virtual] |
| xml | the xmlDoc used to save the document. |
Reimplemented from gcu::Object.
| bool gcp::Text::Load | ( | xmlNodePtr | node | ) | [virtual] |
| node | the xml node representing the text. |
Reimplemented from gcp::TextObject.
| void gcp::Text::Add | ( | GtkWidget * | w | ) | const [virtual] |
| w | the GtkWidget inside which the Object will be displayed. |
Reimplemented from gcu::Object.
| void gcp::Text::Update | ( | GtkWidget * | w | ) | const [virtual] |
| w | the GtkWidget inside which the Object is displayed. |
Reimplemented from gcu::Object.
| void gcp::Text::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.
| bool gcp::Text::OnChanged | ( | bool | save | ) | [virtual] |
| save | whether the text should be saved for undo/redo operations. |
Implements gcp::TextObject.
| void gcp::Text::Transform2D | ( | gcu::Matrix2D & | m, | |
| double | x, | |||
| double | y | |||
| ) | [virtual] |
| m | the Matrix2D 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.
| void gcp::Text::GetSize | ( | double & | x, | |
| double & | y | |||
| ) | [inline] |
| x | the variable to be set to the width value. | |
| y | the variable to be set to the height value. |
Reimplemented from gcp::TextObject.
Definition at line 61 of file text.h.
References gcp::TextObject::m_height, and gcp::TextObject::m_length.
| double gcp::Text::GetYAlign | ( | ) | [virtual] |
Used to retrieve the y coordinate for alignment. The default implementation returns 0.0 and every derived class for which alignment has a meaning should implement this method.
Reimplemented from gcu::Object.
| bool gcp::Text::SetProperty | ( | unsigned | property, | |
| char const * | value | |||
| ) | [virtual] |
| property | the property id as defined in objprops.h | |
| value | the property value as a string |
Reimplemented from gcu::Object.
1.5.6