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

Go to the source code of this file.

Data Structures

struct  _GtkDarktableIcon
 
struct  _GtkDarktableIconClass
 

Macros

#define DTGTK_ICON(obj)   G_TYPE_CHECK_INSTANCE_CAST(obj, dtgtk_icon_get_type(), GtkDarktableIcon)
 
#define DTGTK_ICON_CLASS(klass)   G_TYPE_CHECK_CLASS_CAST(klass, dtgtk_icon_get_type(), GtkDarktableIconClass)
 
#define DTGTK_IS_ICON(obj)   G_TYPE_CHECK_INSTANCE_TYPE(obj, dtgtk_icon_get_type())
 
#define DTGTK_IS_ICON_CLASS(klass)   G_TYPE_CHECK_CLASS_TYPE(obj, dtgtk_icon_get_type())
 

Typedefs

typedef struct _GtkDarktableIcon GtkDarktableIcon
 
typedef struct _GtkDarktableIconClass GtkDarktableIconClass
 

Functions

GType dtgtk_icon_get_type (void)
 
GtkWidget * dtgtk_icon_new (DTGTKCairoPaintIconFunc paint, gint paintflags, void *paintdata)
 
void dtgtk_icon_set_paint (GtkWidget *icon, DTGTKCairoPaintIconFunc paint, gint paintflags, void *paintdata)
 

Macro Definition Documentation

◆ DTGTK_ICON

#define DTGTK_ICON (   obj)    G_TYPE_CHECK_INSTANCE_CAST(obj, dtgtk_icon_get_type(), GtkDarktableIcon)

◆ DTGTK_ICON_CLASS

#define DTGTK_ICON_CLASS (   klass)    G_TYPE_CHECK_CLASS_CAST(klass, dtgtk_icon_get_type(), GtkDarktableIconClass)

◆ DTGTK_IS_ICON

#define DTGTK_IS_ICON (   obj)    G_TYPE_CHECK_INSTANCE_TYPE(obj, dtgtk_icon_get_type())

◆ DTGTK_IS_ICON_CLASS

#define DTGTK_IS_ICON_CLASS (   klass)    G_TYPE_CHECK_CLASS_TYPE(obj, dtgtk_icon_get_type())

Typedef Documentation

◆ GtkDarktableIcon

◆ GtkDarktableIconClass

Function Documentation

◆ dtgtk_icon_get_type()

GType dtgtk_icon_get_type ( void  )

References _icon_class_init(), and _icon_init().

Referenced by dtgtk_icon_new().

◆ dtgtk_icon_new()

GtkWidget * dtgtk_icon_new ( DTGTKCairoPaintIconFunc  paint,
gint  paintflags,
void paintdata 
)

instantiate a new darktable icon control passing paint function as content

References dtgtk_icon_get_type(), FALSE, _GtkDarktableIcon::icon, _GtkDarktableIcon::icon_data, and _GtkDarktableIcon::icon_flags.

◆ dtgtk_icon_set_paint()

void dtgtk_icon_set_paint ( GtkWidget *  icon,
DTGTKCairoPaintIconFunc  paint,
gint  paintflags,
void paintdata 
)

set the paint function for a icon

References DTGTK_ICON.