summaryrefslogtreecommitdiffstats
path: root/ganv/canvas-base.h
diff options
context:
space:
mode:
Diffstat (limited to 'ganv/canvas-base.h')
-rw-r--r--ganv/canvas-base.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/ganv/canvas-base.h b/ganv/canvas-base.h
index 816fb28..161df81 100644
--- a/ganv/canvas-base.h
+++ b/ganv/canvas-base.h
@@ -83,6 +83,9 @@ struct _GanvItem {
/* Parent for this item */
GanvItem* parent;
+ /* Layer (z order), higher values are on top */
+ guint layer;
+
/* Position in parent-relative coordinates. */
double x, y;
@@ -172,14 +175,12 @@ void ganv_item_set(GanvItem* item, const gchar* first_arg_name, ...);
void ganv_item_set_valist(GanvItem* item,
const gchar* first_arg_name, va_list args);
-/* Move an item by the specified amount */
-void ganv_item_move(GanvItem* item, double dx, double dy);
+void ganv_item_raise(GanvItem* item);
-/* Raise an item to the top of its parent's z-order. */
-void ganv_item_raise_to_top(GanvItem* item);
+void ganv_item_lower(GanvItem* item);
-/* Lower an item to the bottom of its parent's z-order */
-void ganv_item_lower_to_bottom(GanvItem* item);
+/* Move an item by the specified amount */
+void ganv_item_move(GanvItem* item, double dx, double dy);
/* Show an item (make it visible). If the item is already shown, it has no
* effect.