summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2014-01-11 19:48:55 +0000
committerDavid Robillard <d@drobilla.net>2014-01-11 19:48:55 +0000
commit438d2c4aadd439b995af75a4b6589e32adf3fbb4 (patch)
tree6071a116829a38bfb3eb5721168a8f406e35538f
parentefa3c517693b8eae29082c1a57fb7677bdc548e4 (diff)
downloadganv-438d2c4aadd439b995af75a4b6589e32adf3fbb4.tar.gz
ganv-438d2c4aadd439b995af75a4b6589e32adf3fbb4.tar.bz2
ganv-438d2c4aadd439b995af75a4b6589e32adf3fbb4.zip
Tidy.
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5300 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--ganv/item.h34
1 files changed, 21 insertions, 13 deletions
diff --git a/ganv/item.h b/ganv/item.h
index a9a8fee..d75435a 100644
--- a/ganv/item.h
+++ b/ganv/item.h
@@ -91,12 +91,12 @@ struct _GanvItemClass {
/**
* Add a child to this item (optional).
*/
- void (* add)(GanvItem* item, GanvItem* child);
+ void (*add)(GanvItem* item, GanvItem* child);
/**
* Remove a child from this item (optional).
*/
- void (* remove)(GanvItem* item, GanvItem* child);
+ void (*remove)(GanvItem* item, GanvItem* child);
/**
* Tell the item to update itself.
@@ -106,27 +106,27 @@ struct _GanvItemClass {
* request its repaint area. The update method also recomputes the
* bounding box of the item.
*/
- void (* update)(GanvItem* item, int flags);
+ void (*update)(GanvItem* item, int flags);
/**
* Realize an item (create GCs, etc.).
*/
- void (* realize)(GanvItem* item);
+ void (*realize)(GanvItem* item);
/**
* Unrealize an item.
*/
- void (* unrealize)(GanvItem* item);
+ void (*unrealize)(GanvItem* item);
/**
* Map an item - normally only need by items with their own GdkWindows.
*/
- void (* map)(GanvItem* item);
+ void (*map)(GanvItem* item);
/**
* Unmap an item
*/
- void (* unmap)(GanvItem* item);
+ void (*unmap)(GanvItem* item);
/**
* Draw an item of this type.
@@ -134,8 +134,12 @@ struct _GanvItemClass {
* (x, y) are the upper-left canvas pixel coordinates of the drawable.
* (width, height) are the dimensions of the drawable.
*/
- void (* draw)(GanvItem* item, cairo_t* cr,
- int x, int y, int width, int height);
+ void (*draw)(GanvItem* item,
+ cairo_t* cr,
+ int x,
+ int y,
+ int width,
+ int height);
/**
* Calculate the distance from an item to the specified point.
@@ -145,22 +149,26 @@ struct _GanvItemClass {
* canvas pixel coordinates that correspond to the item-relative
* coordinates (x, y).
*/
- double (* point)(GanvItem* item, double x, double y, int cx, int cy,
- GanvItem** actual_item);
+ double (*point)(GanvItem* item,
+ double x,
+ double y,
+ int cx,
+ int cy,
+ GanvItem** actual_item);
/**
* Fetch the item's bounding box (need not be exactly tight).
*
* This should be in item-relative coordinates.
*/
- void (* bounds)(GanvItem* item, double* x1, double* y1, double* x2, double* y2);
+ void (*bounds)(GanvItem* item, double* x1, double* y1, double* x2, double* y2);
/**
* Signal: an event occurred for an item of this type.
*
* The (x, y) coordinates are in the canvas world coordinate system.
*/
- gboolean (* event)(GanvItem* item, GdkEvent* event);
+ gboolean (*event)(GanvItem* item, GdkEvent* event);
/* Reserved for future expansion */
gpointer spare_vmethods [4];