![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "widgets/widget_style.h"#include "widgets/widget_settings.h"#include "system/macros.h"#include <pango/pangocairo.h>#include <glib.h>#include <string.h>
Include dependency graph for widget_style.c:Go to the source code of this file.
Functions | |
| void | dt_gui_add_class (GtkWidget *widget, const gchar *class_name) |
| void | dt_gui_remove_class (GtkWidget *widget, const gchar *class_name) |
| void | dt_capitalize_label (gchar *text) |
| void | dt_gui_cairo_set_font_options (cairo_t *cr, GtkWidget *widget) |
| void dt_capitalize_label | ( | gchar * | text | ) |
Capitalise the first character of a label in place, honouring a leading mnemonic underscore and multi-byte UTF-8. Pure string work; no application involved.
Definition at line 52 of file widget_style.c.
Referenced by _for_each_accel_create_treeview_row(), _hm_clean_module_name(), _iop_panel_label(), _ioporder_create_endpoint_node(), _ioporder_create_graph_node(), dt_action_button_new(), dt_bauhaus_widget_set_label(), dt_history_item_get_name(), dt_iop_gui_init(), dt_lib_gui_get_expander(), dt_lib_init_module(), dt_lib_unload_module(), dt_ui_label_new(), dt_ui_notebook_page(), dt_ui_section_label_new(), and init_collection_line().
Add class_name to widget's style context if absent, and queue a redraw.
Definition at line 32 of file widget_style.c.
References L.
Referenced by _add_sample(), _add_tag_button_clicked(), _added_gui_thread(), _ask_and_delete(), _attach_grid_separator(), _bauhaus_widget_init(), _blendif_options_callback(), _collapsible_set_states(), _darkroom_autoset_button_set_running(), _darkroom_autoset_popover_rebuild(), _ensure_page_widgets(), _gui_presets_popup_menu_show_internal(), _gui_set_single_expanded(), _gui_styles_dialog_run(), _hm_show_merge_report_popup(), _import_discarded_files_popup(), _init_widgets(), _insert_subsection_sep(), _iop_dim_all_but(), _iop_tooltip_callback(), _ioporder_create_endpoint_node(), _ioporder_create_graph_node(), _menuitem_preferences(), _modulegroups_drag_begin(), _modulegroups_drag_motion(), _mouse_over_image_callback(), _set_widget_dimmed(), _thumb_update_rating_class(), add_generic_top_menu_entry(), attach_popover(), dt_accels_search(), dt_accels_window(), dt_bauhaus_combobox_from_widget(), dt_bauhaus_slider_from_widget(), dt_control_crawler_show_image_list(), dt_gui_gtk_quit(), dt_gui_hist_dialog_new(), dt_gui_new_collapsible_section(), dt_guides_popover(), dt_iop_gui_init_blendif(), dt_iop_gui_init_masks(), dt_iop_gui_init_raster(), dt_iop_gui_set_enable_button(), dt_iop_gui_set_expander(), dt_iop_request_focus(), dt_lib_export_metadata_configuration_dialog(), dt_lib_gui_get_expander(), dt_lib_gui_set_expanded(), dt_lib_presets_popup_menu_show(), dt_thumbnail_create_widget(), dt_thumbnail_set_group_border(), dt_thumbtable_new(), dt_thumbtable_set_overlays_mode(), dt_ui_init_global_menu(), dt_ui_scroll_wrap(), dt_ui_section_label_set(), dtgtk_button_new(), dtgtk_gradient_slider_multivalue_new(), dtgtk_gradient_slider_multivalue_new_with_color(), dtgtk_gradient_slider_new(), dtgtk_gradient_slider_new_with_color(), dtgtk_thumbnail_btn_new(), dtgtk_togglebutton_new(), gui_init(), gui_init(), gui_init(), gui_init(), init_tab_general(), init_tab_presets(), and update_entry().
Copy GTK's resolved text-rendering options (anti-aliasing, hinting, subpixel order) onto cr, sourced from widget's Pango context, else the host root window, else the screen – so cairo-drawn text matches native widgets instead of reverting to cairo's defaults.
Definition at line 81 of file widget_style.c.
References dt_widget_root_window(), IS_NULL_PTR, and L.
Referenced by dt_bauhaus_load_theme(), and show_pango_text().
Remove class_name from widget's style context if present, and queue a redraw.
Definition at line 42 of file widget_style.c.
References L.
Referenced by _collapsible_set_states(), _darkroom_autoset_button_set_running(), _event_dnd_end(), _gui_set_single_expanded(), _iop_dim_all_but(), _modulegroups_clear_drop_state(), _modulegroups_drag_begin(), _mouse_over_image_callback(), _set_widget_dimmed(), _thumb_update_rating_class(), dt_iop_gui_set_enable_button(), dt_iop_request_focus(), dt_lib_gui_set_expanded(), dt_thumbnail_set_group_border(), dt_thumbtable_set_overlays_mode(), and update_entry().