Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
masks_functions.h File Reference

The per-shape function table, private to the masks implementation. More...

#include "develop/masks.h"
#include "develop/masks_gui.h"
+ Include dependency graph for masks_functions.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  dt_masks_functions_t
 

Typedefs

typedef struct dt_masks_functions_t dt_masks_functions_t
 

Functions

void dt_masks_form_gui_points_free (gpointer data)
 
void _check_id (dt_develop_t *dev, dt_masks_form_t *mask_form)
 
void _set_group_name_from_module (dt_iop_module_t *module, dt_masks_form_t *group_form)
 
dt_masks_form_t_group_create (dt_develop_t *develop, dt_iop_module_t *module, dt_masks_type_t group_type)
 
dt_masks_form_t_group_from_module (dt_develop_t *develop, dt_iop_module_t *module)
 
float _change_opacity (dt_masks_form_group_t *form_group, float value, const dt_masks_increment_t increment, const int flow)
 
int _find_in_group (dt_develop_t *dev, dt_masks_form_t *group_form, int form_id)
 

Variables

const dt_masks_functions_t dt_masks_functions_circle
 
const dt_masks_functions_t dt_masks_functions_ellipse
 
const dt_masks_functions_t dt_masks_functions_brush
 
const dt_masks_functions_t dt_masks_functions_polygon
 
const dt_masks_functions_t dt_masks_functions_gradient
 
const dt_masks_functions_t dt_masks_functions_group
 

Detailed Description

The per-shape function table, private to the masks implementation.

Every member is dispatched from inside src/develop/masks/ and nowhere else (measured before the move), so nothing outside the shape files and the masks core has any business seeing the table's layout. Public code holds it only as the opaque dt_masks_form_t.functions pointer, forward-declared in develop/masks.h. Keeping the definition here is also what keeps drawing and event types out of the public header: several members take dt_masks_form_gui_t* or a shape_draw_function_t.

Definition in file masks_functions.h.

Typedef Documentation

◆ dt_masks_functions_t

structure used to store pointers to the functions implementing operations on a mask shape plus a few per-class descriptive data items

Function Documentation

◆ _change_opacity()

float _change_opacity ( dt_masks_form_group_t form_group,
float  value,
const dt_masks_increment_t  increment,
const int  flow 
)

◆ _check_id()

void _check_id ( dt_develop_t dev,
dt_masks_form_t mask_form 
)

◆ _find_in_group()

int _find_in_group ( dt_develop_t dev,
dt_masks_form_t group_form,
int  form_id 
)

◆ _group_create()

◆ _group_from_module()

◆ _set_group_name_from_module()

void _set_group_name_from_module ( dt_iop_module_t module,
dt_masks_form_t group_form 
)

Definition at line 138 of file develop/masks/masks.c.

References dt_dev_get_masks_group_name(), dt_free, and L.

Referenced by _group_create(), and dt_masks_group_update_name().

◆ dt_masks_form_gui_points_free()

void dt_masks_form_gui_points_free ( gpointer  data)

Variable Documentation

◆ dt_masks_functions_brush

const dt_masks_functions_t dt_masks_functions_brush
extern

Definition at line 3244 of file develop/masks/brush.c.

Referenced by _brush_events_post_expose(), and dt_masks_create().

◆ dt_masks_functions_circle

const dt_masks_functions_t dt_masks_functions_circle
extern

the shape-specific function tables

Definition at line 1138 of file circle.c.

Referenced by _circle_events_post_expose(), and dt_masks_create().

◆ dt_masks_functions_ellipse

const dt_masks_functions_t dt_masks_functions_ellipse
extern

Definition at line 1709 of file ellipse.c.

Referenced by _ellipse_events_post_expose(), and dt_masks_create().

◆ dt_masks_functions_gradient

const dt_masks_functions_t dt_masks_functions_gradient
extern

Definition at line 1532 of file gradient.c.

Referenced by _gradient_events_post_expose(), and dt_masks_create().

◆ dt_masks_functions_group

const dt_masks_functions_t dt_masks_functions_group
extern

Definition at line 748 of file group.c.

Referenced by dt_masks_create().

◆ dt_masks_functions_polygon

const dt_masks_functions_t dt_masks_functions_polygon
extern

Definition at line 3718 of file polygon.c.

Referenced by _polygon_events_post_expose(), and dt_masks_create().