X-Git-Url: http://pileus.org/git/?p=grits;a=blobdiff_plain;f=src%2Fobjects%2Fgis-callback.c;h=9e6373757166c17bd46c8dbe2c36dba4e537d480;hp=05fa7467b5769abe92f5a5bc3651c3aedd3801a7;hb=36afb0e0cb18e36835a0a6b73eb9fbd92c23ff0c;hpb=715cf80f0277fa64b45afbed5e4b27c7f4347879 diff --git a/src/objects/gis-callback.c b/src/objects/gis-callback.c index 05fa746..9e63737 100644 --- a/src/objects/gis-callback.c +++ b/src/objects/gis-callback.c @@ -15,6 +15,15 @@ * along with this program. If not, see . */ +/** + * SECTION:gis-callback + * @short_description: Custom callback objects + * + * #GisCallback objects are used for custom drawing functions. A common example + * of this would be to render something which does not easily fit into a normal + * object. For instance, a Heads-Up-Display overlay. + */ + #include #include "gis-callback.h" @@ -28,6 +37,15 @@ static void gis_callback_class_init(GisCallbackClass *klass) { } +/** + * gis_callback_new: + * @callback: the function to call to draw the object + * @user_data: user data to pass to the drawing function + * + * Create a #GisCallback object with an associated function and user data. + * + * Returns: the new #GisCallback + */ GisCallback *gis_callback_new(GisCallbackFunc callback, gpointer user_data) { GisCallback *cb = g_object_new(GIS_TYPE_CALLBACK, NULL);