Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
imageop_gui.c File Reference
#include "develop/imageop_gui.h"
#include "develop/imageop.h"
#include "bauhaus/bauhaus.h"
#include "dtgtk/button.h"
#include "common/darktable.h"
#include "gui/gtk.h"
#include <assert.h>
#include <gmodule.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include <time.h>
+ Include dependency graph for imageop_gui.c:

Go to the source code of this file.

Data Structures

struct  dt_module_param_t
 

Typedefs

typedef struct dt_module_param_t dt_module_param_t
 

Functions

static void _iop_toggle_callback (GtkWidget *togglebutton, dt_module_param_t *data)
 
static void _add_widget_to_module_list (dt_iop_module_t *self, GtkWidget *widget)
 
GtkWidgetdt_bauhaus_slider_from_params (dt_iop_module_t *self, const char *param)
 
GtkWidgetdt_bauhaus_combobox_from_params (dt_iop_module_t *self, const char *param)
 
GtkWidgetdt_bauhaus_toggle_from_params (dt_iop_module_t *self, const char *param)
 
GtkWidgetdt_iop_togglebutton_new (dt_iop_module_t *self, const char *section, const gchar *label, const gchar *ctrl_label, GCallback callback, gboolean local, guint accel_key, GdkModifierType mods, DTGTKCairoPaintIconFunc paint, GtkWidget *box)
 
GtkWidgetdt_iop_togglebutton_new_no_register (dt_iop_module_t *self, const char *section, const gchar *label, const gchar *ctrl_label, GCallback callback, gboolean local, guint accel_key, GdkModifierType mods, DTGTKCairoPaintIconFunc paint, GtkWidget *box)
 
GtkWidgetdt_iop_button_new (dt_iop_module_t *self, const gchar *label, GCallback callback, gboolean local, guint accel_key, GdkModifierType mods, DTGTKCairoPaintIconFunc paint, gint paintflags, GtkWidget *box)
 
gboolean dt_mask_scroll_increases (int up)
 

Typedef Documentation

◆ dt_module_param_t

Function Documentation

◆ _add_widget_to_module_list()

static void _add_widget_to_module_list ( dt_iop_module_t self,
GtkWidget widget 
)
static

◆ _iop_toggle_callback()

static void _iop_toggle_callback ( GtkWidget togglebutton,
dt_module_param_t data 
)
static

◆ dt_bauhaus_combobox_from_params()

◆ dt_bauhaus_slider_from_params()

◆ dt_bauhaus_toggle_from_params()

◆ dt_iop_button_new()

GtkWidget * dt_iop_button_new ( dt_iop_module_t self,
const gchar *  label,
GCallback  callback,
gboolean  local,
guint  accel_key,
GdkModifierType  mods,
DTGTKCairoPaintIconFunc  paint,
gint  paintflags,
GtkWidget box 
)

Definition at line 334 of file imageop_gui.c.

References _add_widget_to_module_list(), dtgtk_button_new(), and TRUE.

Referenced by gui_init().

◆ dt_iop_togglebutton_new()

GtkWidget * dt_iop_togglebutton_new ( dt_iop_module_t self,
const char *  section,
const gchar *  label,
const gchar *  ctrl_label,
GCallback  callback,
gboolean  local,
guint  accel_key,
GdkModifierType  mods,
DTGTKCairoPaintIconFunc  paint,
GtkWidget box 
)

◆ dt_iop_togglebutton_new_no_register()

GtkWidget * dt_iop_togglebutton_new_no_register ( dt_iop_module_t self,
const char *  section,
const gchar *  label,
const gchar *  ctrl_label,
GCallback  callback,
gboolean  local,
guint  accel_key,
GdkModifierType  mods,
DTGTKCairoPaintIconFunc  paint,
GtkWidget box 
)

Build an IOP toggle button without registering it for module GUI refresh.

Definition at line 311 of file imageop_gui.c.

References dt_free, dtgtk_togglebutton_new(), FALSE, IS_NULL_PTR, and tooltip.

Referenced by dt_iop_gui_init_blendif(), dt_iop_gui_init_blending_body(), dt_iop_gui_init_masks(), and dt_masks_shape_buttons_create().

◆ dt_mask_scroll_increases()

gboolean dt_mask_scroll_increases ( int  up)

Definition at line 359 of file imageop_gui.c.

References dt_conf_get_bool().

Referenced by dt_masks_events_mouse_scrolled(), scrolled(), and scrolled().