![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
Include dependency graph for imageop_gui.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Data Structures | |
| struct | dt_iop_module_gui_t |
| The interactive half of a module instance, owned by the GUI. More... | |
Macros | |
| #define | IOP_GUI_ALLOC(module) (dt_iop_##module##_gui_data_t *)_iop_gui_alloc(self,sizeof(dt_iop_##module##_gui_data_t)) |
| #define | IOP_GUI_FREE |
Typedefs | |
| typedef struct dt_iop_module_gui_t | dt_iop_module_gui_t |
| The interactive half of a module instance, owned by the GUI. | |
Functions | |
| static dt_iop_gui_data_t * | dt_iop_gui_data (const struct dt_iop_module_t *m) |
| The module's GUI data blob, NULL-safe for headless callers: IOP process() implementations read it for darkroom-only feedback and must get NULL, not a crash, when no GUI exists. | |
| static dt_iop_gui_data_t * | _iop_gui_alloc (dt_iop_module_t *module, size_t size) |
| GtkWidget * | dt_bauhaus_slider_from_params (dt_iop_module_t *self, const char *param) |
| GtkWidget * | dt_bauhaus_combobox_from_params (dt_iop_module_t *self, const char *param) |
| GtkWidget * | dt_bauhaus_toggle_from_params (dt_iop_module_t *self, const char *param) |
| 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) |
| 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) |
| 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) |
| gboolean | dt_mask_scroll_increases (int up) |
| GtkWidget * | dt_iop_gui_reset_label_new (const gchar *label, dt_iop_module_t *module, void *param, int param_size) |
| #define IOP_GUI_ALLOC | ( | module | ) | (dt_iop_##module##_gui_data_t *)_iop_gui_alloc(self,sizeof(dt_iop_##module##_gui_data_t)) |
Definition at line 93 of file imageop_gui.h.
| #define IOP_GUI_FREE |
Definition at line 96 of file imageop_gui.h.
| typedef struct dt_iop_module_gui_t dt_iop_module_gui_t |
The interactive half of a module instance, owned by the GUI.
Held by dt_iop_module_t as an opaque pointer: allocated in dt_iop_gui_init(), freed in dt_iop_gui_cleanup_module(), NULL whenever no GUI is attached to the module (export, thumbnails, ansel-cli, tests). Member names are unchanged from their previous life directly on dt_iop_module_t: call sites read module->gui->widget where they read module->widget before.
|
inlinestatic |
Definition at line 86 of file imageop_gui.h.
References dt_pthread_mutex_init(), dt_iop_module_t::gui, and dt_iop_module_gui_t::gui_lock.
| GtkWidget * dt_bauhaus_combobox_from_params | ( | dt_iop_module_t * | self, |
| const char * | param | ||
| ) |
Definition at line 222 of file imageop_gui.c.
References dt_bauhaus_combobox_add(), dt_bauhaus_combobox_add_full(), DT_BAUHAUS_COMBOBOX_ALIGN_RIGHT, dt_bauhaus_combobox_new(), dt_bauhaus_get_global(), DT_BAUHAUS_WIDGET, dt_bauhaus_widget_set_field(), dt_bauhaus_widget_set_label(), dt_free, DT_GUI_BOX_SPACING, DT_GUI_MODULE, DT_INTROSPECTION_TYPE_BOOL, DT_INTROSPECTION_TYPE_ENUM, DT_INTROSPECTION_TYPE_INT, DT_INTROSPECTION_TYPE_UINT, dt_util_str_replace(), f, FALSE, dt_iop_module_t::gui, IS_NULL_PTR, p, param, dt_iop_module_t::params, dt_iop_module_t::so, TRUE, dt_bauhaus_widget_t::use_default_callback, and dt_iop_module_gui_t::widget.
Referenced by gui_init(), and gui_init().
| GtkWidget * dt_bauhaus_slider_from_params | ( | dt_iop_module_t * | self, |
| const char * | param | ||
| ) |
Definition at line 117 of file imageop_gui.c.
References d, dt_iop_module_t::default_params, dt_bauhaus_get_global(), dt_bauhaus_slider_new(), dt_bauhaus_slider_new_with_range_and_feedback(), DT_BAUHAUS_WIDGET, dt_bauhaus_widget_set_field(), dt_bauhaus_widget_set_label(), dt_free, DT_GUI_BOX_SPACING, DT_GUI_MODULE, DT_INTROSPECTION_TYPE_FLOAT, DT_INTROSPECTION_TYPE_INT, DT_INTROSPECTION_TYPE_USHORT, dt_util_str_replace(), f, FALSE, dt_iop_module_t::gui, IS_NULL_PTR, max, MAX, min, p, param, dt_iop_module_t::params, dt_iop_module_t::so, top, TRUE, dt_bauhaus_widget_t::use_default_callback, and dt_iop_module_gui_t::widget.
Referenced by gui_init(), and gui_init().
| GtkWidget * dt_bauhaus_toggle_from_params | ( | dt_iop_module_t * | self, |
| const char * | param | ||
| ) |
Definition at line 286 of file imageop_gui.c.
References _add_widget_to_module_list(), _iop_toggle_callback(), dt_free, DT_GUI_BOX_SPACING, DT_INTROSPECTION_TYPE_BOOL, dt_util_str_replace(), f, FALSE, dt_iop_module_t::gui, IS_NULL_PTR, p, dt_module_param_t::param, param, dt_iop_module_t::params, dt_iop_module_t::so, and dt_iop_module_gui_t::widget.
Referenced by gui_init(), and gui_init().
| 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 374 of file imageop_gui.c.
References _add_widget_to_module_list(), dtgtk_button_new(), and TRUE.
Referenced by gui_init().
|
inlinestatic |
The module's GUI data blob, NULL-safe for headless callers: IOP process() implementations read it for darkroom-only feedback and must get NULL, not a crash, when no GUI exists.
Definition at line 81 of file imageop_gui.h.
References m.
Referenced by __attribute__(), __attribute__(), _add_shape(), _add_shape_callback(), _apply_display_brush_color(), _area_button_press_callback(), _area_button_press_callback(), _area_button_press_callback(), _area_button_press_callback(), _area_button_release_callback(), _area_button_release_callback(), _area_button_release_callback(), _area_draw_callback(), _area_draw_callback(), _area_draw_callback(), _area_enter_notify_callback(), _area_key_press_callback(), _area_key_press_callback(), _area_leave_notify_callback(), _area_leave_notify_callback(), _area_motion_notify_callback(), _area_motion_notify_callback(), _area_motion_notify_callback(), _area_motion_notify_callback(), _area_scroll_callback(), _area_scrolled_callback(), _area_scrolled_callback(), _ashift_resolve(), _aspect_apply(), _attach_selected_layer_clicked(), _auto_levels_callback(), _auto_levels_callback(), _auto_set_exposure(), _auto_set_illuminant(), _backend_worker_on_idle(), _background_layer_job_done_idle(), _bottom_area_button_press_callback(), _bottom_area_draw_callback(), _brush_profile_button_press(), _brush_profile_draw(), _build_raw_input_event(), _cacheline_ready_callback(), _channel_tabs_switch_callback(), _channel_tabs_switch_callback(), _channelmixerrgb_mixer_mode_callback(), _channelmixerrgb_primaries_slider_callback(), _channelmixerrgb_push_matrix_to_params(), _channelmixerrgb_reject_mixer_mode(), _channelmixerrgb_simple_slider_callback(), _channelmixerrgb_sync_primaries_from_params(), _channelmixerrgb_sync_simple_from_params(), _channelmixerrgb_sync_white_preserving_from_params(), _channelmixerrgb_update_primaries_colors(), _channelmixerrgb_update_simple_colors(), _channelmixerrgb_update_white_preserving_colors(), _channelmixerrgb_white_preserving_slider_callback(), _check_tuner_picker_labels(), _clear_current_layer(), _color_picker_button_release(), _color_picker_draw(), _color_picker_motion(), _color_picker_set_from_position(), _color_swatch_button_press(), _color_swatch_draw(), _colorchecker_rebuild_patch_list(), _colorchecker_update_sliders(), _commit_gui_change(), _configure_slider_blocks(), _create_background_layer_from_input(), _create_new_layer(), _crop_resolve(), _custom_model_populate(), _delete_current_layer(), _develop_cacheline_ready_callback(), _develop_history_resync_callback(), _develop_ui_pipe_finished_callback(), _develop_ui_pipe_finished_callback(), _develop_ui_pipe_finished_callback(), _develop_ui_pipe_finished_callback(), _develop_ui_pipe_finished_callback(), _develop_ui_pipe_started_callback(), _display_mask_callback(), _do_clean_structure(), _do_get_structure_auto(), _do_get_structure_lines(), _do_get_structure_quad(), _draw(), _draw_curve(), _draw_paths(), _draw_retrieve_lines_from_params(), _draw_save_lines_to_params(), _edit_by_area_callback(), _edit_masks(), _ensure_cursor_stamp_surface(), _ensure_widget_cache(), _enter_edit_mode(), _enter_edit_mode(), _event_aspect_presets_changed(), _event_commit_clicked(), _event_commit_clicked(), _event_draw(), _event_fit_both_button_clicked(), _event_fit_h_button_clicked(), _event_fit_v_button_clicked(), _event_preview_updated_callback(), _event_process_after_preview_callback(), _event_process_after_ui_callback(), _event_structure_auto_clicked(), _event_structure_lines_clicked(), _event_structure_quad_clicked(), _exposure_set_black(), _exposure_set_white(), _extra_options_button_changed(), _fill_current_layer(), _fill_input_brush_settings(), _filmic_update_hl_deprecation(), _find_selected_node(), _general_callback(), _get_ashift_params(), _get_structure(), _gui_update_structure_states(), _history_resync_callback(), _interpolator_callback(), _iop_clipping_set_max_clip(), _iop_zonesystem_redraw_preview_callback(), _is_another_module_cat_on_pipe(), _layer_selected(), _lens_axis_source_changed(), _lens_gui_update_sensitivity(), _lens_ids_for_camera(), _lens_rebuild_axis_row(), _make_controls_sensitive(), _mixer_mode_callback(), _move_point_internal(), _move_point_internal(), _move_point_internal(), _move_point_internal(), _move_selected_node(), _origin_color_draw(), _paint_hue(), _pipe_finished_callback(), _populate_layer_list(), _preview_bg_toggled(), _preview_cache_wait_restart(), _preview_draw(), _preview_pipe_finished_callback(), _primaries_slider_callback(), _process_backend_input(), _process_common_setup(), _publish_backend_progress(), _queue_preview_redraw(), _rasterize_pending_dab_batch(), _refresh_layer_widgets(), _refresh_preview_cursor_sample(), _refresh_slider_gradients(), _remember_display_color(), _remove_outliers(), _rename_current_layer_from_gui(), _rename_layer_clicked(), _reset_display_selection(), _reset_form_creation(), _rgblevels_move_handle(), _ring_tabs_switch_callback(), _run_pending_preview_job(), _save_layer_clicked(), _scrolled(), _scrolled(), _select_region_toggled_callback(), _select_region_toggled_callback(), _set_max_clip(), _show_hide_colorspace(), _signal_profile_user_changed(), _simple_slider_callback(), _spot_settings_changed_callback(), _spot_settings_changed_callback(), _start_new_shape(), _switch_cursors(), _switch_preview_cursor(), _sync_brush_profile_preview_widget(), _sync_cached_brush_colors(), _sync_color_picker_from_conf(), _sync_layer_controls(), _sync_mode_sensitive_widgets(), _sync_params_from_gui(), _sync_preview_bg_buttons(), _sync_primaries_from_params(), _sync_simple_from_params(), _sync_white_preserving_from_params(), _tab_switch_callback(), _target_color_draw(), _turn_select_region_off(), _turn_select_region_off(), _update_gui_lut_cache(), _update_gui_lut_cache(), _update_point_gui(), _update_point_slider_colors(), _visualize_callback(), _visualize_callback(), _white_preserving_slider_callback(), _widget_changed(), alignment_callback(), alloc_curve_to(), alloc_line_to(), alloc_move_to(), apply_auto_black(), apply_auto_black(), apply_auto_black(), apply_auto_black(), apply_auto_Dmax(), apply_auto_Dmin(), apply_auto_dynamic_range(), apply_auto_exposure(), apply_auto_grey(), apply_auto_grey(), apply_auto_grey(), apply_auto_offset(), apply_auto_WB_high(), apply_auto_WB_low(), apply_auto_white_point_source(), apply_auto_white_point_source(), apply_autocolor(), apply_autogrey(), apply_autoluma(), apply_autotune(), apply_autotune(), apply_autotune(), apply_box_aspect(), apply_gain_auto(), apply_gain_neutralize(), apply_gamma_auto(), apply_gamma_neutralize(), apply_lift_auto(), apply_lift_neutralize(), area_button_press(), area_button_press(), area_button_press(), area_button_release(), area_button_release(), area_draw(), area_draw(), area_enter_notify(), area_enter_notify(), area_enter_notify(), area_leave_notify(), area_leave_notify(), area_leave_notify(), area_motion_notify(), area_motion_notify(), area_motion_notify(), area_scrolled(), aspect_changed(), aspect_presets_changed(), autoscale_pressed(), autoset(), black_point_source_callback(), blue_callback(), btn_make_radio_callback(), btn_toggled(), button_clicked(), button_pressed(), button_pressed(), button_pressed(), button_released(), button_released(), button_released(), camera_menu_fill(), camera_menusearch_clicked(), camera_set(), change_image(), change_image(), checker_button_press(), checker_changed_callback(), checker_color_changed_callback(), checker_draw(), checker_motion_notify(), cluster_preview_draw(), color_list_visibility(), color_picker_apply(), color_rgb_sliders(), color_temptint_sliders(), colorpick_callback(), colorpicker_callback(), commit_params(), commit_params(), commit_profile_callback(), controls_callback(), cropmode_callback(), denoiseprofile_button_press(), denoiseprofile_button_release(), denoiseprofile_draw(), denoiseprofile_draw_variance(), denoiseprofile_leave_notify(), denoiseprofile_motion_notify(), denoiseprofile_scrolled(), denoiseprofile_tab_switch(), Dmin_picker_callback(), Dmin_picker_update(), do_crop(), do_fit(), draw_paths(), dt_drawlayer_begin_gui_stroke_capture(), dt_drawlayer_commit_dabs(), dt_drawlayer_end_gui_stroke_capture(), dt_drawlayer_ensure_layer_cache(), dt_drawlayer_flush_layer_cache(), dt_drawlayer_sync_widget_cache(), dt_drawlayer_worker_publish_backend_stroke_damage(), dt_iop_basecurve_button_press(), dt_iop_basecurve_draw(), dt_iop_basecurve_key_press(), dt_iop_basecurve_motion_notify(), dt_iop_basecurve_sanity_check(), dt_iop_colorcorrection_button_press(), dt_iop_colorcorrection_draw(), dt_iop_colorcorrection_key_press(), dt_iop_colorcorrection_motion_notify(), dt_iop_colorcorrection_scrolled(), dt_iop_gui_cleanup_module(), dt_iop_gui_update(), dt_iop_levels_area_draw(), dt_iop_levels_autoadjust_callback(), dt_iop_levels_button_press(), dt_iop_levels_button_release(), dt_iop_levels_leave_notify(), dt_iop_levels_motion_notify(), dt_iop_levels_move_handle(), dt_iop_levels_scroll(), dt_iop_monochrome_button_press(), dt_iop_monochrome_button_release(), dt_iop_monochrome_draw(), dt_iop_monochrome_leave_notify(), dt_iop_monochrome_motion_notify(), dt_iop_tonecurve_button_press(), dt_iop_tonecurve_draw(), dt_iop_tonecurve_draw(), dt_iop_tonecurve_draw(), dt_iop_tonecurve_draw(), dt_iop_tonecurve_key_press(), dt_iop_tonecurve_motion_notify(), dt_iop_tonecurve_sanity_check(), dt_iop_zonesystem_bar_button_press(), dt_iop_zonesystem_bar_button_release(), dt_iop_zonesystem_bar_draw(), dt_iop_zonesystem_bar_leave_notify(), dt_iop_zonesystem_bar_motion_notify(), dt_iop_zonesystem_preview_draw(), filmic_gui_sync_toe_shoulder(), fitting_option_changed(), get_points(), green_callback(), grey_point_source_callback(), gui_cache_init(), gui_changed(), gui_cleanup(), gui_cleanup(), gui_focus(), gui_focus(), gui_init(), gui_init_aspect(), gui_init_positions(), gui_post_expose(), gui_post_expose(), gui_post_expose(), gui_reset(), gui_reset(), gui_sliders_update(), gui_update(), gui_update(), gui_update(), gui_update(), gui_update_from_coeffs(), hvflip_callback(), illum_xy_callback(), interpolator_callback(), interpolator_callback(), invalidate_luminance_cache(), key_pressed(), keystone_type_changed(), keystone_type_populate(), latitude_stops_callback(), lens_menu_fill(), lens_menu_select(), lens_menusearch_clicked(), lens_set(), logbase_callback(), logbase_callback(), lowlight_button_press(), lowlight_button_release(), lowlight_draw(), lowlight_leave_notify(), lowlight_motion_notify(), lowlight_scrolled(), mask_callback(), masks_selection_changed(), mode_callback(), mouse_leave(), mouse_leave(), mouse_moved(), mouse_moved(), mouse_moved(), mul2xyz(), nmsfit(), optimize_changed_callback(), origin_color_draw(), output_callback(), paint_hue(), patch_callback(), position_h_changed(), position_v_changed(), post_history_commit(), preset_tune_callback(), process(), process(), process(), process(), process(), process_cl(), process_cl(), process_clusters(), process_common_cleanup(), process_display(), process_drago(), process_internal(), process_wavelets(), profile_callback(), profile_changed(), quiesce(), rawdenoise_button_press(), rawdenoise_button_release(), rawdenoise_draw(), rawdenoise_leave_notify(), rawdenoise_motion_notify(), rawdenoise_scrolled(), rawdenoise_tab_switch(), red_callback(), refresh_watermarks(), reload_defaults(), reset_mix(), rt_auto_levels_callback(), rt_copypaste_scale_callback(), rt_curr_scale_update(), rt_develop_ui_pipe_finished_callback(), rt_display_wavelet_scale_callback(), rt_edit_masks_callback(), rt_load_shape_algo_in_gui(), rt_merge_from_scale_update(), rt_num_scales_update(), rt_select_algorithm_callback(), rt_shape_buttons_can_start(), rt_show_forms_for_current_scale(), rt_show_hide_controls(), rt_showmask_callback(), rt_suppress_callback(), rt_wdbar_button_press(), rt_wdbar_button_release(), rt_wdbar_draw(), rt_wdbar_leave_notify(), rt_wdbar_motion_notify(), rt_wdbar_scrolled(), run_profile_callback(), run_validation_callback(), safety_changed_callback(), scrolled(), scrolled(), scrolled(), security_threshold_callback(), show_guiding_controls(), show_luminance_mask_callback(), show_mask_callback(), size_allocate_callback(), smoothing_callback(), start_profiling_callback(), sync_pipe(), tab_switch(), tab_switch(), tab_switch_callback(), target_a_callback(), target_b_callback(), target_C_callback(), target_callback(), target_color_draw(), target_L_callback(), temp_tint_callback(), toe_shoulder_callback(), toggle_stock_controls(), update_approx_cct(), update_colorchecker_color_list(), update_colorchecker_list(), update_colors(), update_curve_lut(), update_histogram(), update_illuminant_color(), update_illuminants(), update_profile_list(), update_xy_color(), watermark_callback(), Wb_high_norm_callback(), WB_high_picker_callback(), WB_high_picker_update(), Wb_low_norm_callback(), WB_low_picker_callback(), WB_low_picker_update(), white_point_source_callback(), and xyz2mul().
| GtkWidget * dt_iop_gui_reset_label_new | ( | const gchar * | label, |
| dt_iop_module_t * | module, | ||
| void * | param, | ||
| int | param_size | ||
| ) |
Definition at line 2232 of file imageop_gui.c.
References _iop_reset_label_reset(), d, dtgtk_reset_label_new(), dt_iop_reset_label_t::offset, param, and dt_iop_module_t::params.
Referenced by gui_init(), and gui_init().
| 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 | ||
| ) |
Definition at line 327 of file imageop_gui.c.
References _add_widget_to_module_list(), dt_free, dtgtk_togglebutton_new(), FALSE, IS_NULL_PTR, and tooltip.
Referenced by dt_masks_shape_buttons_create(), gui_init(), and gui_init().
| 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 351 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().
| gboolean dt_mask_scroll_increases | ( | int | up | ) |
Definition at line 399 of file imageop_gui.c.
References dt_conf_get_bool().
Referenced by dt_masks_events_mouse_scrolled(), scrolled(), and scrolled().