#include <widgetdata.h>
Public Member Functions | |
| bool | IsSelected (gcu::Object const *obj) const |
| void | SetSelected (gcu::Object *obj) |
| void | Unselect (gcu::Object *obj) |
| void | UnselectAll () |
| void | MoveSelectedItems (double dx, double dy) |
| void | MoveSelection (double dx, double dy) |
| void | RotateSelection (double x, double y, double angle) |
| void | ClearSelection () |
| void | Copy (GtkClipboard *clipboard) |
| void | GetSelectionBounds (ArtDRect &rect) const |
| bool | HasSelection () |
| void | SelectAll () |
| void | ShowSelection (bool state) |
| void | GetObjectBounds (gcu::Object const *obj, ArtDRect *rect) const |
Static Public Member Functions | |
| static xmlDocPtr | GetXmlDoc (GtkClipboard *clipboard) |
Public Attributes | |
| View * | m_View |
| GtkWidget * | Canvas |
| GnomeCanvasGroup * | Group |
| GnomeCanvasItem * | Background |
| double | Zoom |
| std::map< gcu::Object const *, GnomeCanvasGroup * > | Items |
| std::list< gcu::Object * > | SelectedObjects |
Definition at line 73 of file widgetdata.h.
| bool gcp::WidgetData::IsSelected | ( | gcu::Object const * | obj | ) | const |
| obj | an object. |
| void gcp::WidgetData::SetSelected | ( | gcu::Object * | obj | ) |
| obj | the object to select. |
| void gcp::WidgetData::Unselect | ( | gcu::Object * | obj | ) |
| obj | the object to unselect. |
| void gcp::WidgetData::UnselectAll | ( | ) |
Unselects everything.
| void gcp::WidgetData::MoveSelectedItems | ( | double | dx, | |
| double | dy | |||
| ) |
| dx | the x coordinate of the translation vector. | |
| dy | the y coordinate of the translation vector. |
| void gcp::WidgetData::MoveSelection | ( | double | dx, | |
| double | dy | |||
| ) |
| dx | the x coordinate of the translation vector. | |
| dy | the y coordinate of the translation vector. |
| void gcp::WidgetData::RotateSelection | ( | double | x, | |
| double | y, | |||
| double | angle | |||
| ) |
| x | the x coordinate of the rotation center. | |
| y | the y coordinate of the rotation center. | |
| angle | the rotation angle. |
| void gcp::WidgetData::ClearSelection | ( | ) | [inline] |
Empties the list of selected objects. Called after objects have been deleted.
Definition at line 154 of file widgetdata.h.
References SelectedObjects.
| void gcp::WidgetData::Copy | ( | GtkClipboard * | clipboard | ) |
| clipboard | a GtkClipboard. |
| void gcp::WidgetData::GetSelectionBounds | ( | ArtDRect & | rect | ) | const |
| rect | an ArtDRect which will receive the selection bounds. |
| bool gcp::WidgetData::HasSelection | ( | ) | [inline] |
Definition at line 170 of file widgetdata.h.
References SelectedObjects.
| void gcp::WidgetData::SelectAll | ( | ) |
Selects the whole document.
| static xmlDocPtr gcp::WidgetData::GetXmlDoc | ( | GtkClipboard * | clipboard | ) | [static] |
| clipboard | a GtkClipboard. |
| void gcp::WidgetData::ShowSelection | ( | bool | state | ) |
| state | whether to show or not the selection. |
| void gcp::WidgetData::GetObjectBounds | ( | gcu::Object const * | obj, | |
| ArtDRect * | rect | |||
| ) | const |
| obj | a gcu::Object. | |
| rect | an ArtDRect which will receive the object bounds. |
The document view.
Definition at line 79 of file widgetdata.h.
| GtkWidget* gcp::WidgetData::Canvas |
The canvas widget to which this instance is associated.
Definition at line 83 of file widgetdata.h.
| GnomeCanvasGroup* gcp::WidgetData::Group |
The root group containing all other items, except the background.
Definition at line 87 of file widgetdata.h.
| GnomeCanvasItem* gcp::WidgetData::Background |
The white rectangle used as background (to be deprecated).
Definition at line 91 of file widgetdata.h.
| double gcp::WidgetData::Zoom |
The current zoom factor.
Definition at line 95 of file widgetdata.h.
| std::map<gcu::Object const*, GnomeCanvasGroup*> gcp::WidgetData::Items |
Maps the document objects to the canvas items which represent them.
Definition at line 99 of file widgetdata.h.
| std::list<gcu::Object*> gcp::WidgetData::SelectedObjects |
The list of selected objects.
Definition at line 103 of file widgetdata.h.
Referenced by ClearSelection(), and HasSelection().
1.5.6