Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
button.h File Reference
#include "paint.h"
#include <gtk/gtk.h>
+ Include dependency graph for button.h:
+ This graph shows which files directly or indirectly include this file:

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)
 

Macro Definition Documentation

◆ DTGTK_BUTTON

#define DTGTK_BUTTON (   obj)    G_TYPE_CHECK_INSTANCE_CAST(obj, dtgtk_button_get_type(), GtkDarktableButton)

◆ DTGTK_BUTTON_CLASS

#define DTGTK_BUTTON_CLASS (   klass)     G_TYPE_CHECK_CLASS_CAST(klass, dtgtk_button_get_type(), GtkDarktableButtonClass)

◆ DTGTK_IS_BUTTON

#define DTGTK_IS_BUTTON (   obj)    G_TYPE_CHECK_INSTANCE_TYPE(obj, dtgtk_button_get_type())

◆ DTGTK_IS_BUTTON_CLASS

#define DTGTK_IS_BUTTON_CLASS (   klass)    G_TYPE_CHECK_CLASS_TYPE(obj, dtgtk_button_get_type())

Typedef Documentation

◆ _darktable_button_flags_t

◆ GtkDarktableButton

◆ GtkDarktableButtonClass

Enumeration Type Documentation

◆ _darktable_button_flags

Enumerator
DARKTABLE_BUTTON_SHOW_LABEL 

Function Documentation

◆ dtgtk_button_get_active()

gboolean dtgtk_button_get_active ( GtkDarktableButton button)

◆ dtgtk_button_get_type()

GType dtgtk_button_get_type ( void  )

References _button_class_init(), and _button_init().

Referenced by dtgtk_button_new().

◆ dtgtk_button_new()

◆ dtgtk_button_set_active()

◆ dtgtk_button_set_paint()

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().