Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
widget_settings.h File Reference
#include <gtk/gtk.h>
#include <pthread.h>
#include <stdarg.h>
Include dependency graph for widget_settings.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  dt_gui_freeze_token_t
struct  dt_widget_overlay_color_t

Macros

#define dt_gui_freeze_begin()
#define dt_gui_freeze_end()
#define DT_FREEZE_CAT_(a, b)
#define DT_FREEZE_CAT(a, b)
#define dt_gui_widget_freeze()
#define dt_widget_log(...)
#define dt_widget_log_enabled()
#define DT_UI_SCALE_UI(value)
#define DT_UI_SCALE_DEVICE(value)
#define DT_PIXEL_APPLY_DPI(value)
#define DT_PIXEL_APPLY_DPI_DPP(value)
#define DT_GUI_EM_SIZE   ((gint)dt_widget_em_size())
#define DT_GUI_BOX_SPACING_EM   0.625
#define DT_GUI_BOX_SPACING   ((gint)(DT_GUI_EM_SIZE * DT_GUI_BOX_SPACING_EM + 0.5))
#define DT_GUI_MOUSE_EFFECT_RADIUS   dt_widget_mouse_radius_clamped()
#define dt_gtk_widget_queue_draw(widget)
#define dt_gtk_toggle_button_set_active(toggle_button, active)

Typedefs

typedef GtkWidget *(* dt_widget_root_window_handler_t) (void)
typedef gint(* dt_widget_natural_width_handler_t) (GtkWidget *widget)
typedef void(* dt_widget_message_handler_t) (const char *message)
typedef void(* dt_widget_cursor_handler_t) (GdkCursorType cursor)
typedef gboolean(* dt_widget_stored_int_getter_t) (const char *key, int *value)
typedef void(* dt_widget_stored_int_setter_t) (const char *key, int value)
typedef gboolean(* dt_widget_stored_bool_getter_t) (const char *key)
typedef void(* dt_widget_stored_bool_setter_t) (const char *key, gboolean value)
typedef void(* dt_widget_refocus_handler_t) (void)
typedef void(* dt_widget_notebook_page_handler_t) (gpointer owner)
typedef enum dt_gui_color_t dt_gui_color_t
typedef struct dt_widget_overlay_color_t dt_widget_overlay_color_t

Enumerations

enum  {
  DT_WIDGET_COLORLABEL_RED = 0 ,
  DT_WIDGET_COLORLABEL_YELLOW ,
  DT_WIDGET_COLORLABEL_GREEN ,
  DT_WIDGET_COLORLABEL_BLUE ,
  DT_WIDGET_COLORLABEL_PURPLE ,
  DT_WIDGET_COLORLABEL_COUNT
}
enum  dt_gui_color_t {
  DT_GUI_COLOR_BG = 0 ,
  DT_GUI_COLOR_DARKROOM_BG ,
  DT_GUI_COLOR_DARKROOM_PREVIEW_BG ,
  DT_GUI_COLOR_LIGHTTABLE_BG ,
  DT_GUI_COLOR_LIGHTTABLE_PREVIEW_BG ,
  DT_GUI_COLOR_LIGHTTABLE_FONT ,
  DT_GUI_COLOR_PRINT_BG ,
  DT_GUI_COLOR_BRUSH_CURSOR ,
  DT_GUI_COLOR_BRUSH_TRACE ,
  DT_GUI_COLOR_BUTTON_FG ,
  DT_GUI_COLOR_THUMBNAIL_BG ,
  DT_GUI_COLOR_THUMBNAIL_SELECTED_BG ,
  DT_GUI_COLOR_THUMBNAIL_HOVER_BG ,
  DT_GUI_COLOR_THUMBNAIL_OUTLINE ,
  DT_GUI_COLOR_THUMBNAIL_SELECTED_OUTLINE ,
  DT_GUI_COLOR_THUMBNAIL_HOVER_OUTLINE ,
  DT_GUI_COLOR_THUMBNAIL_FONT ,
  DT_GUI_COLOR_THUMBNAIL_SELECTED_FONT ,
  DT_GUI_COLOR_THUMBNAIL_HOVER_FONT ,
  DT_GUI_COLOR_THUMBNAIL_BORDER ,
  DT_GUI_COLOR_THUMBNAIL_SELECTED_BORDER ,
  DT_GUI_COLOR_FILMSTRIP_BG ,
  DT_GUI_COLOR_PREVIEW_HOVER_BORDER ,
  DT_GUI_COLOR_LOG_BG ,
  DT_GUI_COLOR_LOG_FG ,
  DT_GUI_COLOR_MAP_COUNT_SAME_LOC ,
  DT_GUI_COLOR_MAP_COUNT_DIFF_LOC ,
  DT_GUI_COLOR_MAP_COUNT_BG ,
  DT_GUI_COLOR_MAP_LOC_SHAPE_HIGH ,
  DT_GUI_COLOR_MAP_LOC_SHAPE_LOW ,
  DT_GUI_COLOR_MAP_LOC_SHAPE_DEF ,
  DT_GUI_COLOR_WARNING ,
  DT_GUI_COLOR_LAST
}

Functions

G_BEGIN_DECLS GdkEventMask dt_widget_scroll_mask (void)
void dt_widget_set_scroll_mask (GdkEventMask mask)
GtkWidget * dt_widget_scroll_focus (void)
void dt_widget_set_scroll_focus (GtkWidget *widget)
cairo_filter_t dt_widget_image_filter (void)
void dt_widget_set_image_filter (cairo_filter_t filter)
gboolean dt_gui_widgets_suppressed (void)
void dt_gui_widgets_choice_begin (void)
void dt_gui_widgets_choice_end (void)
gboolean dt_gui_widgets_choice_announced (void)
void dt_widget_set_gui_thread (pthread_t thread)
gboolean dt_widget_on_gui_thread (void)
 Is the calling thread the one that owns widget state?
void dt_gui_freeze_begin_ (const char *file, int line)
void dt_gui_freeze_end_ (const char *file, int line)
void dt_gui_freeze_reset (void)
static void dt_gui_freeze_release_ (dt_gui_freeze_token_t *t)
gboolean dt_gui_get_scroll_unit_deltas (const GdkEventScroll *event, int *delta_x, int *delta_y)
gboolean dt_gui_get_scroll_unit_delta (const GdkEventScroll *event, int *delta)
void dt_widget_set_scroll_reversed (gboolean reverse_x, gboolean reverse_y)
void dt_widget_set_root_window_handler (dt_widget_root_window_handler_t handler)
GtkWidget * dt_widget_root_window (void)
void dt_widget_set_natural_width_handler (dt_widget_natural_width_handler_t handler)
gint dt_widget_natural_width (GtkWidget *widget)
void dt_widget_set_message_handler (dt_widget_message_handler_t handler)
void dt_widget_message (const char *message)
void dt_widget_set_cursor_handler (dt_widget_cursor_handler_t handler)
void dt_widget_set_cursor (GdkCursorType cursor)
static void G_GNUC_PRINTF (1, 2) dt_widget_log_discard(const char *format
gboolean dt_widget_debug_overlays (void)
void dt_widget_set_debug_overlays (gboolean enabled)
void dt_widget_set_storage_handlers (dt_widget_stored_int_getter_t get_int, dt_widget_stored_int_setter_t set_int, dt_widget_stored_bool_getter_t get_bool, dt_widget_stored_bool_setter_t set_bool)
gboolean dt_widget_stored_int (const char *key, int *value)
void dt_widget_store_int (const char *key, int value)
gboolean dt_widget_stored_bool (const char *key)
void dt_widget_store_bool (const char *key, gboolean value)
gboolean dt_widget_theme_loaded (void)
void dt_widget_set_theme_loaded (gboolean loaded)
void dt_widget_set_refocus_handler (dt_widget_refocus_handler_t handler)
void dt_widget_refocus (void)
void dt_widget_set_notebook_page_handler (dt_widget_notebook_page_handler_t handler)
void dt_widget_notebook_page_changed (gpointer owner)
double dt_widget_dpi (void)
void dt_widget_set_dpi (double dpi)
gboolean dt_widget_metrics_probed (void)
double dt_widget_dpi_factor (void)
void dt_widget_set_dpi_factor (double factor)
double dt_widget_ppd (void)
void dt_widget_set_ppd (double ppd)
gint dt_widget_min_panel_width (void)
void dt_widget_set_min_panel_width (gint width)
double dt_widget_em_size (void)
void dt_widget_set_em_size (double em)
double dt_get_system_gui_ppd (GtkWidget *widget)
GdkModifierType dt_key_modifier_state (void)
const GdkRGBA * dt_widget_colorlabel (int index)
void dt_widget_set_colorlabels (const GdkRGBA *labels, int count)
static GdkModifierType dt_modifier_primary_mask (GdkModifierType desired_modifier_mask)
static GdkModifierType dt_accels_display_mods (GdkModifierType mods)
static gboolean dt_modifier_is (GdkModifierType state, const GdkModifierType desired_modifier_mask)
static gboolean dt_modifiers_include (GdkModifierType state, const GdkModifierType desired_modifier_mask)
gboolean dt_gui_get_scroll_deltas (const GdkEventScroll *event, gdouble *delta_x, gdouble *delta_y)
gboolean dt_gui_get_scroll_delta (const GdkEventScroll *event, gdouble *delta)
GdkRGBA * dt_widget_colors (void)
void dt_widget_set_source_rgb (cairo_t *cr, dt_gui_color_t color)
void dt_widget_set_source_rgba (cairo_t *cr, dt_gui_color_t color, float opacity_coef)
const dt_widget_overlay_color_t * dt_widget_overlay_color (void)
void dt_widget_set_overlay_color (double red, double green, double blue, double contrast)
float dt_widget_mouse_radius (void)
float dt_widget_mouse_radius_clamped (void)
void dt_widget_set_mouse_radius (float radius, float clamped)

Macro Definition Documentation

◆ DT_FREEZE_CAT

#define DT_FREEZE_CAT ( a,
b )
Value:
#define DT_FREEZE_CAT_(a, b)

Definition at line 111 of file widget_settings.h.

◆ DT_FREEZE_CAT_

#define DT_FREEZE_CAT_ ( a,
b )
Value:
a##b

Definition at line 110 of file widget_settings.h.

◆ dt_gtk_toggle_button_set_active

#define dt_gtk_toggle_button_set_active ( toggle_button,
active )
Value:
gtk_toggle_button_set_active(toggle_button, active)

Definition at line 474 of file widget_settings.h.

◆ dt_gtk_widget_queue_draw

#define dt_gtk_widget_queue_draw ( widget)
Value:
gtk_widget_queue_draw(widget)

Definition at line 473 of file widget_settings.h.

◆ DT_GUI_BOX_SPACING

#define DT_GUI_BOX_SPACING   ((gint)(DT_GUI_EM_SIZE * DT_GUI_BOX_SPACING_EM + 0.5))

Definition at line 287 of file widget_settings.h.

Referenced by _add_sample(), _add_tag_button_clicked(), _added_gui_thread(), _blendop_create_notebook_page(), _blendop_create_toggle_page(), _blendop_masks_create_scroll_grid(), _build_brush_tab(), _build_display_popover(), _build_input_tab(), _build_layer_tab(), _build_overexposed_popover(), _build_rawoverexposed_popover(), _build_softproof_gamut_popover(), _configure_slider_blocks(), _confirm_pending_import(), _ensure_page_widgets(), _gui_init_datetime(), _gui_styles_dialog_run(), _guides_gui_grid(), _import_discarded_files_popup(), _init_widgets(), _iop_tooltip_callback(), _ioporder_create_endpoint_node(), _ioporder_create_graph_node(), _ioporder_init_popup(), _lib_location_place_widget_new(), _modchooser_run(), _pop_menu_dictionary_change_path(), _pop_menu_dictionary_create_tag(), _pop_menu_dictionary_delete_node(), _pop_menu_dictionary_edit_tag(), _presets_show_edit_dialog(), _preview_gpx_file(), _prompt_layer_name_dialog(), _refresh_all_container_spacing(), _show_drawlayer_wait_dialog(), _thumb_resize_overlays(), _ui_init_panel_container_bottom(), _ui_init_panel_container_top(), _ui_init_panel_top(), attach_popover(), create_notebook_page_process(), create_notebook_page_reference(), create_notebook_page_source(), ctx_gtk_check_menu_item_new_with_markup(), ctx_gtk_check_menu_item_new_with_markup_and_pixbuf(), ctx_gtk_menu_item_new_with_icon(), ctx_gtk_menu_item_new_with_icon_and_shortcut(), ctx_gtk_menu_item_new_with_markup_and_pixbuf(), ctx_gtk_menu_item_new_with_markup_and_shortcut(), dt_accels_window(), dt_bauhaus_combobox_from_params(), dt_bauhaus_slider_from_params(), dt_bauhaus_toggle_from_params(), dt_control_crawler_show_image_list(), dt_gui_new_collapsible_section(), dt_gui_preferences_show(), dt_gui_show_standalone_string_dialog(), dt_gui_show_standalone_three_choice_dialog(), dt_gui_show_standalone_yes_no_dialog(), dt_gui_splash_init(), dt_guides_popover(), dt_iop_gui_init_blendif(), dt_iop_gui_init_blending_body(), dt_iop_gui_init_masks(), dt_iop_gui_init_raster(), dt_iop_gui_set_expander(), dt_lib_export_metadata_configuration_dialog(), dt_lib_gui_get_expander(), dt_lut_viewer_new(), dt_masks_gui_add_interaction_slider(), dt_masks_shape_buttons_create(), dt_masks_shape_menu_item_new(), dt_thumbnail_create_widget(), dt_ui_init_main_table(), dt_ui_init_titlebar(), dt_ui_notebook_page(), get_export_filename(), gui_init(), gui_init(), gui_init(), gui_init(), gui_init(), gui_init(), gui_init(), gui_init_section(), init_tab_general(), and init_tab_presets().

◆ DT_GUI_BOX_SPACING_EM

#define DT_GUI_BOX_SPACING_EM   0.625

Definition at line 286 of file widget_settings.h.

◆ DT_GUI_EM_SIZE

#define DT_GUI_EM_SIZE   ((gint)dt_widget_em_size())

Definition at line 285 of file widget_settings.h.

Referenced by _thumb_resize_overlays().

◆ dt_gui_freeze_begin

#define dt_gui_freeze_begin ( )
Value:
dt_gui_freeze_begin_(__FILE__, __LINE__)
void dt_gui_freeze_begin_(const char *file, int line)

Definition at line 102 of file widget_settings.h.

Referenced by __attribute__(), _auto_set_exposure(), _auto_set_illuminant(), _blendop_blendif_channel_display_toggled(), _blendop_blendif_showmask_clicked(), _blendop_blendif_sync_channel_display_buttons(), _blendop_blendif_update_tab(), _blendop_masks_group_selection_changed(), _blendop_masks_show_and_edit(), _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(), _color_picker_new(), _color_picker_reset(), _commit_gui(), _configure_tab(), _develop_ui_pipe_finished_callback(), _develop_ui_pipe_finished_callback(), _develop_ui_pipe_finished_callback(), _develop_ui_pipe_started_callback(), _display_mask_callback(), _display_mask_indicator_callback(), _draw(), _dt_dev_history_compress_internal(), _edit_masks(), _enter_edit_mode(), _event_aspect_presets_changed(), _event_draw(), _exposure_set_black(), _exposure_set_white(), _fill_box_values(), _gui_delete_callback(), _history_apply_history_end(), _history_gui_refresh(), _lib_collect_gui_update(), _mixer_mode_callback(), _picker_show_on(), _primaries_slider_callback(), _print_size_display(), _reset_display_selection(), _set_dimensions(), _settings_flip_update(), _signal_profile_user_changed(), _simple_slider_callback(), _spot_settings_changed_callback(), _spot_settings_changed_callback(), _sync_primaries_from_params(), _sync_simple_from_params(), _sync_white_preserving_from_params(), _unit_changed(), _update_gradient_slider_pickers(), _update_layout(), _update_point_gui(), _white_preserving_slider_callback(), 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_gain_auto(), apply_gain_neutralize(), apply_gamma_auto(), apply_gamma_neutralize(), apply_lift_auto(), apply_lift_neutralize(), aspect_changed(), aspect_presets_changed(), button_released(), checker_button_press(), checker_changed_callback(), color_picker_apply(), commit_profile_callback(), denoiseprofile_draw_variance(), Dmin_picker_callback(), do_fit(), dt_dev_history_truncate(), dt_dev_pop_history_items(), dt_dev_reload_history_items(), dt_imageio_load_modules_format(), dt_init(), dt_iop_gui_blend_masks_update(), dt_iop_gui_duplicate(), dt_iop_gui_init_blending_body(), dt_iop_gui_reset(), dt_iop_gui_update(), dt_iop_gui_update_blendif(), dt_iop_gui_update_blending(), filmic_gui_sync_toe_shoulder(), grey_point_source_callback(), gui_changed(), gui_init(), gui_post_expose(), gui_update(), gui_update(), illum_xy_callback(), mouse_moved(), patch_callback(), position_h_changed(), position_v_changed(), preset_tune_callback(), reset_mix(), rt_copypaste_scale_callback(), rt_develop_ui_pipe_finished_callback(), rt_display_wavelet_scale_callback(), rt_edit_masks_callback(), rt_load_shape_algo_in_gui(), rt_select_algorithm_callback(), sanitize_latitude(), security_threshold_callback(), set_RGB_sliders(), target_a_callback(), target_b_callback(), target_C_callback(), target_callback(), temp_tint_callback(), update_exposure_sliders(), Wb_high_norm_callback(), WB_high_picker_callback(), Wb_low_norm_callback(), and WB_low_picker_callback().

◆ dt_gui_freeze_end

#define dt_gui_freeze_end ( )
Value:
dt_gui_freeze_end_(__FILE__, __LINE__)
void dt_gui_freeze_end_(const char *file, int line)

Definition at line 103 of file widget_settings.h.

Referenced by __attribute__(), _auto_set_exposure(), _auto_set_illuminant(), _blendop_blendif_channel_display_toggled(), _blendop_blendif_showmask_clicked(), _blendop_blendif_sync_channel_display_buttons(), _blendop_blendif_update_tab(), _blendop_masks_group_selection_changed(), _blendop_masks_show_and_edit(), _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(), _color_picker_new(), _color_picker_reset(), _commit_gui(), _configure_tab(), _develop_ui_pipe_finished_callback(), _develop_ui_pipe_finished_callback(), _develop_ui_pipe_finished_callback(), _develop_ui_pipe_started_callback(), _display_mask_callback(), _display_mask_indicator_callback(), _draw(), _dt_dev_history_compress_internal(), _edit_masks(), _enter_edit_mode(), _event_aspect_presets_changed(), _event_draw(), _exposure_set_black(), _exposure_set_white(), _fill_box_values(), _gui_delete_callback(), _history_apply_history_end(), _history_gui_refresh(), _lib_collect_gui_update(), _mixer_mode_callback(), _picker_show_on(), _primaries_slider_callback(), _print_size_display(), _reset_display_selection(), _set_dimensions(), _settings_flip_update(), _signal_profile_user_changed(), _simple_slider_callback(), _spot_settings_changed_callback(), _spot_settings_changed_callback(), _sync_primaries_from_params(), _sync_simple_from_params(), _sync_white_preserving_from_params(), _unit_changed(), _update_gradient_slider_pickers(), _update_layout(), _update_point_gui(), _white_preserving_slider_callback(), 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_gain_auto(), apply_gain_neutralize(), apply_gamma_auto(), apply_gamma_neutralize(), apply_lift_auto(), apply_lift_neutralize(), aspect_changed(), aspect_presets_changed(), button_released(), checker_button_press(), checker_changed_callback(), color_picker_apply(), commit_profile_callback(), denoiseprofile_draw_variance(), Dmin_picker_callback(), do_fit(), dt_dev_history_truncate(), dt_dev_pop_history_items(), dt_dev_reload_history_items(), dt_imageio_load_modules_format(), dt_init(), dt_iop_gui_blend_masks_update(), dt_iop_gui_duplicate(), dt_iop_gui_init_blending_body(), dt_iop_gui_reset(), dt_iop_gui_update(), dt_iop_gui_update_blendif(), dt_iop_gui_update_blending(), filmic_gui_sync_toe_shoulder(), grey_point_source_callback(), gui_changed(), gui_init(), gui_post_expose(), gui_update(), gui_update(), illum_xy_callback(), mouse_moved(), patch_callback(), position_h_changed(), position_v_changed(), preset_tune_callback(), reset_mix(), rt_copypaste_scale_callback(), rt_develop_ui_pipe_finished_callback(), rt_display_wavelet_scale_callback(), rt_edit_masks_callback(), rt_load_shape_algo_in_gui(), rt_select_algorithm_callback(), sanitize_latitude(), security_threshold_callback(), set_RGB_sliders(), target_a_callback(), target_b_callback(), target_C_callback(), target_callback(), temp_tint_callback(), update_exposure_sliders(), Wb_high_norm_callback(), WB_high_picker_callback(), Wb_low_norm_callback(), and WB_low_picker_callback().

◆ DT_GUI_MOUSE_EFFECT_RADIUS

◆ dt_gui_widget_freeze

#define dt_gui_widget_freeze ( )
Value:
dt_gui_freeze_token_t DT_FREEZE_CAT(_dt_freeze_guard_, __LINE__) \
__attribute__((cleanup(dt_gui_freeze_release_))) = { __FILE__, __LINE__ }; \
dt_gui_freeze_begin_(__FILE__, __LINE__)
void cleanup(dt_imageio_module_format_t *self)
Definition avif.c:170
static void dt_gui_freeze_release_(dt_gui_freeze_token_t *t)
#define DT_FREEZE_CAT(a, b)

Definition at line 112 of file widget_settings.h.

Referenced by _entry_clear_suppressed(), _lens_rebuild_axis_row(), camera_menu_select(), dt_drawlayer_layers_populate_list(), dt_iop_gui_init(), dt_iop_reload_defaults(), gui_update(), lens_menu_select(), and process_clusters().

◆ DT_PIXEL_APPLY_DPI

#define DT_PIXEL_APPLY_DPI ( value)
Value:
dev roi_request value
#define DT_UI_SCALE_UI(value)

Definition at line 278 of file widget_settings.h.

Referenced by _add_tag_button_clicked(), _alert_show(), _area_draw_callback(), _area_draw_callback(), _area_draw_callback(), _ask_and_delete(), _blendop_masks_init_icons(), _bottom_area_draw_callback(), _brush_events_post_expose(), _brush_profile_geometry(), _build_brush_tab(), _build_display_popover(), _cairo_rectangle(), _closing_window_new(), _color_picker_geometry(), _color_picker_hit_margin(), _draw_arrow(), _draw_axes(), _draw_brush_hud(), _draw_color_picker(), _draw_cube(), _draw_curve(), _draw_ellipse(), _draw_end_marker(), _draw_image(), _draw_near_point(), _draw_overlay(), _draw_placeholder(), _draw_rectangle(), _draw_samples(), _draw_sym(), _draw_transient_image(), _dt_masks_find_best_attachment_point(), _find_selected_node(), _get_container_row_heigth(), _get_preferred_width(), _gui_styles_dialog_run(), _hit_paths(), _hm_show_merge_report_popup(), _import_discarded_files_popup(), _init_drawing(), _init_image_pin(), _init_place_pin(), _init_widgets(), _iop_tooltip_callback(), _ioporder_add_preset(), _ioporder_create_endpoint_node(), _ioporder_draw_mask_arrow(), _ioporder_draw_sequence_arrow(), _ioporder_graph_draw(), _ioporder_init_popup(), _ioporder_rebuild_graph(), _is_in_frame(), _lib_duplicate_init_callback(), _lib_navigation_compose(), _menuitem_preferences(), _mouse_scroll(), _origin_color_draw(), _preview_gpx_file(), _preview_width_changed(), _process_restricted_text(), _process_vectorscope(), _prompt_layer_name_dialog(), _resizable_scroll_max_height(), _sample_draw_callback(), _scope_resize_handle_resize(), _shape_manager_height_ceiling(), _show_drawlayer_wait_dialog(), _show_message(), _snap_to_grid(), _studio_style_add_icon_column(), _styles_open_popup_callback(), _target_color_draw(), _thumb_draw_image(), _ui_toast_redraw_callback(), _view_map_drag_set_icon(), _view_map_get_entry_at_pos(), _view_map_get_imgs_at_pos(), _view_map_images_count(), _view_map_motion_notify_callback(), area_draw(), area_draw(), attach_popover(), button_pressed(), checker_draw(), cluster_preview_draw(), commit_params(), denoiseprofile_draw(), draw_exposure_cursor(), dt_cairo_draw_arrow(), dt_control_crawler_show_image_list(), dt_control_draw_busy_msg(), dt_control_expose(), dt_dev_draw_profile_mode_label(), dt_dev_toolbox_apply_iso_12646_size(), dt_dev_update_mouse_effect_radius(), dt_draw_paint_to_pixbuf(), dt_drawlayer_widgets_draw_swatch(), dt_focus_draw_clusters(), dt_gui_alert_add_button(), dt_gui_alert_new(), dt_gui_hist_dialog_new(), dt_gui_preferences_show(), dt_gui_textview_set_padding(), dt_guides_draw(), dt_guides_draw_grid(), dt_iop_basecurve_draw(), dt_iop_colorcorrection_draw(), dt_iop_colorcorrection_motion_notify(), dt_iop_gui_init_masks(), dt_iop_levels_area_draw(), dt_iop_monochrome_draw(), dt_iop_tonecurve_draw(), dt_iop_tonecurve_draw(), dt_iop_tonecurve_draw(), dt_iop_tonecurve_draw(), dt_iop_zonesystem_bar_draw(), dt_iop_zonesystem_preview_draw(), dt_lib_export_metadata_configuration_dialog(), dt_lut_viewer_new(), dt_masks_create_menu(), dt_masks_draw_source(), dt_masks_gui_add_interaction_slider(), dt_masks_shape_menu_item_new(), dt_privacy_ask_consent(), dt_ui_init_main_table(), dt_ui_resizable_drawing_area(), dt_ui_scroll_wrap(), dtgtk_resize_handle_new(), export_files_callback(), export_image_list_callback(), filmic_gui_draw_icon(), get_ui_width(), gui_draw_sym(), gui_init(), gui_init(), gui_init(), gui_init(), gui_init(), gui_post_expose(), gui_post_expose(), gui_post_expose(), illuminant_color_draw(), lowlight_draw(), mouse_moved(), origin_color_draw(), process(), process_cl(), rawdenoise_draw(), target_color_draw(), tree_insert_presets(), and update_preview_cb().

◆ DT_PIXEL_APPLY_DPI_DPP

#define DT_PIXEL_APPLY_DPI_DPP ( value)
Value:
#define DT_UI_SCALE_DEVICE(value)

Definition at line 279 of file widget_settings.h.

Referenced by _draw_end_marker().

◆ DT_UI_SCALE_DEVICE

#define DT_UI_SCALE_DEVICE ( value)
Value:
double dt_widget_ppd(void)
double dt_widget_dpi_factor(void)

Definition at line 277 of file widget_settings.h.

Referenced by _view_image_get_surface_internal(), and dt_gui_gtk_init().

◆ DT_UI_SCALE_UI

#define DT_UI_SCALE_UI ( value)
Value:

Definition at line 276 of file widget_settings.h.

◆ dt_widget_log

#define dt_widget_log ( ...)

◆ dt_widget_log_enabled

#define dt_widget_log_enabled ( )
Value:

Definition at line 179 of file widget_settings.h.

Referenced by _accels_keys_decode().

Typedef Documentation

◆ dt_gui_color_t

◆ dt_widget_cursor_handler_t

typedef void(* dt_widget_cursor_handler_t) (GdkCursorType cursor)

Definition at line 150 of file widget_settings.h.

◆ dt_widget_message_handler_t

typedef void(* dt_widget_message_handler_t) (const char *message)

Definition at line 143 of file widget_settings.h.

◆ dt_widget_natural_width_handler_t

typedef gint(* dt_widget_natural_width_handler_t) (GtkWidget *widget)

Definition at line 136 of file widget_settings.h.

◆ dt_widget_notebook_page_handler_t

typedef void(* dt_widget_notebook_page_handler_t) (gpointer owner)

Definition at line 233 of file widget_settings.h.

◆ dt_widget_overlay_color_t

typedef struct dt_widget_overlay_color_t dt_widget_overlay_color_t

◆ dt_widget_refocus_handler_t

typedef void(* dt_widget_refocus_handler_t) (void)

Definition at line 227 of file widget_settings.h.

◆ dt_widget_root_window_handler_t

typedef GtkWidget *(* dt_widget_root_window_handler_t) (void)

Definition at line 129 of file widget_settings.h.

◆ dt_widget_stored_bool_getter_t

typedef gboolean(* dt_widget_stored_bool_getter_t) (const char *key)

Definition at line 202 of file widget_settings.h.

◆ dt_widget_stored_bool_setter_t

typedef void(* dt_widget_stored_bool_setter_t) (const char *key, gboolean value)

Definition at line 203 of file widget_settings.h.

◆ dt_widget_stored_int_getter_t

typedef gboolean(* dt_widget_stored_int_getter_t) (const char *key, int *value)

Definition at line 200 of file widget_settings.h.

◆ dt_widget_stored_int_setter_t

typedef void(* dt_widget_stored_int_setter_t) (const char *key, int value)

Definition at line 201 of file widget_settings.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
DT_WIDGET_COLORLABEL_RED 
DT_WIDGET_COLORLABEL_YELLOW 
DT_WIDGET_COLORLABEL_GREEN 
DT_WIDGET_COLORLABEL_BLUE 
DT_WIDGET_COLORLABEL_PURPLE 
DT_WIDGET_COLORLABEL_COUNT 

Definition at line 292 of file widget_settings.h.

◆ dt_gui_color_t

Enumerator
DT_GUI_COLOR_BG 
DT_GUI_COLOR_DARKROOM_BG 
DT_GUI_COLOR_DARKROOM_PREVIEW_BG 
DT_GUI_COLOR_LIGHTTABLE_BG 
DT_GUI_COLOR_LIGHTTABLE_PREVIEW_BG 
DT_GUI_COLOR_LIGHTTABLE_FONT 
DT_GUI_COLOR_PRINT_BG 
DT_GUI_COLOR_BRUSH_CURSOR 
DT_GUI_COLOR_BRUSH_TRACE 
DT_GUI_COLOR_BUTTON_FG 
DT_GUI_COLOR_THUMBNAIL_BG 
DT_GUI_COLOR_THUMBNAIL_SELECTED_BG 
DT_GUI_COLOR_THUMBNAIL_HOVER_BG 
DT_GUI_COLOR_THUMBNAIL_OUTLINE 
DT_GUI_COLOR_THUMBNAIL_SELECTED_OUTLINE 
DT_GUI_COLOR_THUMBNAIL_HOVER_OUTLINE 
DT_GUI_COLOR_THUMBNAIL_FONT 
DT_GUI_COLOR_THUMBNAIL_SELECTED_FONT 
DT_GUI_COLOR_THUMBNAIL_HOVER_FONT 
DT_GUI_COLOR_THUMBNAIL_BORDER 
DT_GUI_COLOR_THUMBNAIL_SELECTED_BORDER 
DT_GUI_COLOR_FILMSTRIP_BG 
DT_GUI_COLOR_PREVIEW_HOVER_BORDER 
DT_GUI_COLOR_LOG_BG 
DT_GUI_COLOR_LOG_FG 
DT_GUI_COLOR_MAP_COUNT_SAME_LOC 
DT_GUI_COLOR_MAP_COUNT_DIFF_LOC 
DT_GUI_COLOR_MAP_COUNT_BG 
DT_GUI_COLOR_MAP_LOC_SHAPE_HIGH 
DT_GUI_COLOR_MAP_LOC_SHAPE_LOW 
DT_GUI_COLOR_MAP_LOC_SHAPE_DEF 
DT_GUI_COLOR_WARNING 
DT_GUI_COLOR_LAST 

Definition at line 387 of file widget_settings.h.

Function Documentation

◆ dt_accels_display_mods()

◆ dt_get_system_gui_ppd()

double dt_get_system_gui_ppd ( GtkWidget * widget)

The device scale GTK reports for the monitor widget is on, i.e. how many device pixels it puts in a logical one. Probed from the toolkit, not from our own settings.

Definition at line 628 of file widget_settings.c.

References dt_osx_get_ppd(), dt_widget_log, and res.

Referenced by dt_configure_ppd_dpi().

◆ dt_gui_freeze_begin_()

void dt_gui_freeze_begin_ ( const char * file,
int line )

Definition at line 202 of file widget_settings.c.

References _widget_suppress_depth, dt_widget_on_gui_thread(), MAX, and void().

◆ dt_gui_freeze_end_()

void dt_gui_freeze_end_ ( const char * file,
int line )

Definition at line 215 of file widget_settings.c.

References _widget_suppress_depth, and dt_widget_on_gui_thread().

Referenced by dt_gui_freeze_release_().

◆ dt_gui_freeze_release_()

void dt_gui_freeze_release_ ( dt_gui_freeze_token_t * t)
inlinestatic

Definition at line 106 of file widget_settings.h.

References dt_gui_freeze_end_(), and t.

◆ dt_gui_freeze_reset()

void dt_gui_freeze_reset ( void )

Definition at line 232 of file widget_settings.c.

References _widget_suppress_depth.

Referenced by dt_gui_gtk_init().

◆ dt_gui_get_scroll_delta()

gboolean dt_gui_get_scroll_delta ( const GdkEventScroll * event,
gdouble * delta )

Definition at line 581 of file widget_settings.c.

References delta, dt_gui_get_scroll_deltas(), FALSE, and TRUE.

Referenced by _area_scrolled_callback(), _scrolled(), and _scrolled().

◆ dt_gui_get_scroll_deltas()

gboolean dt_gui_get_scroll_deltas ( const GdkEventScroll * event,
gdouble * delta_x,
gdouble * delta_y )

Definition at line 520 of file widget_settings.c.

References _reverse_x, _reverse_y, FALSE, and TRUE.

Referenced by dt_gui_get_scroll_delta().

◆ dt_gui_get_scroll_unit_delta()

gboolean dt_gui_get_scroll_unit_delta ( const GdkEventScroll * event,
int * delta )

◆ dt_gui_get_scroll_unit_deltas()

◆ dt_gui_widgets_choice_announced()

gboolean dt_gui_widgets_choice_announced ( void )

Definition at line 249 of file widget_settings.c.

References _widget_choice_depth.

Referenced by _request_is_switch().

◆ dt_gui_widgets_choice_begin()

void dt_gui_widgets_choice_begin ( void )

Definition at line 237 of file widget_settings.c.

References _widget_choice_depth, and dt_widget_on_gui_thread().

Referenced by _commit_combobox_value().

◆ dt_gui_widgets_choice_end()

void dt_gui_widgets_choice_end ( void )

Definition at line 243 of file widget_settings.c.

References _widget_choice_depth, and dt_widget_on_gui_thread().

Referenced by _commit_combobox_value().

◆ dt_gui_widgets_suppressed()

gboolean dt_gui_widgets_suppressed ( void )

Definition at line 197 of file widget_settings.c.

References _widget_suppress_depth.

Referenced by _add_shape_callback(), _alignment_callback(), _attached_view_combo_changed(), _auto_levels_callback(), _auto_levels_callback(), _blendop_blend_mode_callback(), _blendop_blendif_boost_factor_callback(), _blendop_blendif_channel_display_toggled(), _blendop_blendif_details_callback(), _blendop_blendif_enter(), _blendop_blendif_invert(), _blendop_blendif_key_press(), _blendop_blendif_leave(), _blendop_blendif_log_scale_toggled(), _blendop_blendif_polarity_callback(), _blendop_blendif_showmask_clicked(), _blendop_blendif_sliders_callback(), _blendop_blendif_sliders_reset_callback(), _blendop_blendif_tab_switch(), _blendop_compositing_changed(), _blendop_masks_all_selection_changed(), _blendop_masks_all_toggled(), _blendop_masks_group_selection_changed(), _blendop_masks_invert_toggled(), _blendop_masks_mode_changed(), _blendop_masks_polarity_callback(), _blendop_masks_show_and_edit(), _channel_tabs_switch_callback(), _channel_tabs_switch_callback(), _channelmixerrgb_mixer_mode_callback(), _channelmixerrgb_primaries_slider_callback(), _channelmixerrgb_simple_slider_callback(), _channelmixerrgb_white_preserving_slider_callback(), _color_picker_callback_button_press(), _commit_combobox_value(), _commit_slider_value(), _confidence_changed(), _custom_model_callback(), _dimensions_type_changed(), _display_mask_callback(), _display_mask_indicator_callback(), _draw(), _dttags_check_toggled(), _edit_by_area_callback(), _edit_masks(), _enter_key_pressed(), _enter_leave(), _event_aspect_presets_changed(), _event_draw(), _event_fit_both_button_clicked(), _event_fit_h_button_clicked(), _event_fit_v_button_clicked(), _event_process_after_preview_callback(), _event_process_after_ui_callback(), _event_structure_auto_clicked(), _event_structure_lines_clicked(), _event_structure_quad_clicked(), _folder_levels_changed(), _general_callback(), _grid_size_changed(), _gui_off_callback(), _height_changed(), _height_changed(), _interpolator_callback(), _iop_toggle_callback(), _layer_selected(), _lens_axis_source_changed(), _lib_history_view_selection_changed(), _masks_shape_button_pressed(), _mixer_mode_callback(), _no_uncategorized_toggled(), _op_changed(), _preview_bg_toggled(), _primaries_slider_callback(), _print_dpi_changed(), _print_height_changed(), _print_width_changed(), _raster_polarity_callback(), _raw_toggled(), _recent_tags_changed(), _recursive_toggled(), _ring_tabs_switch_callback(), _run_pending_preview_job(), _select_region_toggled_callback(), _select_region_toggled_callback(), _simple_slider_callback(), _sort_by_changed(), _sort_combo_changed(), _sort_dir_toggled(), _spot_settings_changed_callback(), _spot_settings_changed_callback(), _tab_switch_callback(), _toggle_suggestion_button_callback(), _toggle_tree_button_callback(), _unit_changed(), _visualize_callback(), _visualize_callback(), _white_preserving_slider_callback(), _widget_changed(), _width_changed(), _width_changed(), _x_changed(), _y_changed(), acquire_source_button_pressed(), acquire_target_button_pressed(), alignment_callback(), 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_autogrey(), 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_release(), area_enter_notify(), area_enter_notify(), area_leave_notify(), area_leave_notify(), area_motion_notify(), area_motion_notify(), aspect_presets_changed(), balance_callback(), black_point_source_callback(), black_point_target_callback(), blue_callback(), btn_toggled(), camera_menu_select(), center_callback(), checker_changed_callback(), checker_color_changed_callback(), color_picker_apply(), colorpick_callback(), colorpick_color_set(), colorpick_color_set(), colorpicker_callback(), combo_changed(), commit_box(), commit_profile_callback(), contrast_callback(), controls_callback(), cropmode_callback(), denoiseprofile_draw_variance(), denoiseprofile_tab_switch(), Dmin_picker_callback(), dt_dev_pixelpipe_reset_all(), dt_drawlayer_conf_sync_params_from_gui(), dt_iop_color_picker_gesture_begin(), dt_iop_color_picker_gesture_has_target(), dt_iop_gui_blending_lose_focus(), dt_iop_levels_autoadjust_callback(), dt_iop_monochrome_draw(), dt_iop_request_focus(), dtgtk_gradient_slider_multivalue_set_value(), dtgtk_gradient_slider_multivalue_set_values(), extra_callback(), filepath_callback(), fontsel_callback(), frame_colorpick_color_set(), global_saturation_callback(), green_callback(), grey_point_source_callback(), grey_point_target_callback(), hvflip_callback(), illum_xy_callback(), interpolator_callback(), interpolator_callback(), interpolator_callback(), latitude_stops_callback(), lens_menu_select(), logbase_callback(), mask_callback(), mix_callback(), notebook_button_press(), optimize_changed_callback(), output_callback(), output_power_callback(), preserve_color_callback(), preset_tune_callback(), process(), process(), process_cl(), process_internal(), profile_changed(), rawdenoise_tab_switch(), red_callback(), rt_auto_levels_callback(), rt_colorpick_color_set_callback(), rt_copypaste_scale_callback(), rt_curr_scale_update(), rt_display_wavelet_scale_callback(), rt_edit_masks_callback(), rt_gslider_changed(), rt_mask_opacity_callback(), rt_merge_from_scale_update(), rt_num_scales_update(), rt_select_algorithm_callback(), rt_showmask_callback(), rt_suppress_callback(), rt_wdbar_button_press(), rt_wdbar_scrolled(), run_profile_callback(), run_validation_callback(), safety_changed_callback(), saturation_callback(), scrolled(), security_threshold_callback(), show_luminance_mask_callback(), show_mask_callback(), smoothing_callback(), start_profiling_callback(), tab_switch(), tab_switch(), tab_switch_callback(), temp_tint_callback(), text_callback(), toe_shoulder_callback(), watermark_callback(), Wb_high_norm_callback(), WB_high_picker_callback(), Wb_low_norm_callback(), WB_low_picker_callback(), white_point_source_callback(), white_point_target_callback(), and workicc_changed().

◆ dt_key_modifier_state()

GdkModifierType dt_key_modifier_state ( void )

Modifier keys currently held, independent of any key event.

Todo
double check correct way of doing this (merge conflict with Input System NG 20210319) GdkKeymap *keymap = gdk_keymap_get_for_display(gdk_display_get_default()); return gdk_keymap_get_modifier_state(keymap) & gdk_keymap_get_modifier_mask(keymap, GDK_MODIFIER_INTENT_DEFAULT_MOD_MASK);

Definition at line 645 of file widget_settings.c.

References dt_widget_root_window(), state, and window.

Referenced by _darkroom_set_default_cursor(), color_picker_apply(), mouse_moved(), and mouse_moved().

◆ dt_modifier_is()

gboolean dt_modifier_is ( GdkModifierType state,
const GdkModifierType desired_modifier_mask )
inlinestatic

Definition at line 341 of file widget_settings.h.

References dt_modifier_primary_mask(), and state.

Referenced by _apply_gui_button_pressed_state(), _area_button_press_callback(), _area_button_press_callback(), _area_button_press_callback(), _blendop_blendif_enter(), _blendop_blendif_showmask_clicked(), _blendop_masks_show_and_edit(), _brush_events_button_pressed(), _brush_events_button_released(), _circle_events_button_pressed(), _click_on_view(), _click_on_view_dictionary(), _darkroom_set_default_cursor(), _datetime_scroll_over(), _decorate_hierarchy(), _dictionary_key_pressed(), _ellipse_events_button_pressed(), _event_image_motion(), _event_main_release(), _gradient_events_button_pressed(), _grid_handle_key(), _gui_reset_callback(), _iop_plugin_header_button_press(), _iop_plugin_header_button_release(), _key_pressed(), _lib_history_view_button_press_callback(), _lib_plugin_header_button_press(), _mouse_scroll(), _picking_modifier_is_down(), _polygon_events_button_pressed(), _rating_clicked(), _slider_add_step(), _thumbtable_scroll(), _tree_apply_click_selection(), _tree_button_pressed(), _view_map_button_press_callback(), _view_map_scroll_event(), button_pressed(), button_pressed(), button_pressed(), button_pressed(), button_released(), button_released(), checker_button_press(), color_picker_apply(), dt_iop_basecurve_button_press(), dt_iop_tonecurve_button_press(), dt_masks_scroll_get_interaction(), dt_masks_set_source_pos_initial_state(), dt_thumbtable_key_pressed_grid(), key_pressed(), mouse_moved(), rt_edit_masks_callback(), rt_select_algorithm_callback(), scrolled(), scrolled(), and scrolled().

◆ dt_modifier_primary_mask()

GdkModifierType dt_modifier_primary_mask ( GdkModifierType desired_modifier_mask)
inlinestatic

Definition at line 312 of file widget_settings.h.

Referenced by dt_modifier_is(), and dt_modifiers_include().

◆ dt_modifiers_include()

gboolean dt_modifiers_include ( GdkModifierType state,
const GdkModifierType desired_modifier_mask )
inlinestatic

◆ dt_widget_colorlabel()

const GdkRGBA * dt_widget_colorlabel ( int index)

◆ dt_widget_colors()

GdkRGBA * dt_widget_colors ( void )

The palette itself, writable so the theme loader can fill it in place. Zeroed until then.

Definition at line 471 of file widget_settings.c.

References _colors.

Referenced by _studio_import_update_state(), dt_gui_load_theme(), and dt_masks_debug_write_png().

◆ dt_widget_debug_overlays()

gboolean dt_widget_debug_overlays ( void )

Whether to draw diagnostic overlays (hit-test radii and the like) on top of normal rendering. A debugging aid the host switches on; off by default.

Definition at line 362 of file widget_settings.c.

References _debug_overlays.

Referenced by dt_draw_node().

◆ dt_widget_dpi()

double dt_widget_dpi ( void )

Screen resolution in dots per inch; 96.0 (the X/GDK default) until resolved.

Definition at line 102 of file widget_settings.c.

References _dpi.

Referenced by dt_screen_dpi().

◆ dt_widget_dpi_factor()

double dt_widget_dpi_factor ( void )

Definition at line 152 of file widget_settings.c.

References _dpi_factor.

Referenced by dt_screen_dpi_factor().

◆ dt_widget_em_size()

double dt_widget_em_size ( void )

Resolved root font size in px; 16.0 until the application resolves it.

Definition at line 158 of file widget_settings.c.

References _em.

Referenced by dt_screen_em_size().

◆ dt_widget_image_filter()

cairo_filter_t dt_widget_image_filter ( void )

Cairo filter used when scaling images outside the darkroom. Set once at GUI init.

Definition at line 64 of file widget_settings.c.

References _image_filter.

Referenced by dt_focuspeaking(), and expose().

◆ dt_widget_message()

void dt_widget_message ( const char * message)

Definition at line 137 of file widget_settings.c.

References _message_handler, and _message_handler.

Referenced by _action_request_focus().

◆ dt_widget_metrics_probed()

gboolean dt_widget_metrics_probed ( void )

TRUE once something has actually interrogated a display. The getters are always safe to call, but answer with neutral defaults until then – use this only where reporting an invented 96dpi would be worse than reporting nothing (a crash report, a telemetry payload), never as an "is there a GUI?" test for scaling.

Definition at line 105 of file widget_settings.c.

References _metrics_probed.

Referenced by dt_screen_metrics_probed().

◆ dt_widget_min_panel_width()

gint dt_widget_min_panel_width ( void )

Minimum width a side panel may shrink to, in logical px. A user preference the application supplies; the panel widget reads it when its class is initialised. 350 until the application says otherwise.

Definition at line 412 of file widget_settings.c.

References _min_panel_width.

Referenced by dtgtk_side_panel_class_init().

◆ dt_widget_mouse_radius()

float dt_widget_mouse_radius ( void )

Definition at line 501 of file widget_settings.c.

References _mouse_radius.

Referenced by dt_dev_update_mouse_effect_radius().

◆ dt_widget_mouse_radius_clamped()

float dt_widget_mouse_radius_clamped ( void )

Definition at line 506 of file widget_settings.c.

References _mouse_radius_clamped.

◆ dt_widget_natural_width()

gint dt_widget_natural_width ( GtkWidget * widget)

Definition at line 127 of file widget_settings.c.

References _natural_width_handler.

Referenced by _get_preferred_width().

◆ dt_widget_notebook_page_changed()

void dt_widget_notebook_page_changed ( gpointer owner)

Definition at line 452 of file widget_settings.c.

References _notebook_page_handler.

Referenced by _notebook_switch_page_signal_relay().

◆ dt_widget_on_gui_thread()

gboolean dt_widget_on_gui_thread ( void )

Is the calling thread the one that owns widget state?

FALSE before dt_widget_set_gui_thread() has run, and in every headless process, which is the safe answer for both users: a caller that must reach GTK defers instead of calling it, and a caller that merely wants to skip work skips it.

GTK is not thread-safe and nothing in it says so at the call site, so anything reached from a job, a pipeline callback or an import worker has to ask before touching a widget.

Definition at line 173 of file widget_settings.c.

References _gui_thread, and _gui_thread_set.

Referenced by _gui_refresh_thumbnail(), dt_gui_freeze_begin_(), dt_gui_freeze_end_(), dt_gui_widgets_choice_begin(), and dt_gui_widgets_choice_end().

◆ dt_widget_overlay_color()

const dt_widget_overlay_color_t * dt_widget_overlay_color ( void )

◆ dt_widget_ppd()

double dt_widget_ppd ( void )

Definition at line 155 of file widget_settings.c.

References _ppd.

Referenced by _get_combobox_max_width(), _widget_draw(), dt_bauhaus_popup_draw(), and dt_screen_ppd().

◆ dt_widget_refocus()

void dt_widget_refocus ( void )

Definition at line 442 of file widget_settings.c.

References _refocus_handler, and _refocus_handler.

Referenced by _text_entry_key_pressed().

◆ dt_widget_root_window()

◆ dt_widget_scroll_focus()

◆ dt_widget_scroll_mask()

G_BEGIN_DECLS GdkEventMask dt_widget_scroll_mask ( void )

Event mask widgets must add to receive scroll events. Set once at GUI init.

Definition at line 44 of file widget_settings.c.

References _scroll_mask.

Referenced by _bauhaus_widget_init(), _gradient_slider_init(), _gui_init_datetime(), _init_widgets(), dt_bauhaus_init(), dt_gui_gtk_init(), dt_ui_init_main_table(), gui_init(), gui_init(), and gui_init().

◆ dt_widget_set_colorlabels()

void dt_widget_set_colorlabels ( const GdkRGBA * labels,
int count )

Definition at line 188 of file widget_settings.c.

References _colorlabels, _colorlabels_count, and i.

Referenced by dt_bauhaus_load_theme().

◆ dt_widget_set_cursor()

void dt_widget_set_cursor ( GdkCursorType cursor)

Definition at line 147 of file widget_settings.c.

References _cursor_handler.

Referenced by _resize_handle_button(), and _resize_handle_cursor().

◆ dt_widget_set_cursor_handler()

void dt_widget_set_cursor_handler ( dt_widget_cursor_handler_t handler)

Definition at line 142 of file widget_settings.c.

References _cursor_handler.

Referenced by dt_gui_gtk_init().

◆ dt_widget_set_debug_overlays()

void dt_widget_set_debug_overlays ( gboolean enabled)

Definition at line 367 of file widget_settings.c.

References _debug_overlays, and enabled.

Referenced by dt_gui_gtk_init().

◆ dt_widget_set_dpi()

void dt_widget_set_dpi ( double dpi)

Definition at line 103 of file widget_settings.c.

References _dpi, _metrics_probed, and TRUE.

Referenced by dt_screen_set_dpi().

◆ dt_widget_set_dpi_factor()

void dt_widget_set_dpi_factor ( double factor)

Definition at line 153 of file widget_settings.c.

References _dpi_factor, _metrics_probed, factor, and TRUE.

Referenced by dt_configure_ppd_dpi(), and dt_screen_set_dpi_factor().

◆ dt_widget_set_em_size()

void dt_widget_set_em_size ( double em)

Definition at line 159 of file widget_settings.c.

References _em.

Referenced by dt_gui_update_em(), and dt_screen_set_em_size().

◆ dt_widget_set_gui_thread()

void dt_widget_set_gui_thread ( pthread_t thread)

Register the thread that owns widget state. Freeze/unfreeze is a deliberate no-op on any other thread – worker-thread reload_defaults has no widgets to suppress, and a concurrent non-atomic ++/– would drift the depth and break suppression for the GUI thread. Until this is called, freezing is inert.

Definition at line 161 of file widget_settings.c.

References _gui_thread, _gui_thread_set, and TRUE.

Referenced by dt_gui_gtk_init().

◆ dt_widget_set_image_filter()

void dt_widget_set_image_filter ( cairo_filter_t filter)

Definition at line 69 of file widget_settings.c.

References _image_filter.

Referenced by dt_configure_ppd_dpi().

◆ dt_widget_set_message_handler()

void dt_widget_set_message_handler ( dt_widget_message_handler_t handler)

Definition at line 132 of file widget_settings.c.

References _message_handler.

Referenced by dt_gui_gtk_init().

◆ dt_widget_set_min_panel_width()

void dt_widget_set_min_panel_width ( gint width)

Definition at line 417 of file widget_settings.c.

References _min_panel_width, and width.

Referenced by _ui_init_panel_left().

◆ dt_widget_set_mouse_radius()

void dt_widget_set_mouse_radius ( float radius,
float clamped )

◆ dt_widget_set_natural_width_handler()

void dt_widget_set_natural_width_handler ( dt_widget_natural_width_handler_t handler)

Definition at line 122 of file widget_settings.c.

References _natural_width_handler.

Referenced by dt_gui_gtk_init().

◆ dt_widget_set_notebook_page_handler()

void dt_widget_set_notebook_page_handler ( dt_widget_notebook_page_handler_t handler)

Definition at line 447 of file widget_settings.c.

References _notebook_page_handler.

Referenced by dt_gui_gtk_init().

◆ dt_widget_set_overlay_color()

void dt_widget_set_overlay_color ( double red,
double green,
double blue,
double contrast )

Definition at line 493 of file widget_settings.c.

References _overlay.

Referenced by dt_guides_set_overlay_colors().

◆ dt_widget_set_ppd()

void dt_widget_set_ppd ( double ppd)

Definition at line 156 of file widget_settings.c.

References _metrics_probed, _ppd, and TRUE.

Referenced by dt_configure_ppd_dpi(), and dt_screen_set_ppd().

◆ dt_widget_set_refocus_handler()

void dt_widget_set_refocus_handler ( dt_widget_refocus_handler_t handler)

Definition at line 437 of file widget_settings.c.

References _refocus_handler.

Referenced by dt_gui_gtk_init().

◆ dt_widget_set_root_window_handler()

void dt_widget_set_root_window_handler ( dt_widget_root_window_handler_t handler)

Definition at line 112 of file widget_settings.c.

References _root_window_handler.

Referenced by dt_gui_gtk_init().

◆ dt_widget_set_scroll_focus()

◆ dt_widget_set_scroll_mask()

void dt_widget_set_scroll_mask ( GdkEventMask mask)

Definition at line 49 of file widget_settings.c.

References _scroll_mask.

Referenced by dt_gui_gtk_init().

◆ dt_widget_set_scroll_reversed()

void dt_widget_set_scroll_reversed ( gboolean reverse_x,
gboolean reverse_y )

Whether each scroll axis is inverted. A user preference, supplied by the application – a widget does not read configuration.

Definition at line 167 of file widget_settings.c.

References _reverse_x, and _reverse_y.

Referenced by dt_gui_gtk_init().

◆ dt_widget_set_source_rgb()

void dt_widget_set_source_rgb ( cairo_t * cr,
dt_gui_color_t color )

Set a cairo source from the palette, opaque or scaled by the palette entry's own alpha.

Definition at line 476 of file widget_settings.c.

References _colors, and color.

Referenced by _draw_ellipse(), _draw_rectangle(), _view_map_images_count(), dt_control_draw_busy_msg(), dt_view_manager_expose(), and expose().

◆ dt_widget_set_source_rgba()

void dt_widget_set_source_rgba ( cairo_t * cr,
dt_gui_color_t color,
float opacity_coef )

Definition at line 482 of file widget_settings.c.

References _colors, and color.

Referenced by _brush_events_post_expose(), and dt_draw_get_pixbuf_from_cairo().

◆ dt_widget_set_storage_handlers()

◆ dt_widget_set_theme_loaded()

void dt_widget_set_theme_loaded ( gboolean loaded)

Definition at line 429 of file widget_settings.c.

References _theme_loaded.

Referenced by dt_gui_load_theme().

◆ dt_widget_store_bool()

void dt_widget_store_bool ( const char * key,
gboolean value )

Definition at line 405 of file widget_settings.c.

References _stored_bool_setter, key, and value.

Referenced by _coeffs_button_changed().

◆ dt_widget_store_int()

void dt_widget_store_int ( const char * key,
int value )

◆ dt_widget_stored_bool()

gboolean dt_widget_stored_bool ( const char * key)

Read a stored flag. FALSE when nothing is stored, which is the collapsed/default state.

Definition at line 399 of file widget_settings.c.

References _stored_bool_getter, FALSE, and key.

Referenced by dt_gui_new_collapsible_section().

◆ dt_widget_stored_int()

gboolean dt_widget_stored_int ( const char * key,
int * value )

Read a stored integer. Returns FALSE (leaving value untouched) if nothing is stored.

Definition at line 388 of file widget_settings.c.

References _stored_int_getter, FALSE, key, and value.

Referenced by _resizable_scroll_apply(), and dt_ui_resizable_drawing_area().

◆ dt_widget_theme_loaded()

gboolean dt_widget_theme_loaded ( void )

◆ G_GNUC_PRINTF()

void G_GNUC_PRINTF ( 1 ,
2  ) const
inlinestatic