Code

Node tool: snap while scaling a selection of nodes. Consider this as experimental...
[inkscape.git] / src / ege-output-action.h
index 4a8b47b127bd4cfa0b993aa9cca131441ef4092e..e626ccd8c99b84e6312c865532ff2e68d5330538 100644 (file)
  *
  * ***** END LICENSE BLOCK ***** */
 
+/** \file
+ *  GtkAction subclass that represents a string for output.
+ */
+
 /* Note: this file should be kept compilable as both .cpp and .c */
 
 #include <glib.h>
@@ -59,25 +63,58 @@ typedef struct _EgeOutputAction      EgeOutputAction;
 typedef struct _EgeOutputActionClass EgeOutputActionClass;
 typedef struct _EgeOutputActionPrivate EgeOutputActionPrivate;
 
+/**
+ * Instance structure of EgeOutputAction.
+ */
 struct _EgeOutputAction
 {
+    /** Parent instance structure. */
     GtkAction action;
+
+    /** Pointer to private instance data. */
     EgeOutputActionPrivate *private_data;
 };
 
+/**
+ * Class structure of EgeOutputAction.
+ */
 struct _EgeOutputActionClass
 {
+    /** Parent class structure. */
     GtkActionClass parent_class;
 };
 
+/** Standard Gtk type function */
 GType ege_output_action_get_type( void );
 
+/**
+ * Creates a new EgeOutputAction instance.
+ * This is a GtkAction subclass that displays a string.
+ *
+ * @param name Functional name for the action.
+ * @param label Display label for the action.
+ * @param tooltip Tooltip for the action.
+ * @param stock_id Icon id to use.
+ */
 EgeOutputAction* ege_output_action_new( const gchar *name,
                                         const gchar *label,
                                         const gchar *tooltip,
                                         const gchar *stock_id );
 
+/**
+ * Return whether or not the displayed text is interpreted as markup.
+ *
+ * @param action The action to fetch the markup state for.
+ * @return True if the text is to be interpreted as markup, false otherwise.
+ */
 gboolean ege_output_action_get_use_markup( EgeOutputAction* action );
+
+/**
+ * Sets whether or not the displayed text is interpreted as markup.
+ *
+ * @param action The action to set the markup state for.
+ * @param setting True if the text is to be interpreted as markup, false otherwise.
+ */
 void ege_output_action_set_use_markup( EgeOutputAction* action, gboolean setting );
 
 G_END_DECLS