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)
#define DTGTK_ICON_CLASS(klass)
#define DTGTK_IS_ICON(obj)
#define DTGTK_IS_ICON_CLASS(klass)

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)
Value:
G_TYPE_CHECK_INSTANCE_CAST(obj, dtgtk_icon_get_type(), GtkDarktableIcon)
GType dtgtk_icon_get_type()
Definition icon.c:82
struct _GtkDarktableIcon GtkDarktableIcon

Definition at line 31 of file icon.h.

Referenced by _icon_draw(), and dtgtk_icon_set_paint().

◆ DTGTK_ICON_CLASS

#define DTGTK_ICON_CLASS ( klass)
Value:
G_TYPE_CHECK_CLASS_CAST(klass, dtgtk_icon_get_type(), GtkDarktableIconClass)
struct _GtkDarktableIconClass GtkDarktableIconClass

Definition at line 32 of file icon.h.

◆ DTGTK_IS_ICON

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

Definition at line 33 of file icon.h.

Referenced by _icon_draw().

◆ DTGTK_IS_ICON_CLASS

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

Definition at line 34 of file icon.h.

Typedef Documentation

◆ GtkDarktableIcon

◆ GtkDarktableIconClass

Function Documentation

◆ dtgtk_icon_get_type()

GType dtgtk_icon_get_type ( void )

Definition at line 82 of file icon.c.

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

Definition at line 70 of file icon.c.

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

Definition at line 99 of file icon.c.

References DTGTK_ICON, and IS_NULL_PTR.