6
6
#include <gtk/gtkaction.h>
7
7
#include <gtk/gtktoggleaction.h>
8
#include <gtk/gtkradioaction.h>
8
9
#include <glib-object.h>
11
/* Equivalent to GTK Actions of the same type, but can support Inkscape SVG icons */
12
15
#define INK_ACTION_TYPE ( ink_action_get_type() )
71
74
GType ink_toggle_action_get_type( void );
73
76
InkToggleAction* ink_toggle_action_new( const gchar *name,
77
Inkscape::IconSize size );
80
Inkscape::IconSize size );
83
/* --------------------------------------------------------------- */
84
/* --------------------------------------------------------------- */
85
/* --------------------------------------------------------------- */
86
/* --------------------------------------------------------------- */
89
#define INK_RADIO_ACTION_TYPE ( ink_radio_action_get_type() )
90
#define INK_RADIO_ACTION( obj ) ( G_TYPE_CHECK_INSTANCE_CAST( (obj), INK_RADIO_ACTION_TYPE, InkRadioAction) )
91
#define INK_RADIO_ACTION_CLASS( klass ) ( G_TYPE_CHECK_CLASS_CAST( (klass), INK_RADIO_ACTION_TYPE, InkRadioActionClass) )
92
#define IS_INK_RADIO_ACTION( obj ) ( G_TYPE_CHECK_INSTANCE_TYPE( (obj), INK_RADIO_ACTION_TYPE) )
93
#define IS_INK_RADIO_ACTION_CLASS( klass ) ( G_TYPE_CHECK_CLASS_TYPE( (klass), INK_RADIO_ACTION_TYPE) )
94
#define INK_RADIO_ACTION_GET_CLASS( obj ) ( G_TYPE_INSTANCE_GET_CLASS( (obj), INK_RADIO_ACTION_TYPE, InkRadioActionClass) )
96
typedef struct _InkRadioAction InkRadioAction;
97
typedef struct _InkRadioActionClass InkRadioActionClass;
98
typedef struct _InkRadioActionPrivate InkRadioActionPrivate;
100
struct _InkRadioAction
102
GtkRadioAction action;
103
InkRadioActionPrivate *private_data;
106
struct _InkRadioActionClass
108
GtkRadioActionClass parent_class;
111
GType ink_radio_action_get_type( void );
113
InkRadioAction* ink_radio_action_new( const gchar *name,
115
const gchar *tooltip,
117
Inkscape::IconSize size );
83
123
#endif /* SEEN_INK_ACTION */