/dports/graphics/darktable/darktable-3.6.1/src/libs/tools/ |
H A D | darktable.c | 106 d->image = dt_util_get_logo(DT_PIXEL_APPLY_DPI(-1.0)); in gui_init() 134 const int width = DT_PIXEL_APPLY_DPI(png_width) * darktable.gui->ppd, in gui_init() 135 height = DT_PIXEL_APPLY_DPI(png_height) * darktable.gui->ppd; in gui_init() 168 d->text = dt_util_get_logo_text(DT_PIXEL_APPLY_DPI(-1.0)); in gui_init() 219 cairo_set_source_surface(cr, d->image, 0, (int)DT_PIXEL_APPLY_DPI(7)); in _lib_darktable_draw_callback() 220 cairo_rectangle(cr, 0, 0, d->image_width + (int)DT_PIXEL_APPLY_DPI(8), in _lib_darktable_draw_callback() 221 d->image_height + (int)DT_PIXEL_APPLY_DPI(8)); in _lib_darktable_draw_callback() 233 (int)DT_PIXEL_APPLY_DPI(12)); in _lib_darktable_draw_callback() 235 d->text_height + (int)DT_PIXEL_APPLY_DPI(13)); in _lib_darktable_draw_callback() 248 cairo_move_to(cr, d->image_width + DT_PIXEL_APPLY_DPI(3.0), DT_PIXEL_APPLY_DPI(5.0)); in _lib_darktable_draw_callback() [all …]
|
/dports/graphics/darktable38/darktable-3.8.0/src/libs/tools/ |
H A D | darktable.c | 106 d->image = dt_util_get_logo(DT_PIXEL_APPLY_DPI(-1.0)); in gui_init() 134 const int width = DT_PIXEL_APPLY_DPI(png_width) * darktable.gui->ppd, in gui_init() 135 height = DT_PIXEL_APPLY_DPI(png_height) * darktable.gui->ppd; in gui_init() 168 d->text = dt_util_get_logo_text(DT_PIXEL_APPLY_DPI(-1.0)); in gui_init() 219 cairo_set_source_surface(cr, d->image, 0, (int)DT_PIXEL_APPLY_DPI(7)); in _lib_darktable_draw_callback() 220 cairo_rectangle(cr, 0, 0, d->image_width + (int)DT_PIXEL_APPLY_DPI(8), in _lib_darktable_draw_callback() 221 d->image_height + (int)DT_PIXEL_APPLY_DPI(8)); in _lib_darktable_draw_callback() 233 (int)DT_PIXEL_APPLY_DPI(12)); in _lib_darktable_draw_callback() 235 d->text_height + (int)DT_PIXEL_APPLY_DPI(13)); in _lib_darktable_draw_callback() 248 cairo_move_to(cr, d->image_width + DT_PIXEL_APPLY_DPI(3.0), DT_PIXEL_APPLY_DPI(5.0)); in _lib_darktable_draw_callback() [all …]
|
/dports/graphics/darktable/darktable-3.6.1/src/iop/ |
H A D | colorcorrection.c | 41 #define DT_COLORCORRECTION_INSET DT_PIXEL_APPLY_DPI(5) 336 width / (float)cells - DT_PIXEL_APPLY_DPI(1), in dt_iop_colorcorrection_draw() 337 height / (float)cells - DT_PIXEL_APPLY_DPI(1)); in dt_iop_colorcorrection_draw() 346 cairo_set_line_width(cr, DT_PIXEL_APPLY_DPI(2.)); in dt_iop_colorcorrection_draw() 354 cairo_arc(cr, loa, lob, DT_PIXEL_APPLY_DPI(5), 0, 2. * M_PI); in dt_iop_colorcorrection_draw() 356 cairo_arc(cr, loa, lob, DT_PIXEL_APPLY_DPI(3), 0, 2. * M_PI); in dt_iop_colorcorrection_draw() 361 cairo_arc(cr, hia, hib, DT_PIXEL_APPLY_DPI(5), 0, 2. * M_PI); in dt_iop_colorcorrection_draw() 363 cairo_arc(cr, hia, hib, DT_PIXEL_APPLY_DPI(3), 0, 2. * M_PI); in dt_iop_colorcorrection_draw() 405 const float thrs = DT_PIXEL_APPLY_DPI(5.0f); in dt_iop_colorcorrection_motion_notify()
|
H A D | zonesystem.c | 556 gtk_widget_set_size_request(g->zones, -1, DT_PIXEL_APPLY_DPI(40)); in gui_init() 585 #define DT_ZONESYSTEM_INSET DT_PIXEL_APPLY_DPI(5) 645 cairo_set_line_width(cr, DT_PIXEL_APPLY_DPI(1.)); in dt_iop_zonesystem_bar_draw() 646 const float arrw = DT_PIXEL_APPLY_DPI(7.0f); in dt_iop_zonesystem_bar_draw() 818 const int inset = DT_PIXEL_APPLY_DPI(2); in dt_iop_zonesystem_preview_draw() 864 cairo_rectangle(cr, DT_PIXEL_APPLY_DPI(1), DT_PIXEL_APPLY_DPI(1), wd - DT_PIXEL_APPLY_DPI(2), in dt_iop_zonesystem_preview_draw() 865 ht - DT_PIXEL_APPLY_DPI(2)); in dt_iop_zonesystem_preview_draw() 871 cairo_set_line_width(cr, DT_PIXEL_APPLY_DPI(1.0)); in dt_iop_zonesystem_preview_draw()
|
H A D | clipping.c | 2445 cr, ink.width + DT_PIXEL_APPLY_DPI(4) * scale, ink.height + DT_PIXEL_APPLY_DPI(8) * scale, in gui_draw_sym() 2446 …x - ink.width / 2.0f - DT_PIXEL_APPLY_DPI(2) * scale, y - ink.height / 2.0f - DT_PIXEL_APPLY_DPI(4… in gui_draw_sym() 2484 double dashes = DT_PIXEL_APPLY_DPI(5.0) / zoom_scale; in gui_post_expose() 2528 const float text_h = DT_PIXEL_APPLY_DPI(16+2) / zoom_scale; in gui_post_expose() 2529 const float margin = DT_PIXEL_APPLY_DPI(6) / zoom_scale; in gui_post_expose() 2560 cairo_set_line_width(cr, DT_PIXEL_APPLY_DPI(1.0) / zoom_scale); in gui_post_expose() 2584 cairo_set_line_width(cr, DT_PIXEL_APPLY_DPI(2.0) / zoom_scale); in gui_post_expose() 2586 const int border = DT_PIXEL_APPLY_DPI(30.0) / zoom_scale; in gui_post_expose() 2623 const float text_h = DT_PIXEL_APPLY_DPI(16+2) / zoom_scale; in gui_post_expose() 2624 const float margin = DT_PIXEL_APPLY_DPI(6) / zoom_scale; in gui_post_expose() [all …]
|
H A D | colorchecker.c | 1107 width / (float)cells_x - DT_PIXEL_APPLY_DPI(1), in checker_draw() 1108 height / (float)cells_y - DT_PIXEL_APPLY_DPI(1)); in checker_draw() 1114 cairo_set_line_width(cr, DT_PIXEL_APPLY_DPI(2.)); in checker_draw() 1119 width / (float)cells_x - DT_PIXEL_APPLY_DPI(3), in checker_draw() 1120 height / (float)cells_y - DT_PIXEL_APPLY_DPI(3)); in checker_draw() 1122 cairo_set_line_width(cr, DT_PIXEL_APPLY_DPI(1.)); in checker_draw() 1127 width / (float)cells_x - DT_PIXEL_APPLY_DPI(5), in checker_draw() 1128 height / (float)cells_y - DT_PIXEL_APPLY_DPI(5)); in checker_draw() 1155 cairo_set_line_width(cr, DT_PIXEL_APPLY_DPI(2.)); in checker_draw() 1160 width / (float)cells_x - DT_PIXEL_APPLY_DPI(11), in checker_draw() [all …]
|
H A D | lowlight.c | 43 #define DT_IOP_LOWLIGHT_INSET DT_PIXEL_APPLY_DPI(5) 513 cairo_set_line_width(cr, DT_PIXEL_APPLY_DPI(1.0)); in lowlight_draw() 523 cairo_set_line_width(cr, DT_PIXEL_APPLY_DPI(.4)); in lowlight_draw() 557 cairo_set_line_width(cr, DT_PIXEL_APPLY_DPI(1.)); in lowlight_draw() 558 const float arrw = DT_PIXEL_APPLY_DPI(7.0f); in lowlight_draw() 561 cairo_move_to(cr, width * p.transition_x[k], height + inset - DT_PIXEL_APPLY_DPI(1)); in lowlight_draw() 577 cairo_set_line_width(cr, DT_PIXEL_APPLY_DPI(2.)); in lowlight_draw() 595 cairo_set_line_width(cr, DT_PIXEL_APPLY_DPI(1.)); in lowlight_draw() 598 …cairo_arc(cr, width * p.transition_x[k], -height * p.transition_y[k], DT_PIXEL_APPLY_DPI(3.0), 0.0, in lowlight_draw()
|
H A D | toneequal.c | 2492 cairo_set_line_width(g->cr, DT_PIXEL_APPLY_DPI(0.5)); in _init_drawing() 2558 cairo_set_line_width(g->cr, DT_PIXEL_APPLY_DPI(0.5)); in area_draw() 2564 cairo_set_line_width(g->cr, DT_PIXEL_APPLY_DPI(0.5)); in area_draw() 2570 cairo_set_line_width(g->cr, DT_PIXEL_APPLY_DPI(1)); in area_draw() 2579 cairo_set_line_width(g->cr, DT_PIXEL_APPLY_DPI(4.0)); in area_draw() 2620 cairo_set_line_width(g->cr, DT_PIXEL_APPLY_DPI(3)); in area_draw() 2651 cairo_set_line_width(g->cr, DT_PIXEL_APPLY_DPI(6)); in area_draw() 2658 cairo_set_line_width(g->cr, DT_PIXEL_APPLY_DPI(3)); in area_draw() 2749 cairo_set_line_width(cr, DT_PIXEL_APPLY_DPI(3)); in dt_iop_toneequalizer_bar_draw() 2757 cairo_set_line_width(cr, DT_PIXEL_APPLY_DPI(6)); in dt_iop_toneequalizer_bar_draw() [all …]
|
H A D | levels.c | 44 #define DT_GUI_CURVE_EDITOR_INSET DT_PIXEL_APPLY_DPI(5) 732 cairo_set_line_width(cr, DT_PIXEL_APPLY_DPI(1.0)); in dt_iop_levels_area_draw() 742 cairo_set_line_width(cr, DT_PIXEL_APPLY_DPI(.4)); in dt_iop_levels_area_draw() 747 cairo_set_line_width(cr, DT_PIXEL_APPLY_DPI(2.)); in dt_iop_levels_area_draw() 762 cairo_set_line_width(cr, DT_PIXEL_APPLY_DPI(1.)); in dt_iop_levels_area_draw() 763 const float arrw = DT_PIXEL_APPLY_DPI(7.0f); in dt_iop_levels_area_draw() 804 cairo_scale(cr, width / 255.0, -(height - DT_PIXEL_APPLY_DPI(5)) / hist_max); in dt_iop_levels_area_draw()
|
/dports/graphics/darktable38/darktable-3.8.0/src/iop/ |
H A D | colorcorrection.c | 41 #define DT_COLORCORRECTION_INSET DT_PIXEL_APPLY_DPI(5) 338 width / (float)cells - DT_PIXEL_APPLY_DPI(1), in dt_iop_colorcorrection_draw() 339 height / (float)cells - DT_PIXEL_APPLY_DPI(1)); in dt_iop_colorcorrection_draw() 348 cairo_set_line_width(cr, DT_PIXEL_APPLY_DPI(2.)); in dt_iop_colorcorrection_draw() 356 cairo_arc(cr, loa, lob, DT_PIXEL_APPLY_DPI(5), 0, 2. * M_PI); in dt_iop_colorcorrection_draw() 358 cairo_arc(cr, loa, lob, DT_PIXEL_APPLY_DPI(3), 0, 2. * M_PI); in dt_iop_colorcorrection_draw() 363 cairo_arc(cr, hia, hib, DT_PIXEL_APPLY_DPI(5), 0, 2. * M_PI); in dt_iop_colorcorrection_draw() 365 cairo_arc(cr, hia, hib, DT_PIXEL_APPLY_DPI(3), 0, 2. * M_PI); in dt_iop_colorcorrection_draw() 407 const float thrs = DT_PIXEL_APPLY_DPI(5.0f); in dt_iop_colorcorrection_motion_notify()
|
H A D | clipping.c | 2353 cr, ink.width + DT_PIXEL_APPLY_DPI(4) * scale, ink.height + DT_PIXEL_APPLY_DPI(8) * scale, in gui_draw_sym() 2354 …x - ink.width / 2.0f - DT_PIXEL_APPLY_DPI(2) * scale, y - ink.height / 2.0f - DT_PIXEL_APPLY_DPI(4… in gui_draw_sym() 2392 double dashes = DT_PIXEL_APPLY_DPI(5.0) / zoom_scale; in gui_post_expose() 2436 const float text_h = DT_PIXEL_APPLY_DPI(16+2) / zoom_scale; in gui_post_expose() 2437 const float margin = DT_PIXEL_APPLY_DPI(6) / zoom_scale; in gui_post_expose() 2460 cairo_set_line_width(cr, DT_PIXEL_APPLY_DPI(2.0) / zoom_scale); in gui_post_expose() 2462 const int border = DT_PIXEL_APPLY_DPI(30.0) / zoom_scale; in gui_post_expose() 2499 const float text_h = DT_PIXEL_APPLY_DPI(16+2) / zoom_scale; in gui_post_expose() 2500 const float margin = DT_PIXEL_APPLY_DPI(6) / zoom_scale; in gui_post_expose() 2714 cairo_set_font_size(cr, DT_PIXEL_APPLY_DPI(16)); in gui_post_expose() [all …]
|
H A D | zonesystem.c | 514 gtk_widget_set_size_request(g->zones, -1, DT_PIXEL_APPLY_DPI(40)); in gui_init() 543 #define DT_ZONESYSTEM_INSET DT_PIXEL_APPLY_DPI(5) 603 cairo_set_line_width(cr, DT_PIXEL_APPLY_DPI(1.)); in dt_iop_zonesystem_bar_draw() 604 const float arrw = DT_PIXEL_APPLY_DPI(7.0f); in dt_iop_zonesystem_bar_draw() 776 const int inset = DT_PIXEL_APPLY_DPI(2); in dt_iop_zonesystem_preview_draw() 822 cairo_rectangle(cr, DT_PIXEL_APPLY_DPI(1), DT_PIXEL_APPLY_DPI(1), wd - DT_PIXEL_APPLY_DPI(2), in dt_iop_zonesystem_preview_draw() 823 ht - DT_PIXEL_APPLY_DPI(2)); in dt_iop_zonesystem_preview_draw() 829 cairo_set_line_width(cr, DT_PIXEL_APPLY_DPI(1.0)); in dt_iop_zonesystem_preview_draw()
|
H A D | colorchecker.c | 1137 width / (float)cells_x - DT_PIXEL_APPLY_DPI(1), in checker_draw() 1138 height / (float)cells_y - DT_PIXEL_APPLY_DPI(1)); in checker_draw() 1144 cairo_set_line_width(cr, DT_PIXEL_APPLY_DPI(2.)); in checker_draw() 1149 width / (float)cells_x - DT_PIXEL_APPLY_DPI(3), in checker_draw() 1150 height / (float)cells_y - DT_PIXEL_APPLY_DPI(3)); in checker_draw() 1152 cairo_set_line_width(cr, DT_PIXEL_APPLY_DPI(1.)); in checker_draw() 1157 width / (float)cells_x - DT_PIXEL_APPLY_DPI(5), in checker_draw() 1158 height / (float)cells_y - DT_PIXEL_APPLY_DPI(5)); in checker_draw() 1168 cairo_set_line_width(cr, DT_PIXEL_APPLY_DPI(2.)); in checker_draw() 1173 width / (float) cells_x - DT_PIXEL_APPLY_DPI(11), in checker_draw() [all …]
|
H A D | lowlight.c | 43 #define DT_IOP_LOWLIGHT_INSET DT_PIXEL_APPLY_DPI(5) 513 cairo_set_line_width(cr, DT_PIXEL_APPLY_DPI(1.0)); in lowlight_draw() 523 cairo_set_line_width(cr, DT_PIXEL_APPLY_DPI(.4)); in lowlight_draw() 557 cairo_set_line_width(cr, DT_PIXEL_APPLY_DPI(1.)); in lowlight_draw() 558 const float arrw = DT_PIXEL_APPLY_DPI(7.0f); in lowlight_draw() 561 cairo_move_to(cr, width * p.transition_x[k], height + inset - DT_PIXEL_APPLY_DPI(1)); in lowlight_draw() 577 cairo_set_line_width(cr, DT_PIXEL_APPLY_DPI(2.)); in lowlight_draw() 595 cairo_set_line_width(cr, DT_PIXEL_APPLY_DPI(1.)); in lowlight_draw() 598 …cairo_arc(cr, width * p.transition_x[k], -height * p.transition_y[k], DT_PIXEL_APPLY_DPI(3.0), 0.0, in lowlight_draw()
|
H A D | toneequal.c | 2562 cairo_set_line_width(g->cr, DT_PIXEL_APPLY_DPI(0.5)); in _init_drawing() 2628 cairo_set_line_width(g->cr, DT_PIXEL_APPLY_DPI(0.5)); in area_draw() 2634 cairo_set_line_width(g->cr, DT_PIXEL_APPLY_DPI(0.5)); in area_draw() 2640 cairo_set_line_width(g->cr, DT_PIXEL_APPLY_DPI(1)); in area_draw() 2649 cairo_set_line_width(g->cr, DT_PIXEL_APPLY_DPI(4.0)); in area_draw() 2690 cairo_set_line_width(g->cr, DT_PIXEL_APPLY_DPI(3)); in area_draw() 2721 cairo_set_line_width(g->cr, DT_PIXEL_APPLY_DPI(6)); in area_draw() 2728 cairo_set_line_width(g->cr, DT_PIXEL_APPLY_DPI(3)); in area_draw() 2819 cairo_set_line_width(cr, DT_PIXEL_APPLY_DPI(3)); in dt_iop_toneequalizer_bar_draw() 2827 cairo_set_line_width(cr, DT_PIXEL_APPLY_DPI(6)); in dt_iop_toneequalizer_bar_draw() [all …]
|
/dports/graphics/darktable38/darktable-3.8.0/src/gui/ |
H A D | preferences.c | 270 gtk_grid_set_row_spacing(GTK_GRID(grid), DT_PIXEL_APPLY_DPI(3)); in init_tab_general() 271 gtk_grid_set_column_spacing(GTK_GRID(grid), DT_PIXEL_APPLY_DPI(5)); in init_tab_general() 593 …cairo_surface_t *lock_cst = cairo_image_surface_create(CAIRO_FORMAT_ARGB32, DT_PIXEL_APPLY_DPI(ICO… in tree_insert_presets() 594 DT_PIXEL_APPLY_DPI(ICON_SIZE)); in tree_insert_presets() 597 …dtgtk_cairo_paint_lock(lock_cr, 0, 0, DT_PIXEL_APPLY_DPI(ICON_SIZE), DT_PIXEL_APPLY_DPI(ICON_SIZE)… in tree_insert_presets() 600 dt_draw_cairo_to_gdk_pixbuf(data, DT_PIXEL_APPLY_DPI(ICON_SIZE), DT_PIXEL_APPLY_DPI(ICON_SIZE)); in tree_insert_presets() 602 … DT_PIXEL_APPLY_DPI(ICON_SIZE), DT_PIXEL_APPLY_DPI(ICON_SIZE), in tree_insert_presets() 608 DT_PIXEL_APPLY_DPI(ICON_SIZE)); in tree_insert_presets() 611 …dtgtk_cairo_paint_check_mark(check_cr, 0, 0, DT_PIXEL_APPLY_DPI(ICON_SIZE), DT_PIXEL_APPLY_DPI(ICO… in tree_insert_presets() 614 dt_draw_cairo_to_gdk_pixbuf(data, DT_PIXEL_APPLY_DPI(ICON_SIZE), DT_PIXEL_APPLY_DPI(ICON_SIZE)); in tree_insert_presets() [all …]
|
/dports/graphics/darktable38/darktable-3.8.0/src/libs/ |
H A D | camera.c | 262 GtkWidget *hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, DT_PIXEL_APPLY_DPI(5)); in _lib_property_add_to_gui() 322 #define BAR_HEIGHT DT_PIXEL_APPLY_DPI(18) /* also change in views/tethering.c */ 341 const int fontsize = DT_PIXEL_APPLY_DPI(11.5); in _expose_info_bar() 348 …cairo_move_to(cr, DT_PIXEL_APPLY_DPI(5), DT_PIXEL_APPLY_DPI(1) + BAR_HEIGHT - ink.height / 2 - fon… in _expose_info_bar() 357 …cairo_move_to(cr, width - ink.width - DT_PIXEL_APPLY_DPI(5), DT_PIXEL_APPLY_DPI(1) + BAR_HEIGHT - … in _expose_info_bar() 378 …cairo_move_to(cr, (width / 2) - (ink.width / 2), DT_PIXEL_APPLY_DPI(1) + BAR_HEIGHT - ink.height /… in _expose_info_bar() 420 gtk_grid_set_column_spacing(GTK_GRID(self->widget), DT_PIXEL_APPLY_DPI(5)); in gui_init() 422 gtk_grid_set_row_spacing(GTK_GRID(self->widget), DT_PIXEL_APPLY_DPI(5)); in gui_init()
|
H A D | print_settings.c | 1436 const float diff = DT_PIXEL_APPLY_DPI(5); in _snap_to_grid() 1698 const double dash[] = { DT_PIXEL_APPLY_DPI(3.0), DT_PIXEL_APPLY_DPI(3.0) }; in _cairo_rectangle() 1715 cairo_rectangle (cr, x1, y1, DT_PIXEL_APPLY_DPI(15), DT_PIXEL_APPLY_DPI(15)); in _cairo_rectangle() 1722 DT_PIXEL_APPLY_DPI(15), DT_PIXEL_APPLY_DPI(15)); in _cairo_rectangle() 1729 DT_PIXEL_APPLY_DPI(15), DT_PIXEL_APPLY_DPI(15)); in _cairo_rectangle() 1735 cairo_rectangle (cr, x2 - DT_PIXEL_APPLY_DPI(15), y2 - DT_PIXEL_APPLY_DPI(15), in _cairo_rectangle() 1736 DT_PIXEL_APPLY_DPI(15), DT_PIXEL_APPLY_DPI(15)); in _cairo_rectangle() 1764 const double dash[] = { DT_PIXEL_APPLY_DPI(5.0), DT_PIXEL_APPLY_DPI(5.0) }; in gui_post_expose() 1776 cairo_set_line_width(cr, ((n % 5) == 0) ? DT_PIXEL_APPLY_DPI(1.0) : DT_PIXEL_APPLY_DPI(0.5)); in gui_post_expose() 1793 cairo_set_line_width(cr, ((n % 5) == 0) ? DT_PIXEL_APPLY_DPI(1.0) : DT_PIXEL_APPLY_DPI(0.5)); in gui_post_expose() [all …]
|
H A D | navigation.c | 229 cairo_set_line_width(cr, DT_PIXEL_APPLY_DPI(1)); in _lib_navigation_draw_callback() 245 const float fontsize = DT_PIXEL_APPLY_DPI(14); in _lib_navigation_draw_callback() 263 cairo_set_line_width(cr, DT_PIXEL_APPLY_DPI(1)); in _lib_navigation_draw_callback() 294 pango_font_description_set_absolute_size(desc, DT_PIXEL_APPLY_DPI(14) * PANGO_SCALE); in _lib_navigation_draw_callback() 313 cairo_set_line_width(cr, DT_PIXEL_APPLY_DPI(2)); in _lib_navigation_draw_callback()
|
/dports/graphics/darktable/darktable-3.6.1/src/libs/ |
H A D | camera.c | 266 GtkWidget *hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, DT_PIXEL_APPLY_DPI(5)); in _lib_property_add_to_gui() 326 #define BAR_HEIGHT DT_PIXEL_APPLY_DPI(18) /* also change in views/tethering.c */ 345 const int fontsize = DT_PIXEL_APPLY_DPI(11.5); in _expose_info_bar() 352 …cairo_move_to(cr, DT_PIXEL_APPLY_DPI(5), DT_PIXEL_APPLY_DPI(1) + BAR_HEIGHT - ink.height / 2 - fon… in _expose_info_bar() 361 …cairo_move_to(cr, width - ink.width - DT_PIXEL_APPLY_DPI(5), DT_PIXEL_APPLY_DPI(1) + BAR_HEIGHT - … in _expose_info_bar() 382 …cairo_move_to(cr, (width / 2) - (ink.width / 2), DT_PIXEL_APPLY_DPI(1) + BAR_HEIGHT - ink.height /… in _expose_info_bar() 424 gtk_grid_set_column_spacing(GTK_GRID(self->widget), DT_PIXEL_APPLY_DPI(5)); in gui_init() 426 gtk_grid_set_row_spacing(GTK_GRID(self->widget), DT_PIXEL_APPLY_DPI(5)); in gui_init()
|
H A D | navigation.c | 228 cairo_set_line_width(cr, DT_PIXEL_APPLY_DPI(1)); in _lib_navigation_draw_callback() 244 const float fontsize = DT_PIXEL_APPLY_DPI(14); in _lib_navigation_draw_callback() 262 cairo_set_line_width(cr, DT_PIXEL_APPLY_DPI(1)); in _lib_navigation_draw_callback() 293 pango_font_description_set_absolute_size(desc, DT_PIXEL_APPLY_DPI(14) * PANGO_SCALE); in _lib_navigation_draw_callback() 312 cairo_set_line_width(cr, DT_PIXEL_APPLY_DPI(2)); in _lib_navigation_draw_callback()
|
/dports/graphics/photoflow/PhotoFlow-8472024f/src/external/darktable/src/iop/ |
H A D | clipping.c | 1865 cairo_set_font_size(cr, DT_PIXEL_APPLY_DPI(16)); in gui_draw_sym() 1870 cr, extents.width + DT_PIXEL_APPLY_DPI(4), extents.height + DT_PIXEL_APPLY_DPI(8), in gui_draw_sym() 1871 …x - extents.width / 2.0f - DT_PIXEL_APPLY_DPI(2), y - extents.height / 2.0f - DT_PIXEL_APPLY_DPI(4… in gui_draw_sym() 1910 double dashes = DT_PIXEL_APPLY_DPI(5.0) / zoom_scale; in gui_post_expose() 1945 cairo_set_font_size(cr, DT_PIXEL_APPLY_DPI(16)); in gui_post_expose() 1968 cairo_set_line_width(cr, DT_PIXEL_APPLY_DPI(1.0) / zoom_scale); in gui_post_expose() 2081 const int border = DT_PIXEL_APPLY_DPI(30.0) / zoom_scale; in gui_post_expose() 2110 cairo_set_font_size(cr, DT_PIXEL_APPLY_DPI(16)); in gui_post_expose() 2312 cairo_set_font_size(cr, DT_PIXEL_APPLY_DPI(16)); in gui_post_expose() 2635 float ext = DT_PIXEL_APPLY_DPI(0.005f) / zoom_scale; in mouse_moved() [all …]
|
/dports/graphics/darktable/darktable-3.6.1/src/gui/ |
H A D | preferences.c | 308 gtk_grid_set_row_spacing(GTK_GRID(grid), DT_PIXEL_APPLY_DPI(3)); in init_tab_general() 309 gtk_grid_set_column_spacing(GTK_GRID(grid), DT_PIXEL_APPLY_DPI(5)); in init_tab_general() 655 …cairo_surface_t *lock_cst = cairo_image_surface_create(CAIRO_FORMAT_ARGB32, DT_PIXEL_APPLY_DPI(ICO… in tree_insert_presets() 656 DT_PIXEL_APPLY_DPI(ICON_SIZE)); in tree_insert_presets() 659 …dtgtk_cairo_paint_lock(lock_cr, 0, 0, DT_PIXEL_APPLY_DPI(ICON_SIZE), DT_PIXEL_APPLY_DPI(ICON_SIZE)… in tree_insert_presets() 662 dt_draw_cairo_to_gdk_pixbuf(data, DT_PIXEL_APPLY_DPI(ICON_SIZE), DT_PIXEL_APPLY_DPI(ICON_SIZE)); in tree_insert_presets() 664 … DT_PIXEL_APPLY_DPI(ICON_SIZE), DT_PIXEL_APPLY_DPI(ICON_SIZE), in tree_insert_presets() 670 DT_PIXEL_APPLY_DPI(ICON_SIZE)); in tree_insert_presets() 673 …dtgtk_cairo_paint_check_mark(check_cr, 0, 0, DT_PIXEL_APPLY_DPI(ICON_SIZE), DT_PIXEL_APPLY_DPI(ICO… in tree_insert_presets() 676 dt_draw_cairo_to_gdk_pixbuf(data, DT_PIXEL_APPLY_DPI(ICON_SIZE), DT_PIXEL_APPLY_DPI(ICON_SIZE)); in tree_insert_presets() [all …]
|
/dports/graphics/darktable38/darktable-3.8.0/src/views/ |
H A D | map.c | 385 const int h = DT_PIXEL_APPLY_DPI(image_pin_size); in _view_map_images_count() 418 const size_t h = DT_PIXEL_APPLY_DPI(image_pin_size); in _init_image_pin() 470 cairo_set_line_width(cr, DT_PIXEL_APPLY_DPI(1)); in _init_place_pin() 505 const int d = DT_PIXEL_APPLY_DPI(main ? 2 : 1); in _draw_ellipse() 506 const int cross = DT_PIXEL_APPLY_DPI(cross_size); in _draw_ellipse() 569 const int w = DT_PIXEL_APPLY_DPI(2.0 * dlon); in _draw_rectangle() 570 const int h = DT_PIXEL_APPLY_DPI(2.0 * dlat); in _draw_rectangle() 571 const int d = DT_PIXEL_APPLY_DPI(main ? 2 : 1); in _draw_rectangle() 572 const int cross = DT_PIXEL_APPLY_DPI(cross_size); in _draw_rectangle() 1493 img_y -= DT_PIXEL_APPLY_DPI(image_pin_size); in _view_map_get_entry_at_pos() [all …]
|
/dports/graphics/darktable/darktable-3.6.1/src/views/ |
H A D | map.c | 383 const int h = DT_PIXEL_APPLY_DPI(image_pin_size); in _view_map_images_count() 416 const size_t h = DT_PIXEL_APPLY_DPI(image_pin_size); in _init_image_pin() 468 cairo_set_line_width(cr, DT_PIXEL_APPLY_DPI(1)); in _init_place_pin() 503 const int d = DT_PIXEL_APPLY_DPI(main ? 2 : 1); in _draw_ellipse() 504 const int cross = DT_PIXEL_APPLY_DPI(cross_size); in _draw_ellipse() 567 const int w = DT_PIXEL_APPLY_DPI(2.0 * dlon); in _draw_rectangle() 568 const int h = DT_PIXEL_APPLY_DPI(2.0 * dlat); in _draw_rectangle() 569 const int d = DT_PIXEL_APPLY_DPI(main ? 2 : 1); in _draw_rectangle() 570 const int cross = DT_PIXEL_APPLY_DPI(cross_size); in _draw_rectangle() 1490 img_y -= DT_PIXEL_APPLY_DPI(image_pin_size); in _view_map_get_entry_at_pos() [all …]
|