]> Pileus Git - grits/blobdiff - src/objects/gis-callback.c
Document GisCallback
[grits] / src / objects / gis-callback.c
index 05fa7467b5769abe92f5a5bc3651c3aedd3801a7..9e6373757166c17bd46c8dbe2c36dba4e537d480 100644 (file)
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+/**
+ * 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 <config.h>
 #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);