#include <widgetdata.h>
List of all members.
Detailed Description
This class contains all data associated with a widget displaying a document. It might be deprecated in future versions since it was mostly useful for the Bonobo version which is not anymore supported.
Definition at line 100 of file widgetdata.h.
Member Function Documentation
bool gcp::WidgetData::ChildrenSelected |
( |
gcu::Object const * |
obj |
) |
const |
- Parameters:
-
- Returns:
- true if all the object children are selected, false otherwise or if has no children.
void gcp::WidgetData::ClearSelection |
( |
|
) |
[inline] |
Empties the list of selected objects. Called after objects have been deleted.
Definition at line 190 of file widgetdata.h.
References SelectedObjects.
void gcp::WidgetData::Copy |
( |
GtkClipboard * |
clipboard |
) |
|
- Parameters:
-
| clipboard | a GtkClipboard. |
Copies the current selection to the clipboard.
- Parameters:
-
| obj | a gcu::Object. |
| rect | an ArtDRect which will receive the object bounds. |
Gets the object bounds in canvas coordinates.
void gcp::WidgetData::GetObjectsBounds |
( |
std::set< gcu::Object const * > const & |
objects, |
|
|
gccv::Rect * |
rect | |
|
) |
| | const |
- Parameters:
-
| objects | a set of gcu::Object. |
| rect | an ArtDRect which will receive the object bounds. |
Gets the object bounds in canvas coordinates.
- Parameters:
-
- Returns:
- the topmost ancestor whose all children are selected, NULL if none or if the ancestor is the document.
void gcp::WidgetData::GetSelectionBounds |
( |
gccv::Rect & |
rect |
) |
const |
- Parameters:
-
| rect | an ArtDRect which will receive the selection bounds. |
Gets the selection bounds in canvas coordinates.
static xmlDocPtr gcp::WidgetData::GetXmlDoc |
( |
GtkClipboard * |
clipboard |
) |
[static] |
- Parameters:
-
| clipboard | a GtkClipboard. |
- Returns:
- the xmlDocPtr associtated with the clipboard.
bool gcp::WidgetData::HasSelection |
( |
|
) |
[inline] |
bool gcp::WidgetData::IsSelected |
( |
gcu::Object const * |
obj |
) |
const |
- Parameters:
-
- Returns:
- true if the object is selected, false otherwise.
void gcp::WidgetData::MoveSelectedItems |
( |
double |
dx, |
|
|
double |
dy | |
|
) |
| | |
- Parameters:
-
| dx | the x coordinate of the translation vector. |
| dy | the y coordinate of the translation vector. |
Moves the items representing the selection, but don't move the objects themselves and don't modify the document. This is used by the selection tool but might be deprecated in the future.
void gcp::WidgetData::MoveSelection |
( |
double |
dx, |
|
|
double |
dy | |
|
) |
| | |
- Parameters:
-
| dx | the x coordinate of the translation vector. |
| dy | the y coordinate of the translation vector. |
Moves the selection. This method creates an Operation instance for the Undo/Redo framework.
void gcp::WidgetData::RotateSelection |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
angle | |
|
) |
| | |
- Parameters:
-
| x | the x coordinate of the rotation center. |
| y | the y coordinate of the rotation center. |
| angle | the rotation angle. |
Rotates the selection. This method does not create an Operation instance.
void gcp::WidgetData::SelectAll |
( |
|
) |
|
Selects the whole document.
void gcp::WidgetData::SetSelected |
( |
gcu::Object * |
obj, |
|
|
int |
state = gcp::SelStateSelected | |
|
) |
| | |
- Parameters:
-
| obj | the object to select. |
| state | the new selection state. |
Selects the specified object.
void gcp::WidgetData::ShowSelection |
( |
bool |
state |
) |
|
- Parameters:
-
| state | whether to show or not the selection. |
If state is true, the selection is highlighted, otherwise, it is displayed normally. This is used when printing or exporting an image.
void gcp::WidgetData::SimplifySelection |
( |
|
) |
|
Replace the selected objects by their parents if all parents children are selected.
- Parameters:
-
| obj | the object to unselect. |
Unselects a specified object.
void gcp::WidgetData::UnselectAll |
( |
|
) |
|
Member Data Documentation
The canvas widget to which this instance is associated.
Definition at line 110 of file widgetdata.h.
The documentation for this class was generated from the following file: