summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Meissner <marcus@jet.franken.de>2007-05-20 20:27:29 +0000
committerMarcus Meissner <marcus@jet.franken.de>2007-05-20 20:27:29 +0000
commit30b13e19bf68cda8b00a85d040ba739e67819f93 (patch)
treeb4131c703a6ef71b2d147034f84efc3c41850ccc
parent3c6a1ed8a3adc4df1a4702c3cca6c725316c2db9 (diff)
downloadlibgphoto2-30b13e19bf68cda8b00a85d040ba739e67819f93.tar.gz
marked up for documentation.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@10270 67ed7778-7388-44ab-90cf-0a291f65f57c
-rw-r--r--gphoto2/gphoto2-widget.h31
1 files changed, 20 insertions, 11 deletions
diff --git a/gphoto2/gphoto2-widget.h b/gphoto2/gphoto2-widget.h
index 1b670168e..ee733eef0 100644
--- a/gphoto2/gphoto2-widget.h
+++ b/gphoto2/gphoto2-widget.h
@@ -26,23 +26,32 @@
#include <gphoto2/gphoto2-context.h>
-/* You don't really want to know what's inside, do you? */
+/** \internal internal structure please use the accessors. */
typedef struct _CameraWidget CameraWidget;
#include <gphoto2/gphoto2-camera.h>
-typedef enum { /* Value (get/set): */
- GP_WIDGET_WINDOW,
- GP_WIDGET_SECTION,
- GP_WIDGET_TEXT, /* char * */
- GP_WIDGET_RANGE, /* float */
- GP_WIDGET_TOGGLE, /* int */
- GP_WIDGET_RADIO, /* char * */
- GP_WIDGET_MENU, /* char * */
- GP_WIDGET_BUTTON, /* CameraWidgetCallback */
- GP_WIDGET_DATE /* int */
+/**
+ * \brief Type of the widget to be created.
+ *
+ * The actual widget type we want to create. The type of the value
+ * it supports depends on this type.
+ */
+typedef enum { /* Value (get/set): */
+ GP_WIDGET_WINDOW, /**< \brief Window widget */
+ GP_WIDGET_SECTION, /**< \brief Section widget (think Tab) */
+ GP_WIDGET_TEXT, /**< \brief Text widget. */ /* char * */
+ GP_WIDGET_RANGE, /**< \brief Slider widget. */ /* float */
+ GP_WIDGET_TOGGLE, /**< \brief Toggle widget (think check box) */ /* int */
+ GP_WIDGET_RADIO, /**< \brief Radio button widget. */ /* char * */
+ GP_WIDGET_MENU, /**< \brief Menu widget (same as RADIO). */ /* char * */
+ GP_WIDGET_BUTTON, /**< \brief Button press widget. */ /* CameraWidgetCallback */
+ GP_WIDGET_DATE /**< \brief Date entering widget. */ /* int */
} CameraWidgetType;
+/**
+ * \brief Callback handler for Button widgets.
+ */
typedef int (* CameraWidgetCallback) (Camera *, CameraWidget *, GPContext *);
int gp_widget_new (CameraWidgetType type, const char *label,