![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
Go to the source code of this file.
Data Structures | |
struct | _GtkDarktableButton |
struct | _GtkDarktableButtonClass |
Macros | |
#define | DTGTK_BUTTON(obj) G_TYPE_CHECK_INSTANCE_CAST(obj, dtgtk_button_get_type(), GtkDarktableButton) |
#define | DTGTK_BUTTON_CLASS(klass) G_TYPE_CHECK_CLASS_CAST(klass, dtgtk_button_get_type(), GtkDarktableButtonClass) |
#define | DTGTK_IS_BUTTON(obj) G_TYPE_CHECK_INSTANCE_TYPE(obj, dtgtk_button_get_type()) |
#define | DTGTK_IS_BUTTON_CLASS(klass) G_TYPE_CHECK_CLASS_TYPE(obj, dtgtk_button_get_type()) |
Typedefs | |
typedef enum _darktable_button_flags | _darktable_button_flags_t |
typedef struct _GtkDarktableButton | GtkDarktableButton |
typedef struct _GtkDarktableButtonClass | GtkDarktableButtonClass |
Enumerations | |
enum | _darktable_button_flags { DARKTABLE_BUTTON_SHOW_LABEL = 1 } |
Functions | |
GType | dtgtk_button_get_type (void) |
GtkWidget * | dtgtk_button_new (DTGTKCairoPaintIconFunc paint, gint paintflags, void *paintdata) |
void | dtgtk_button_set_paint (GtkDarktableButton *button, DTGTKCairoPaintIconFunc paint, gint paintflags, void *paintdata) |
void | dtgtk_button_set_active (GtkDarktableButton *button, gboolean active) |
gboolean | dtgtk_button_get_active (GtkDarktableButton *button) |
#define DTGTK_BUTTON | ( | obj | ) | G_TYPE_CHECK_INSTANCE_CAST(obj, dtgtk_button_get_type(), GtkDarktableButton) |
#define DTGTK_BUTTON_CLASS | ( | klass | ) | G_TYPE_CHECK_CLASS_CAST(klass, dtgtk_button_get_type(), GtkDarktableButtonClass) |
#define DTGTK_IS_BUTTON | ( | obj | ) | G_TYPE_CHECK_INSTANCE_TYPE(obj, dtgtk_button_get_type()) |
#define DTGTK_IS_BUTTON_CLASS | ( | klass | ) | G_TYPE_CHECK_CLASS_TYPE(obj, dtgtk_button_get_type()) |
typedef enum _darktable_button_flags _darktable_button_flags_t |
typedef struct _GtkDarktableButton GtkDarktableButton |
typedef struct _GtkDarktableButtonClass GtkDarktableButtonClass |
gboolean dtgtk_button_get_active | ( | GtkDarktableButton * | button | ) |
References CPF_ACTIVE, FALSE, and _GtkDarktableButton::icon_flags.
Referenced by _altered_clicked(), _colorlabel_clicked(), _rating_clicked(), and _unaltered_clicked().
GType dtgtk_button_get_type | ( | void | ) |
References _button_class_init(), and _button_init().
Referenced by dtgtk_button_new().
GtkWidget * dtgtk_button_new | ( | DTGTKCairoPaintIconFunc | paint, |
gint | paintflags, | ||
void * | paintdata | ||
) |
instantiate a new darktable button control passing paint function as content
References _GtkDarktableButton::canvas, dt_gui_add_class(), dtgtk_button_get_type(), _GtkDarktableButton::icon, _GtkDarktableButton::icon_data, and _GtkDarktableButton::icon_flags.
Referenced by _cancellable_gui_thread(), _lib_duplicate_init_callback(), _lib_history_create_button(), dt_iop_button_new(), dt_iop_gui_init_blending(), dt_iop_gui_set_expander(), dt_lib_export_metadata_configuration_dialog(), gui_init(), gui_init(), gui_init(), gui_init(), and gui_init().
void dtgtk_button_set_active | ( | GtkDarktableButton * | button, |
gboolean | active | ||
) |
set the active state of the button icon
References CPF_ACTIVE, and _GtkDarktableButton::icon_flags.
Referenced by _altered_clicked(), _blendif_options_callback(), _colorlabel_clicked(), _dtgtk_button_set_active(), _gui_multiinstance_callback(), _lib_history_create_button(), _rating_clicked(), _unaltered_clicked(), and presets_popup_callback().
void dtgtk_button_set_paint | ( | GtkDarktableButton * | button, |
DTGTKCairoPaintIconFunc | paint, | ||
gint | paintflags, | ||
void * | paintdata | ||
) |
set the paint function for a button
References _GtkDarktableButton::icon, _GtkDarktableButton::icon_data, and _GtkDarktableButton::icon_flags.
Referenced by dt_lib_gui_set_expanded().