]> Pileus Git - grits/blobdiff - src/objects/gis-object.h
Document GisObject
[grits] / src / objects / gis-object.h
index b823161d656ee4259c4bfe3fbafcabe38d5541e5..4f105d80a1f7a25f1a2c8304553e9878629f2ee3 100644 (file)
@@ -56,9 +56,15 @@ struct _GisObjectClass {
 
 GType gis_object_get_type(void);
 
-static inline GisPoint *gis_object_center(GisObject *object)
-{
-       return &GIS_OBJECT(object)->center;
-}
+/**
+ * gis_object_center:
+ * @object: The #GisObject to get the center of
+ * 
+ * Get the #GisPoint representing the center of an object
+ *
+ * Returns: the center point
+ */
+#define gis_object_center(object) \
+       (&GIS_OBJECT(object)->center)
 
 #endif