![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
Runtime state for drawlayer custom color widgets. More...
Collaboration diagram for dt_drawlayer_widgets_t:Data Fields | |
| float | picker_m |
| float | picker_u |
| float | picker_v |
| float | picker_hue |
| float | picker_chroma |
| int | picker_drag_mode |
| float | color_history [DT_DRAWLAYER_COLOR_HISTORY_COUNT][3] |
| gboolean | color_history_valid [DT_DRAWLAYER_COLOR_HISTORY_COUNT] |
| cairo_surface_t * | color_surface |
| int | color_surface_width |
| int | color_surface_height |
| double | color_surface_ppd |
| gboolean | color_surface_dirty |
| cairo_surface_t * | profile_surface |
| int | profile_surface_width |
| int | profile_surface_height |
| double | profile_surface_ppd |
| gboolean | profile_surface_dirty |
| float | profile_opacity |
| float | profile_hardness |
| float | profile_sprinkles |
| float | profile_sprinkle_size |
| float | profile_sprinkle_coarseness |
| int | profile_selected_shape |
Runtime state for drawlayer custom color widgets.
| float dt_drawlayer_widgets_t::color_history[DT_DRAWLAYER_COLOR_HISTORY_COUNT][3] |
Display-RGB history stack.
Referenced by dt_drawlayer_widgets_draw_swatch(), dt_drawlayer_widgets_get_color_history(), dt_drawlayer_widgets_pick_history_color(), dt_drawlayer_widgets_push_color_history(), and dt_drawlayer_widgets_set_color_history().
| gboolean dt_drawlayer_widgets_t::color_history_valid[DT_DRAWLAYER_COLOR_HISTORY_COUNT] |
Validity flags per history slot.
Referenced by dt_drawlayer_widgets_draw_swatch(), dt_drawlayer_widgets_get_color_history(), dt_drawlayer_widgets_pick_history_color(), dt_drawlayer_widgets_push_color_history(), and dt_drawlayer_widgets_set_color_history().
| cairo_surface_t* dt_drawlayer_widgets_t::color_surface |
Cached picker surface.
Referenced by _clear_color_picker_surface(), and dt_drawlayer_widgets_draw_picker().
| gboolean dt_drawlayer_widgets_t::color_surface_dirty |
Surface requires rebuild on next draw.
Referenced by _clear_color_picker_surface(), dt_drawlayer_widgets_draw_picker(), dt_drawlayer_widgets_init(), dt_drawlayer_widgets_mark_picker_dirty(), dt_drawlayer_widgets_set_display_color(), and dt_drawlayer_widgets_update_from_picker_position().
| int dt_drawlayer_widgets_t::color_surface_height |
Cached surface height in pixels.
Referenced by _clear_color_picker_surface(), and dt_drawlayer_widgets_draw_picker().
| double dt_drawlayer_widgets_t::color_surface_ppd |
Pixels-per-dip used for surface cache.
Referenced by _clear_color_picker_surface(), and dt_drawlayer_widgets_draw_picker().
| int dt_drawlayer_widgets_t::color_surface_width |
Cached surface width in pixels.
Referenced by _clear_color_picker_surface(), and dt_drawlayer_widgets_draw_picker().
| float dt_drawlayer_widgets_t::picker_chroma |
Polar chroma derived from U/V.
Referenced by _picker_clamp_state_to_gamut(), _picker_update_polar_from_uv(), _picker_update_uv_from_polar(), dt_drawlayer_widgets_draw_picker(), and dt_drawlayer_widgets_update_from_picker_position().
| int dt_drawlayer_widgets_t::picker_drag_mode |
Active drag mode (disc/plane/none).
Referenced by dt_drawlayer_widgets_finish_picker_drag(), dt_drawlayer_widgets_init(), dt_drawlayer_widgets_is_picker_dragging(), and dt_drawlayer_widgets_update_from_picker_position().
| float dt_drawlayer_widgets_t::picker_hue |
Polar hue derived from U/V.
Referenced by _picker_clamp_state_to_gamut(), _picker_update_polar_from_uv(), _picker_update_uv_from_polar(), dt_drawlayer_widgets_draw_picker(), and dt_drawlayer_widgets_update_from_picker_position().
| float dt_drawlayer_widgets_t::picker_m |
Achromatic component in opponent space.
Referenced by _picker_clamp_state_to_gamut(), _sync_picker_from_display_rgb(), dt_drawlayer_widgets_draw_picker(), dt_drawlayer_widgets_finish_picker_drag(), dt_drawlayer_widgets_get_display_color(), and dt_drawlayer_widgets_update_from_picker_position().
| float dt_drawlayer_widgets_t::picker_u |
Opponent chroma axis U.
Referenced by _picker_update_polar_from_uv(), _picker_update_uv_from_polar(), _sync_picker_from_display_rgb(), dt_drawlayer_widgets_draw_picker(), dt_drawlayer_widgets_finish_picker_drag(), dt_drawlayer_widgets_get_display_color(), and dt_drawlayer_widgets_update_from_picker_position().
| float dt_drawlayer_widgets_t::picker_v |
Opponent chroma axis V.
Referenced by _picker_update_polar_from_uv(), _picker_update_uv_from_polar(), _sync_picker_from_display_rgb(), dt_drawlayer_widgets_draw_picker(), dt_drawlayer_widgets_finish_picker_drag(), dt_drawlayer_widgets_get_display_color(), and dt_drawlayer_widgets_update_from_picker_position().
| float dt_drawlayer_widgets_t::profile_hardness |
Preview hardness in [0,1].
Referenced by _render_brush_profile_cell(), dt_drawlayer_widgets_init(), and dt_drawlayer_widgets_set_brush_profile_preview().
| float dt_drawlayer_widgets_t::profile_opacity |
Preview opacity in [0,1].
Referenced by _render_brush_profile_cell(), dt_drawlayer_widgets_init(), and dt_drawlayer_widgets_set_brush_profile_preview().
| int dt_drawlayer_widgets_t::profile_selected_shape |
Currently selected brush profile enum.
Referenced by dt_drawlayer_widgets_draw_brush_profiles(), dt_drawlayer_widgets_get_brush_profile_selection(), dt_drawlayer_widgets_init(), dt_drawlayer_widgets_pick_brush_profile(), and dt_drawlayer_widgets_set_brush_profile_preview().
| float dt_drawlayer_widgets_t::profile_sprinkle_coarseness |
Preview sprinkle octave mix in [0,1].
Referenced by _render_brush_profile_cell(), dt_drawlayer_widgets_init(), and dt_drawlayer_widgets_set_brush_profile_preview().
| float dt_drawlayer_widgets_t::profile_sprinkle_size |
Preview sprinkle size in px.
Referenced by _render_brush_profile_cell(), dt_drawlayer_widgets_init(), and dt_drawlayer_widgets_set_brush_profile_preview().
| float dt_drawlayer_widgets_t::profile_sprinkles |
Preview sprinkles in [0,1].
Referenced by _render_brush_profile_cell(), and dt_drawlayer_widgets_set_brush_profile_preview().
| cairo_surface_t* dt_drawlayer_widgets_t::profile_surface |
Cached brush-profile preview row.
Referenced by _clear_profile_surface(), and dt_drawlayer_widgets_draw_brush_profiles().
| gboolean dt_drawlayer_widgets_t::profile_surface_dirty |
Surface requires rebuild on next draw.
Referenced by _clear_profile_surface(), dt_drawlayer_widgets_draw_brush_profiles(), dt_drawlayer_widgets_init(), dt_drawlayer_widgets_pick_brush_profile(), and dt_drawlayer_widgets_set_brush_profile_preview().
| int dt_drawlayer_widgets_t::profile_surface_height |
Cached profile surface height in pixels.
Referenced by _clear_profile_surface(), and dt_drawlayer_widgets_draw_brush_profiles().
| double dt_drawlayer_widgets_t::profile_surface_ppd |
Pixels-per-dip used for profile surface cache.
Referenced by _clear_profile_surface(), and dt_drawlayer_widgets_draw_brush_profiles().
| int dt_drawlayer_widgets_t::profile_surface_width |
Cached profile surface width in pixels.
Referenced by _clear_profile_surface(), and dt_drawlayer_widgets_draw_brush_profiles().