Public Member Functions | |
void | SetSelected (GtkWidget *w, int state) |
void | Add (GtkWidget *w) const |
void | Update (GtkWidget *w) const |
xmlNodePtr | Save (xmlDocPtr xml) const |
bool | Load (xmlNodePtr) |
bool | OnChanged (bool save) |
Object * | GetAtomAt (double x, double y, double z=0.) |
void | Move (double x, double y, double z=0) |
void | Transform2D (gcu::Matrix2D &m, double x, double y) |
double | GetYAlign () |
bool | SetProperty (unsigned property, char const *value) |
Definition at line 39 of file fragment.h.
void gcp::Fragment::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.
void gcp::Fragment::Add | ( | GtkWidget * | w | ) | const [virtual] |
w | the GtkWidget inside which the Object will be displayed. |
Reimplemented from gcu::Object.
void gcp::Fragment::Update | ( | GtkWidget * | w | ) | const [virtual] |
w | the GtkWidget inside which the Object is displayed. |
Reimplemented from gcu::Object.
xmlNodePtr gcp::Fragment::Save | ( | xmlDocPtr | xml | ) | const [virtual] |
xml | the xmlDoc used to save the document. |
Reimplemented from gcu::Object.
bool gcp::Fragment::Load | ( | xmlNodePtr | node | ) | [virtual] |
node | the xml node representing the text. |
Reimplemented from gcp::TextObject.
bool gcp::Fragment::OnChanged | ( | bool | save | ) | [virtual] |
save | whether the text should be saved for undo/redo operations. |
Implements gcp::TextObject.
Object* gcp::Fragment::GetAtomAt | ( | double | x, | |
double | y, | |||
double | z = 0. | |||
) | [virtual] |
x | the x coordinate | |
y | the y coordinate | |
z | the z coordinate |
Reimplemented from gcu::Object.
void gcp::Fragment::Move | ( | double | x, | |
double | y, | |||
double | z = 0 | |||
) | [virtual] |
x | the horizontal translation. | |
y | the vertical translation. | |
z | the depth translation. |
Reimplemented from gcp::TextObject.
void gcp::Fragment::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.
double gcp::Fragment::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::Fragment::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.