X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fege-output-action.h;h=e626ccd8c99b84e6312c865532ff2e68d5330538;hb=9e973c4fb2183b877bb600a7e9c75e93b3e7d6d1;hp=4a8b47b127bd4cfa0b993aa9cca131441ef4092e;hpb=04a3c56f740db705904558c9fa882a146b0fbf97;p=inkscape.git diff --git a/src/ege-output-action.h b/src/ege-output-action.h index 4a8b47b12..e626ccd8c 100644 --- a/src/ege-output-action.h +++ b/src/ege-output-action.h @@ -39,6 +39,10 @@ * * ***** 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 @@ -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