diff options
| author | bulia byak <buliabyak@gmail.com> | 2007-10-07 20:48:12 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2007-10-07 20:48:12 +0000 |
| commit | be223adb1c73bc58b7918390f4015223bd6f4784 (patch) | |
| tree | f546eaa8df0c47d348ed87d9e2f7935b2f9d2914 /src | |
| parent | - marked forgotten message for translation (diff) | |
| download | inkscape-be223adb1c73bc58b7918390f4015223bd6f4784.tar.gz inkscape-be223adb1c73bc58b7918390f4015223bd6f4784.zip | |
still more utility functions
(bzr r3851)
Diffstat (limited to 'src')
| -rw-r--r-- | src/gradient-drag.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gradient-drag.h b/src/gradient-drag.h index 890ab23ee..5b8c867f1 100644 --- a/src/gradient-drag.h +++ b/src/gradient-drag.h @@ -108,6 +108,10 @@ public: // FIXME: make more of this private! bool isNonEmpty() {return (draggers != NULL);} bool hasSelection() {return (selected != NULL);} + guint numSelected() {return (selected? g_list_length(selected) : 0);} + guint numDraggers() {return (draggers? g_list_length(draggers) : 0);} + guint singleSelectedDraggerNumDraggables() {return (selected? g_slist_length(((GrDragger *) selected->data)->draggables) : 0);} + guint singleSelectedDraggerSingleDraggableType() {return (selected? ((GrDraggable *) ((GrDragger *) selected->data)->draggables->data)->point_type : 0);} // especially the selection must be private, fix gradient-context to remove direct access to it GList *selected; // list of GrDragger* |
