![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "system/mem_alloc.h"#include "widgets/widget_settings.h"#include "widgets/paint.h"#include "widgets/draw.h"#include <math.h>
Include dependency graph for widgets/paint.c:Go to the source code of this file.
Macros | |
| #define | M_PI 3.141592654 |
| #define | PREAMBLE(scaling, line_scaling, x_offset, y_offset) |
| #define | FINISH |
Functions | |
| static void | _rounded_rectangle (cairo_t *cr) |
| static void | _paint_cursor_arrow (cairo_t *cr, const double tip_x, const double tip_y, const double size) |
| Paint the cursor arrow using the arrow tip position and a uniform size. | |
| void | dtgtk_cairo_paint_empty (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_color (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_presets (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| static void | _draw_triangle (cairo_t *cr, const gint flags) |
| void | dtgtk_cairo_paint_triangle (cairo_t *cr, gint x, int y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_solid_triangle (cairo_t *cr, gint x, int y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_arrow (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_solid_arrow (cairo_t *cr, gint x, int y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_line_arrow (cairo_t *cr, gint x, int y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_sortby (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_flip (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_reset (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_store (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_switch (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_module_switch (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_module_switch_on (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_switch_inactive (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_switch_on (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_switch_off (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_switch_deprecated (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_plus (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_plusminus (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_square_plus (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_sorting (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_plus_simple (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_minus_simple (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_multiply_small (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_treelist (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_invert (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_masks_edit (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_masks_circle (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_masks_ellipse (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| Paint a 45 deg-rotated ellipse that touches the unit square boundaries. | |
| void | dtgtk_cairo_paint_masks_gradient (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_masks_polygon (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_masks_vertgradient (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_masks_brush_and_inverse (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_masks_brush (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_masks_uniform (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_masks_drawn (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | _gradient_arc (cairo_t *cr, double lw, int nb_steps, double x_center, double y_center, double radius, double angle_from, double angle_to, double color_from, double color_to, double alpha) |
| void | dtgtk_cairo_paint_masks_parametric (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_masks_drawn_and_parametric (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_masks_raster (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_masks_multi (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_masks_inverse (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_masks_union (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_masks_intersection (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_masks_difference (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_masks_exclusion (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_masks_used (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_eye (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_eye_toggle (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_timer (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_grid (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_focus_peaking (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_camera (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_histogram_scope (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_waveform_scope (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_vectorscope (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_linear_scale (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_logarithmic_scale (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_waveform_overlaid (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_rgb_parade (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_luv (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_jzazbz (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_ryb (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_filmstrip (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_directory (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_refresh (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_perspective (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_structure (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_draw_structure (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_cancel (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_aspectflip (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_styles (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_label (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_label_sel (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_reject (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_remove (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_star (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_unratestar (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_local_copy (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_altered (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_unaltered (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_audio (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_label_flower (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_colorpicker (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_colorpicker_set_values (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_showmask (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_preferences (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_overlays (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_help (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_grouping (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_alignment (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_text_label (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_or (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_and (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_andnot (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_dropdown (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_bracket (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_lock (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_check_mark (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_overexposed (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_bulb (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_rawoverexposed (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_gamut_check (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_softproof (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_display (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_rect_landscape (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_rect_portrait (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_polygon (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_zoom (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_multiinstance (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_modulegroup_active (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_modulegroup_favorites (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_modulegroup_basics (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_modulegroup_basic (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_modulegroup_tone (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_modulegroup_color (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_modulegroup_correct (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_modulegroup_effect (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_modulegroup_grading (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_modulegroup_technical (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_map_pin (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_tool_clone (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_tool_heal (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_tool_fill (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_tool_blur (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_paste_forms (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_cut_forms (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_display_wavelet_scale (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_auto_levels (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | _compass_star (cairo_t *cr, double cx, double cy, double size) |
| void | dtgtk_cairo_paint_compass_star (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_wand (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_lt_mode_grid (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_lt_mode_zoom (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_lt_mode_culling_fixed (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_lt_mode_culling_dynamic (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_lt_mode_fullpreview (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_link (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_shortcut (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_pin (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_link_chain (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| void | dtgtk_cairo_paint_flowchart (cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data) |
| Paint the flowchart icon using normalized 0..1 coordinates. | |
| void | dtgtk_liquify_cairo_paint_node_tool (cairo_t *cr, const gint x, const gint y, const gint w, const gint h, const gint flags, void *data) |
| void | dtgtk_liquify_cairo_paint_line_tool (cairo_t *cr, const gint x, const gint y, const gint w, const gint h, const gint flags, void *data) |
| void | dtgtk_liquify_cairo_paint_curve_tool (cairo_t *cr, const gint x, const gint y, const gint w, const gint h, const gint flags, void *data) |
| #define FINISH |
Definition at line 73 of file widgets/paint.c.
| #define M_PI 3.141592654 |
Definition at line 59 of file widgets/paint.c.
| #define PREAMBLE | ( | scaling, | |
| line_scaling, | |||
| x_offset, | |||
| y_offset | |||
| ) |
Definition at line 62 of file widgets/paint.c.
Definition at line 3340 of file widgets/paint.c.
Referenced by dtgtk_cairo_paint_compass_star(), and dtgtk_cairo_paint_wand().
Definition at line 185 of file widgets/paint.c.
References C, CPF_DIRECTION_DOWN, CPF_DIRECTION_LEFT, CPF_DIRECTION_UP, flags, L, M_PI, and S.
Referenced by dtgtk_cairo_paint_solid_triangle(), and dtgtk_cairo_paint_triangle().
| void _gradient_arc | ( | cairo_t * | cr, |
| double | lw, | ||
| int | nb_steps, | ||
| double | x_center, | ||
| double | y_center, | ||
| double | radius, | ||
| double | angle_from, | ||
| double | angle_to, | ||
| double | color_from, | ||
| double | color_to, | ||
| double | alpha | ||
| ) |
draws an arc with a B&W gradient following the arc path. nb_steps must be adjusted depending on the displayed size of the element, 16 is fine for small buttons
Definition at line 995 of file widgets/paint.c.
References color, dt_free, i, L, lw, and M_PI.
Referenced by dtgtk_cairo_paint_masks_drawn_and_parametric(), and dtgtk_cairo_paint_masks_parametric().
|
static |
Paint the cursor arrow using the arrow tip position and a uniform size.
The geometry is defined in unit space relative to the arrow tip, then scaled and translated so the tip lands at (tip_x, tip_y). This keeps the call site explicit about ownership of positioning while keeping the shape definition in one place.
| cr | Cairo context. |
| tip_x | Arrow tip x position in normalized widget coordinates. |
| tip_y | Arrow tip y position in normalized widget coordinates. |
| size | Arrow height in normalized widget coordinates. A size of 1.0 fills the unit height from the tip to the top of the arrow. |
Definition at line 96 of file widgets/paint.c.
Referenced by dtgtk_cairo_paint_masks_edit().
Definition at line 77 of file widgets/paint.c.
References dt_draw_rounded_rectangle_path().
Referenced by dtgtk_cairo_paint_grid(), dtgtk_cairo_paint_overexposed(), dtgtk_cairo_paint_rawoverexposed(), dtgtk_cairo_paint_remove(), and dtgtk_cairo_paint_square_plus().
| void dtgtk_cairo_paint_alignment | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
paint an alignment icon
Definition at line 2421 of file widgets/paint.c.
References CPF_SPECIAL_FLAG, FINISH, flags, L, and PREAMBLE.
Referenced by gui_init(), and gui_init().
| void dtgtk_cairo_paint_altered | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Paint an altered icon on thumbs
Definition at line 2046 of file widgets/paint.c.
References CPF_DIRECTION_RIGHT, FINISH, flags, L, M_PI, PREAMBLE, and r.
Referenced by dt_thumbnail_create_widget(), and gui_init().
| void dtgtk_cairo_paint_arrow | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Paint an arrow left or right
Definition at line 232 of file widgets/paint.c.
References C, CPF_DIRECTION_DOWN, CPF_DIRECTION_RIGHT, CPF_DIRECTION_UP, FINISH, flags, L, M_PI, PREAMBLE, and S.
Referenced by dt_lib_gui_set_expanded().
| void dtgtk_cairo_paint_aspectflip | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
paint two boxes indicating portrait/landscape flip
Definition at line 1791 of file widgets/paint.c.
References FINISH, flags, L, and PREAMBLE.
Referenced by gui_init().
| void dtgtk_cairo_paint_audio | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Paint an audio icon on thumbs
Definition at line 2113 of file widgets/paint.c.
References FINISH, L, M_PI, and PREAMBLE.
Referenced by dt_thumbnail_create_widget().
| void dtgtk_cairo_paint_auto_levels | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Paint a auto level icon for retouch
Definition at line 3317 of file widgets/paint.c.
References FINISH, L, and PREAMBLE.
Referenced by gui_init().
| void dtgtk_cairo_paint_bracket | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
paint bracket capture
Definition at line 2544 of file widgets/paint.c.
| void dtgtk_cairo_paint_bulb | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
paint a light bulb
Definition at line 2609 of file widgets/paint.c.
References CPF_ACTIVE, FINISH, flags, L, M_PI, and PREAMBLE.
Referenced by _create_one_button(), and gui_init().
| void dtgtk_cairo_paint_camera | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
paint camera icon
Definition at line 1382 of file widgets/paint.c.
References FINISH, L, M_PI, and PREAMBLE.
Referenced by gui_init().
| void dtgtk_cairo_paint_cancel | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Paint a cancel X icon
Definition at line 1778 of file widgets/paint.c.
References FINISH, L, and PREAMBLE.
Referenced by _cancellable_gui_thread().
| void dtgtk_cairo_paint_check_mark | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
paint check mark icon
Definition at line 2580 of file widgets/paint.c.
References FINISH, L, and PREAMBLE.
Referenced by gui_init(), gui_init(), and tree_insert_presets().
| void dtgtk_cairo_paint_colorpicker | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
paint a color picker icon - a pipette for bigger buttons
Definition at line 2194 of file widgets/paint.c.
References CPF_ALTER, dt_draw_plus_sign(), FINISH, flags, L, M_PI, and PREAMBLE.
Referenced by _color_picker_new(), dt_iop_gui_init_blendif(), gui_init(), and gui_init().
| void dtgtk_cairo_paint_colorpicker_set_values | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
paint a color picker icon with a plus sign
Definition at line 2294 of file widgets/paint.c.
| void dtgtk_cairo_paint_compass_star | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Paint a generic four-pointed compass star
Definition at line 3357 of file widgets/paint.c.
References _compass_star(), FINISH, and PREAMBLE.
| void dtgtk_cairo_paint_cut_forms | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Paint a cut icon for retouch
Definition at line 3238 of file widgets/paint.c.
References CPF_ACTIVE, FINISH, flags, L, M_PI, and PREAMBLE.
Referenced by gui_init().
| void dtgtk_cairo_paint_directory | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Paint a directory icon
Definition at line 1656 of file widgets/paint.c.
References FINISH, L, M_PI, and PREAMBLE.
Referenced by gui_init(), gui_init(), and gui_init().
| void dtgtk_cairo_paint_display | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
paint a display icon
Definition at line 2746 of file widgets/paint.c.
References FINISH, L, and PREAMBLE.
Referenced by _create_one_button().
| void dtgtk_cairo_paint_display_wavelet_scale | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Paint a display scale for retouch
Definition at line 3275 of file widgets/paint.c.
References CPF_ACTIVE, delta, FINISH, flags, i, L, and PREAMBLE.
Referenced by gui_init().
| void dtgtk_cairo_paint_draw_structure | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Paint a drawn structure icon
Definition at line 1755 of file widgets/paint.c.
References FINISH, L, M_PI, and PREAMBLE.
Referenced by gui_init().
| void dtgtk_cairo_paint_dropdown | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
paint dropdown arrow
Definition at line 2532 of file widgets/paint.c.
| void dtgtk_cairo_paint_empty | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Definition at line 149 of file widgets/paint.c.
| void dtgtk_cairo_paint_eye | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Paint an eye icon
Definition at line 1253 of file widgets/paint.c.
References CPF_ACTIVE, dtgtk_cairo_paint_eye_toggle(), flags, and x.
| void dtgtk_cairo_paint_eye_toggle | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Paint an eye icon which is crossed out if toggled
Definition at line 1258 of file widgets/paint.c.
References CPF_ACTIVE, FINISH, flags, L, M_PI, and PREAMBLE.
Referenced by dt_iop_gui_init_blendif(), dtgtk_cairo_paint_eye(), and gui_init().
| void dtgtk_cairo_paint_filmstrip | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Paint a filmstrip icon
Definition at line 1621 of file widgets/paint.c.
| void dtgtk_cairo_paint_flip | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Paint a flip icon
Definition at line 351 of file widgets/paint.c.
References C, CPF_DIRECTION_UP, FINISH, flags, L, PREAMBLE, and S.
Referenced by gui_init().
| void dtgtk_cairo_paint_flowchart | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Paint the flowchart icon using normalized 0..1 coordinates.
The icon geometry is expressed in normalized icon space so it scales uniformly with the PREAMBLE square and stays independent from the widget pixel size.
Definition at line 3693 of file widgets/paint.c.
References FINISH, height, L, PREAMBLE, top, and width.
Referenced by gui_init().
| void dtgtk_cairo_paint_gamut_check | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
paint a gamut check icon
Definition at line 2683 of file widgets/paint.c.
References FINISH, L, and PREAMBLE.
Referenced by _create_one_button(), and area_draw().
| void dtgtk_cairo_paint_grid | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
paint a simple grid icon
Definition at line 1302 of file widgets/paint.c.
References _rounded_rectangle(), FINISH, L, and PREAMBLE.
Referenced by gui_init().
| void dtgtk_cairo_paint_grouping | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
paint the grouping icon.
Definition at line 2396 of file widgets/paint.c.
References CPF_ACTIVE, FINISH, flags, L, and PREAMBLE.
Referenced by dt_thumbnail_create_widget().
| void dtgtk_cairo_paint_histogram_scope | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
paint histogram scope icon
Definition at line 1408 of file widgets/paint.c.
| void dtgtk_cairo_paint_invert | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Paint an invert icon
Definition at line 635 of file widgets/paint.c.
References FINISH, L, M_PI, and PREAMBLE.
Referenced by dt_iop_gui_init_blendif(), dt_iop_gui_init_masks(), and dt_iop_gui_init_raster().
| void dtgtk_cairo_paint_label | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Paint a color label icon
Definition at line 1835 of file widgets/paint.c.
References color, dt_widget_colorlabel(), DT_WIDGET_COLORLABEL_COUNT, FINISH, flags, L, M_PI, PREAMBLE, r, and set_color().
| void dtgtk_cairo_paint_label_flower | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Paint a colorlabel "flower" icon on thumbs
Definition at line 2135 of file widgets/paint.c.
References dt_widget_colorlabel(), DT_WIDGET_COLORLABEL_BLUE, DT_WIDGET_COLORLABEL_GREEN, DT_WIDGET_COLORLABEL_PURPLE, DT_WIDGET_COLORLABEL_RED, DT_WIDGET_COLORLABEL_YELLOW, FINISH, flags, L, M_PI, PREAMBLE, r, and set_color().
Referenced by dt_thumbnail_create_widget().
| void dtgtk_cairo_paint_label_sel | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Paint a color label icon for selection
Definition at line 1881 of file widgets/paint.c.
References color, CPF_DIRECTION_RIGHT, CPF_PRELIGHT, dt_widget_colorlabel(), DT_WIDGET_COLORLABEL_COUNT, FINISH, flags, L, M_PI, PREAMBLE, and r.
Referenced by gui_init().
| void dtgtk_cairo_paint_line_arrow | ( | cairo_t * | cr, |
| gint | x, | ||
| int | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Paint an arrow with a line
Definition at line 289 of file widgets/paint.c.
References CPF_DIRECTION_LEFT, FINISH, flags, L, and PREAMBLE.
| void dtgtk_cairo_paint_linear_scale | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
paint linear scale icon
Definition at line 1470 of file widgets/paint.c.
| void dtgtk_cairo_paint_link_chain | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Paint a chained link icon for shapes
Definition at line 3657 of file widgets/paint.c.
References FINISH, height, L, M_PI, and PREAMBLE.
Referenced by gui_init().
| void dtgtk_cairo_paint_local_copy | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Paint the local copy symbol
Definition at line 2029 of file widgets/paint.c.
References CPF_ACTIVE, FINISH, flags, L, M_PI, and PREAMBLE.
Referenced by dt_thumbnail_create_widget().
| void dtgtk_cairo_paint_lock | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
paint lock icon
Definition at line 2563 of file widgets/paint.c.
References FINISH, L, M_PI, and PREAMBLE.
Referenced by _sample_draw_callback(), gui_init(), and tree_insert_presets().
| void dtgtk_cairo_paint_logarithmic_scale | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
paint logarithmic scale icon
Definition at line 1481 of file widgets/paint.c.
| void dtgtk_cairo_paint_lt_mode_culling_dynamic | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Lighttable: Culling dynamic
Definition at line 3477 of file widgets/paint.c.
| void dtgtk_cairo_paint_lt_mode_culling_fixed | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Lighttable: Culling fixed
Definition at line 3441 of file widgets/paint.c.
| void dtgtk_cairo_paint_lt_mode_fullpreview | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Lighttable: Full Preview
Definition at line 3503 of file widgets/paint.c.
| void dtgtk_cairo_paint_lt_mode_grid | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Lighttable: Grid mode
Definition at line 3391 of file widgets/paint.c.
| void dtgtk_cairo_paint_lt_mode_zoom | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Lighttable: Zoomable
Definition at line 3411 of file widgets/paint.c.
| void dtgtk_cairo_paint_map_pin | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
paint the pin for map thumbnails
Definition at line 3130 of file widgets/paint.c.
References FINISH, L, and PREAMBLE.
Referenced by _init_image_pin().
| void dtgtk_cairo_paint_masks_circle | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Paint a circle icon for masks
Definition at line 674 of file widgets/paint.c.
References FINISH, L, M_PI, and PREAMBLE.
Referenced by gui_init().
| void dtgtk_cairo_paint_masks_difference | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Paint an op difference icon for masks
Definition at line 1187 of file widgets/paint.c.
Referenced by _blendop_masks_init_icons(), dt_masks_create_menu(), and gui_init().
| void dtgtk_cairo_paint_masks_drawn | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
paint a drawn mask icon
Definition at line 962 of file widgets/paint.c.
References FINISH, L, and PREAMBLE.
Referenced by gui_init(), and gui_init().
| void dtgtk_cairo_paint_masks_drawn_and_parametric | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
paint a combined drawn¶metric mask icon
Definition at line 1045 of file widgets/paint.c.
References _gradient_arc(), CPF_PRELIGHT, FINISH, flags, g, L, M_PI, p, PREAMBLE, and r.
| void dtgtk_cairo_paint_masks_edit | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Paint an eye icon for masks
Definition at line 648 of file widgets/paint.c.
References _paint_cursor_arrow(), FINISH, L, M_PI, and PREAMBLE.
Referenced by dt_iop_gui_init_masks(), and gui_init().
| void dtgtk_cairo_paint_masks_ellipse | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Paint a 45 deg-rotated ellipse that touches the unit square boundaries.
The ellipse comes from scaling a circle and then rotating it. For a 45 deg-rotated ellipse with semi-axes a and b, the axis-aligned half-extent is sqrt((a * a + b * b) / 2). We choose the radius so this extent is 0.5, which makes the ellipse touch the [0, 1] bounds after centering at (0.5, 0.5).
Definition at line 709 of file widgets/paint.c.
References FINISH, L, M_PI, and PREAMBLE.
Referenced by gui_init().
| void dtgtk_cairo_paint_masks_exclusion | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Paint an op exclusion icon for masks
Definition at line 1212 of file widgets/paint.c.
Referenced by _blendop_masks_init_icons(), dt_masks_create_menu(), and gui_init().
| void dtgtk_cairo_paint_masks_intersection | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Paint an op intersection icon for masks
Definition at line 1158 of file widgets/paint.c.
Referenced by _blendop_masks_init_icons(), dt_masks_create_menu(), and gui_init().
| void dtgtk_cairo_paint_masks_inverse | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Paint an inverse icon for masks
Definition at line 1133 of file widgets/paint.c.
References FINISH, L, M_PI, and PREAMBLE.
Referenced by _blendop_masks_init_icons(), dt_masks_create_menu(), and gui_init().
| void dtgtk_cairo_paint_masks_multi | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Paint a multi-path icon for masks
Definition at line 1120 of file widgets/paint.c.
| void dtgtk_cairo_paint_masks_parametric | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
paint a parametric mask icon
Definition at line 1019 of file widgets/paint.c.
References _gradient_arc(), CPF_PRELIGHT, FINISH, flags, g, L, M_PI, p, PREAMBLE, and r.
| void dtgtk_cairo_paint_masks_polygon | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Paint a path icon for masks
Definition at line 824 of file widgets/paint.c.
References FINISH, i, L, M_PI, and PREAMBLE.
Referenced by gui_init().
| void dtgtk_cairo_paint_masks_union | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Paint an op union icon for masks
Definition at line 1145 of file widgets/paint.c.
Referenced by _blendop_masks_init_icons(), dt_masks_create_menu(), and gui_init().
| void dtgtk_cairo_paint_masks_vertgradient | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Paint a vertical gradient icon for masks selection
Definition at line 873 of file widgets/paint.c.
| void dtgtk_cairo_paint_minus_simple | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Paint a simple minus icon
Definition at line 584 of file widgets/paint.c.
References FINISH, L, and PREAMBLE.
Referenced by dt_lib_export_metadata_configuration_dialog().
| void dtgtk_cairo_paint_module_switch | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Paint the vertical module on/off switch used in IOP headers
Definition at line 424 of file widgets/paint.c.
References CPF_PRELIGHT, FINISH, flags, L, M_PI, and PREAMBLE.
Referenced by _ioporder_create_graph_node(), _ioporder_set_enable_button_icon(), dt_iop_gui_set_enable_button_icon(), and dt_iop_gui_set_expander().
| void dtgtk_cairo_paint_module_switch_on | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Paint the always-on marker used for force-enabled IOP headers
Definition at line 446 of file widgets/paint.c.
References FINISH, L, M_PI, and PREAMBLE.
Referenced by _ioporder_set_enable_button_icon(), and dt_iop_gui_set_enable_button_icon().
| void dtgtk_cairo_paint_modulegroup_active | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
paint active modulegroup icon
Definition at line 2844 of file widgets/paint.c.
| void dtgtk_cairo_paint_multiinstance | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
paint a duplicate/multi instance indicator
Definition at line 2828 of file widgets/paint.c.
References FINISH, L, and PREAMBLE.
Referenced by dt_iop_gui_set_expander().
| void dtgtk_cairo_paint_multiply_small | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Paint a simple multiply icon
Definition at line 595 of file widgets/paint.c.
| void dtgtk_cairo_paint_overexposed | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
paint an over/under exposure icon
Definition at line 2592 of file widgets/paint.c.
References _rounded_rectangle(), FINISH, L, and PREAMBLE.
Referenced by _create_one_button().
| void dtgtk_cairo_paint_overlays | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
paint the "show ovelays" icon.
Definition at line 2373 of file widgets/paint.c.
References dt_draw_star(), FINISH, L, and PREAMBLE.
| void dtgtk_cairo_paint_paste_forms | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Paint a past icon for retouch
Definition at line 3217 of file widgets/paint.c.
References FINISH, L, and PREAMBLE.
Referenced by gui_init().
| void dtgtk_cairo_paint_perspective | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Paint a perspective correction icon
Definition at line 1700 of file widgets/paint.c.
References FINISH, flags, L, and PREAMBLE.
Referenced by gui_init().
| void dtgtk_cairo_paint_pin | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Paint a pined icon for filtering
Definition at line 3633 of file widgets/paint.c.
| void dtgtk_cairo_paint_plus | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Same as dtgtk_cairo_paint_plusminus, but render as a plus even when CFP_ACTIVE is disabled.
Definition at line 506 of file widgets/paint.c.
References CPF_ACTIVE, dtgtk_cairo_paint_plusminus(), flags, and x.
| void dtgtk_cairo_paint_plus_simple | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Paint a simple plus icon
Definition at line 571 of file widgets/paint.c.
References FINISH, L, and PREAMBLE.
Referenced by dt_lib_export_metadata_configuration_dialog(), and gui_init().
| void dtgtk_cairo_paint_plusminus | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Paint a plusminus icon
Definition at line 511 of file widgets/paint.c.
References CPF_ACTIVE, FINISH, flags, L, M_PI, and PREAMBLE.
Referenced by dtgtk_cairo_paint_plus().
| void dtgtk_cairo_paint_polygon | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
paint a polygon
Definition at line 2794 of file widgets/paint.c.
| void dtgtk_cairo_paint_presets | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Paint a preset icon - similar to hamburger menu
Definition at line 170 of file widgets/paint.c.
References FINISH, L, and PREAMBLE.
Referenced by _ioporder_create_graph_node(), dt_iop_gui_init_blending_body(), and dt_iop_gui_set_expander().
| void dtgtk_cairo_paint_rawoverexposed | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
paint a raw over exposure icon
Definition at line 2649 of file widgets/paint.c.
References _rounded_rectangle(), CPF_ACTIVE, FINISH, flags, L, and PREAMBLE.
Referenced by _create_one_button().
| void dtgtk_cairo_paint_rect_landscape | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
paint a landscape rectangle
Definition at line 2766 of file widgets/paint.c.
| void dtgtk_cairo_paint_rect_portrait | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
paint a portrait rectangle
Definition at line 2780 of file widgets/paint.c.
| void dtgtk_cairo_paint_refresh | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Paint a refresh/reload icon
Definition at line 1679 of file widgets/paint.c.
References FINISH, flags, L, and PREAMBLE.
Referenced by dt_iop_tonecurve_draw(), gui_init(), gui_init(), gui_init(), and gui_post_expose().
| void dtgtk_cairo_paint_reject | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Paint the reject icon on thumbs
Definition at line 1921 of file widgets/paint.c.
References CPF_DIRECTION_RIGHT, FINISH, flags, L, M_PI, and PREAMBLE.
Referenced by dt_thumbnail_create_widget(), and gui_init().
| void dtgtk_cairo_paint_remove | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Paint the remove icon
Definition at line 1943 of file widgets/paint.c.
References _rounded_rectangle(), FINISH, L, and PREAMBLE.
Referenced by _add_sample(), and _lib_duplicate_init_callback().
| void dtgtk_cairo_paint_reset | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Paint a reset icon
Definition at line 378 of file widgets/paint.c.
References FINISH, L, and PREAMBLE.
Referenced by dt_iop_gui_init_blendif(), and dt_iop_gui_set_expander().
| void dtgtk_cairo_paint_rgb_parade | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
paint RGB parade icon
Definition at line 1517 of file widgets/paint.c.
| void dtgtk_cairo_paint_showmask | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Paint a display mask icon
Definition at line 2334 of file widgets/paint.c.
References FINISH, L, M_PI, and PREAMBLE.
Referenced by _ioporder_create_graph_node(), _ioporder_draw_mask_arrow(), dt_iop_gui_init_blending_body(), dt_iop_gui_set_expander(), gui_init(), and gui_init().
| void dtgtk_cairo_paint_softproof | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
paint a soft proofing icon
Definition at line 2718 of file widgets/paint.c.
References FINISH, L, and PREAMBLE.
Referenced by _create_one_button(), and gui_init().
| void dtgtk_cairo_paint_solid_arrow | ( | cairo_t * | cr, |
| gint | x, | ||
| int | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Paint a solid arrow left/right/up/down
Definition at line 261 of file widgets/paint.c.
References C, CPF_DIRECTION_DOWN, CPF_DIRECTION_LEFT, CPF_DIRECTION_UP, FINISH, flags, L, M_PI, PREAMBLE, and S.
Referenced by _coeffs_button_changed(), _extra_options_button_changed(), dt_gui_new_collapsible_section(), dt_gui_update_collapsible_section(), gui_init(), gui_init(), and gui_reset().
| void dtgtk_cairo_paint_solid_triangle | ( | cairo_t * | cr, |
| gint | x, | ||
| int | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Paint a solid triangle left/right/up/down
Definition at line 220 of file widgets/paint.c.
References _draw_triangle(), FINISH, flags, L, and PREAMBLE.
Referenced by _gradient_slider_draw(), and rt_wdbar_draw().
| void dtgtk_cairo_paint_sortby | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Definition at line 313 of file widgets/paint.c.
References CPF_DIRECTION_UP, FINISH, flags, L, and PREAMBLE.
Referenced by _configure_tab(), _lib_filter_reverse_button_changed(), _sort_dir_toggled(), and gui_init().
| void dtgtk_cairo_paint_sorting | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Paint a double arrow up/down
Definition at line 556 of file widgets/paint.c.
| void dtgtk_cairo_paint_square_plus | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Paint a square plus icon
Definition at line 539 of file widgets/paint.c.
References _rounded_rectangle(), FINISH, L, and PREAMBLE.
| void dtgtk_cairo_paint_star | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Paint a rating icon on thumbs
Definition at line 1961 of file widgets/paint.c.
References dt_draw_star(), FINISH, g, L, PREAMBLE, and r.
Referenced by dt_thumbnail_create_widget(), and gui_init().
| void dtgtk_cairo_paint_store | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Paint a store icon
Definition at line 390 of file widgets/paint.c.
| void dtgtk_cairo_paint_structure | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Paint a get structure icon
Definition at line 1735 of file widgets/paint.c.
References FINISH, L, and PREAMBLE.
Referenced by gui_init().
| void dtgtk_cairo_paint_switch | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Paint a switch icon
Definition at line 412 of file widgets/paint.c.
References FINISH, L, and PREAMBLE.
Referenced by _gui_styles_dialog_run(), and dt_gui_hist_dialog_new().
| void dtgtk_cairo_paint_switch_deprecated | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Paint a deprecated switch icon
Definition at line 493 of file widgets/paint.c.
| void dtgtk_cairo_paint_switch_inactive | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Paint an in-active switch icon
Definition at line 458 of file widgets/paint.c.
References FINISH, L, and PREAMBLE.
Referenced by _gui_styles_dialog_run(), and dt_gui_hist_dialog_new().
| void dtgtk_cairo_paint_text_label | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
paint a text label icon
Definition at line 2483 of file widgets/paint.c.
References FINISH, L, and PREAMBLE.
Referenced by dt_iop_tonecurve_draw().
| void dtgtk_cairo_paint_timer | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Paint a timer icon
Definition at line 1291 of file widgets/paint.c.
| void dtgtk_cairo_paint_tool_blur | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Paint a blur tool for retouch
Definition at line 3202 of file widgets/paint.c.
References FINISH, L, M_PI, and PREAMBLE.
Referenced by gui_init().
| void dtgtk_cairo_paint_tool_clone | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Paint a clone tool for retouch
Definition at line 3143 of file widgets/paint.c.
References FINISH, L, M_PI, and PREAMBLE.
Referenced by gui_init().
| void dtgtk_cairo_paint_tool_fill | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Paint a fill tool for retouch
Definition at line 3184 of file widgets/paint.c.
References FINISH, L, and PREAMBLE.
Referenced by gui_init().
| void dtgtk_cairo_paint_tool_heal | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Paint a heal tool for retouch
Definition at line 3156 of file widgets/paint.c.
References FINISH, L, and PREAMBLE.
Referenced by gui_init().
| void dtgtk_cairo_paint_treelist | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Paint a treelist icon
Definition at line 608 of file widgets/paint.c.
References FINISH, L, and PREAMBLE.
Referenced by gui_init().
| void dtgtk_cairo_paint_triangle | ( | cairo_t * | cr, |
| gint | x, | ||
| int | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Paint a triangle left/right/up/down
Definition at line 210 of file widgets/paint.c.
References _draw_triangle(), FINISH, flags, L, and PREAMBLE.
Referenced by _gradient_slider_draw(), and rt_wdbar_draw().
| void dtgtk_cairo_paint_unaltered | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Definition at line 2083 of file widgets/paint.c.
References CPF_DIRECTION_RIGHT, FINISH, flags, L, M_PI, PREAMBLE, and r.
Referenced by gui_init().
| void dtgtk_cairo_paint_unratestar | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Paint an icon for unrating star on thumbs
Definition at line 1986 of file widgets/paint.c.
References dt_draw_star(), FINISH, g, L, PREAMBLE, and r.
Referenced by gui_init().
| void dtgtk_cairo_paint_vectorscope | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
paint vectorscope icon
Definition at line 1458 of file widgets/paint.c.
| void dtgtk_cairo_paint_wand | ( | cairo_t * | cr, |
| gint | x, | ||
| gint | y, | ||
| gint | w, | ||
| gint | h, | ||
| gint | flags, | ||
| void * | data | ||
| ) |
Paint a magic wand for tone equalizer
Definition at line 3366 of file widgets/paint.c.
References _compass_star(), FINISH, L, and PREAMBLE.
Referenced by gui_init().
| void dtgtk_liquify_cairo_paint_curve_tool | ( | cairo_t * | cr, |
| const gint | x, | ||
| const gint | y, | ||
| const gint | w, | ||
| const gint | h, | ||
| const gint | flags, | ||
| void * | data | ||
| ) |
Definition at line 3757 of file widgets/paint.c.
References FINISH, L, and PREAMBLE.
Referenced by gui_init().
| void dtgtk_liquify_cairo_paint_line_tool | ( | cairo_t * | cr, |
| const gint | x, | ||
| const gint | y, | ||
| const gint | w, | ||
| const gint | h, | ||
| const gint | flags, | ||
| void * | data | ||
| ) |
Definition at line 3747 of file widgets/paint.c.
References FINISH, L, and PREAMBLE.
Referenced by gui_init().