![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
Include dependency graph for screen_metrics.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Functions | |
| G_BEGIN_DECLS double | dt_screen_dpi (void) |
| void | dt_screen_set_dpi (double dpi) |
| double | dt_screen_dpi_factor (void) |
| void | dt_screen_set_dpi_factor (double factor) |
| double | dt_screen_ppd (void) |
| void | dt_screen_set_ppd (double ppd) |
| gboolean | dt_screen_metrics_probed (void) |
| double | dt_screen_em_size (void) |
| void | dt_screen_set_em_size (double em) |
| static cairo_surface_t * | dt_cairo_image_surface_create (cairo_format_t format, int width, int height) |
| static cairo_surface_t * | dt_cairo_image_surface_create_for_data (unsigned char *data, cairo_format_t format, int width, int height, int stride) |
| static cairo_surface_t * | dt_cairo_image_surface_create_from_png (const char *filename) |
| static int | dt_cairo_image_surface_get_width (cairo_surface_t *surface) |
| static int | dt_cairo_image_surface_get_height (cairo_surface_t *surface) |
|
inlinestatic |
Definition at line 84 of file screen_metrics.h.
References dt_cairo_surface_create_at_scale(), dt_screen_ppd(), height, and width.
Referenced by _area_draw_callback(), _area_draw_callback(), _area_draw_callback(), _bottom_area_draw_callback(), _build_preview_fallback_surface(), _configure(), _darkroom_prepare_image_surface(), _draw_curve(), _init_drawing(), _lib_navigation_draw_callback(), _modulegroups_drag_begin(), _origin_color_draw(), _preview_draw(), _render_surface(), _target_color_draw(), _trigger_recompute(), area_draw(), checker_draw(), cluster_preview_draw(), denoiseprofile_draw(), dt_control_expose(), dt_gui_gtk_run(), dt_iop_basecurve_draw(), dt_iop_colorcorrection_draw(), 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(), illuminant_color_draw(), lowlight_draw(), origin_color_draw(), rawdenoise_draw(), rt_wdbar_draw(), and target_color_draw().
|
inlinestatic |
Definition at line 89 of file screen_metrics.h.
References dt_cairo_surface_create_for_data_at_scale(), dt_screen_ppd(), height, and width.
Referenced by _util_get_svg_img().
|
inlinestatic |
Definition at line 95 of file screen_metrics.h.
References dt_cairo_surface_create_from_png_at_scale(), and dt_screen_ppd().
|
inlinestatic |
Definition at line 105 of file screen_metrics.h.
References dt_cairo_surface_logical_height(), and dt_screen_ppd().
Referenced by _render_preview_surface(), and dt_control_expose().
|
inlinestatic |
Definition at line 100 of file screen_metrics.h.
References dt_cairo_surface_logical_width(), and dt_screen_ppd().
Referenced by _render_preview_surface(), and dt_control_expose().
| G_BEGIN_DECLS double dt_screen_dpi | ( | void | ) |
Screen resolution in dots per inch. Defaults to 96.0 (the X/GDK default).
Definition at line 31 of file screen_metrics.c.
References dt_widget_dpi().
dpi / 96, i.e. how much to scale UI lengths by. Defaults to 1.0.
Definition at line 34 of file screen_metrics.c.
References dt_widget_dpi_factor().
Height of the theme font's "em", in pixels. Defaults to 16.0.
Definition at line 42 of file screen_metrics.c.
References dt_widget_em_size().
| gboolean dt_screen_metrics_probed | ( | void | ) |
TRUE once something has actually interrogated a display and pushed real values.
The getters above are always safe to call, but they answer with neutral defaults until this returns TRUE. Use it where reporting an invented 96dpi/1.0 would be worse than reporting nothing – a crash report or a telemetry payload – and NOT as a "is there a GUI?" test for scaling, where the neutral defaults are exactly the right answer.
Definition at line 40 of file screen_metrics.c.
References dt_widget_metrics_probed().
Device pixels per logical pixel (HiDPI/Retina scaling). Defaults to 1.0.
Definition at line 37 of file screen_metrics.c.
References dt_widget_ppd().
Referenced by _util_get_svg_img(), dt_cairo_image_surface_create(), dt_cairo_image_surface_create_for_data(), dt_cairo_image_surface_create_from_png(), dt_cairo_image_surface_get_height(), dt_cairo_image_surface_get_width(), and dt_dev_update_mouse_effect_radius().
Definition at line 32 of file screen_metrics.c.
References dt_widget_set_dpi().
Referenced by dt_configure_ppd_dpi().
Definition at line 35 of file screen_metrics.c.
References dt_widget_set_dpi_factor(), and factor.
Definition at line 43 of file screen_metrics.c.
References dt_widget_set_em_size().
Definition at line 38 of file screen_metrics.c.
References dt_widget_set_ppd().