![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
Functions | |
void | _clear_pos (dt_image_pos *pos) |
void | dt_printing_clear_box (dt_image_box *img) |
void | dt_printing_clear_boxes (dt_images_box *imgs) |
int32_t | dt_printing_get_image_box (const dt_images_box *imgs, const int x, const int y) |
void | _compute_rel_pos (const dt_images_box *imgs, const dt_image_pos *ref, dt_image_pos *pos) |
void | dt_printing_setup_display (dt_images_box *imgs, const float px, const float py, const float pwidth, const float pheight, const float ax, const float ay, const float awidth, const float aheight, gboolean borderless) |
void | dt_printing_setup_box (dt_images_box *imgs, const int idx, const float x, const float y, const float width, const float height) |
void | dt_printing_setup_page (dt_images_box *imgs, const float page_width, const float page_height, const int resolution) |
void | _align_pos (const dt_image_pos *ref, const dt_alignment_t alignment, const int32_t width, const int32_t height, dt_image_pos *pos) |
void | dt_printing_get_screen_pos (const dt_images_box *imgs, const dt_image_box *img, dt_image_pos *pos) |
void | dt_printing_get_screen_rel_pos (const dt_images_box *imgs, const dt_image_box *img, dt_image_pos *pos) |
void | dt_printing_get_image_pos_mm (const dt_images_box *imgs, const dt_image_box *img, dt_image_pos *pos) |
void | dt_printing_get_image_pos (const dt_images_box *imgs, const dt_image_box *img, dt_image_pos *pos) |
void | dt_printing_setup_image (dt_images_box *imgs, const int idx, const int32_t imgid, const int32_t width, const int32_t height, const dt_alignment_t alignment) |
void _align_pos | ( | const dt_image_pos * | ref, |
const dt_alignment_t | alignment, | ||
const int32_t | width, | ||
const int32_t | height, | ||
dt_image_pos * | pos | ||
) |
References ALIGNMENT_BOTTOM, ALIGNMENT_BOTTOM_LEFT, ALIGNMENT_BOTTOM_RIGHT, ALIGNMENT_CENTER, ALIGNMENT_LEFT, ALIGNMENT_RIGHT, ALIGNMENT_TOP, ALIGNMENT_TOP_LEFT, ALIGNMENT_TOP_RIGHT, height, _imgage_pos::height, width, _imgage_pos::width, _imgage_pos::x, and _imgage_pos::y.
Referenced by dt_printing_get_screen_pos(), and dt_printing_setup_image().
void _clear_pos | ( | dt_image_pos * | pos | ) |
References _imgage_pos::height, _imgage_pos::width, _imgage_pos::x, and _imgage_pos::y.
Referenced by dt_printing_clear_box(), dt_printing_clear_boxes(), and dt_printing_get_screen_pos().
void _compute_rel_pos | ( | const dt_images_box * | imgs, |
const dt_image_pos * | ref, | ||
dt_image_pos * | pos | ||
) |
References _imgage_pos::height, dt_screen_pos::page, dt_images_box::screen, _imgage_pos::width, _imgage_pos::x, and _imgage_pos::y.
Referenced by dt_printing_get_screen_rel_pos(), and dt_printing_setup_box().
void dt_printing_clear_box | ( | dt_image_box * | img | ) |
References _clear_pos(), _image_box::alignment, ALIGNMENT_CENTER, _image_box::buf, _image_box::dis_height, _image_box::dis_width, _image_box::exp_height, _image_box::exp_width, _image_box::img_height, _image_box::img_width, _image_box::imgid, _image_box::max_height, _image_box::max_width, _image_box::pos, _image_box::print, _image_box::screen, and UNKNOWN_IMAGE.
Referenced by _page_delete_area(), _print_settings_activate_or_update_callback(), and dt_printing_clear_boxes().
void dt_printing_clear_boxes | ( | dt_images_box * | imgs | ) |
References _clear_pos(), dt_images_box::box, dt_images_box::count, dt_printing_clear_box(), dt_images_box::imgid_to_load, MAX_IMAGE_PER_PAGE, dt_images_box::motion_over, dt_screen_pos::page, dt_images_box::page_height, dt_images_box::page_height_mm, dt_images_box::page_width, dt_images_box::page_width_mm, dt_screen_pos::print_area, and dt_images_box::screen.
Referenced by _page_clear_area_clicked(), gui_init(), gui_reset(), and leave().
int32_t dt_printing_get_image_box | ( | const dt_images_box * | imgs, |
const int | x, | ||
const int | y | ||
) |
References dt_images_box::box, dt_images_box::count, dist(), and sqf().
Referenced by _drag_and_drop_received(), _drag_motion_received(), mouse_moved(), and mouse_moved().
void dt_printing_get_image_pos | ( | const dt_images_box * | imgs, |
const dt_image_box * | img, | ||
dt_image_pos * | pos | ||
) |
References dt_printing_get_screen_rel_pos(), _imgage_pos::height, dt_images_box::page_height, dt_images_box::page_width, _imgage_pos::width, _imgage_pos::x, and _imgage_pos::y.
Referenced by _update_slider().
void dt_printing_get_image_pos_mm | ( | const dt_images_box * | imgs, |
const dt_image_box * | img, | ||
dt_image_pos * | pos | ||
) |
References dt_printing_get_screen_rel_pos(), _imgage_pos::height, dt_images_box::page_height_mm, dt_images_box::page_width_mm, _imgage_pos::width, _imgage_pos::x, and _imgage_pos::y.
Referenced by _update_slider().
void dt_printing_get_screen_pos | ( | const dt_images_box * | imgs, |
const dt_image_box * | img, | ||
dt_image_pos * | pos | ||
) |
References _align_pos(), _clear_pos(), _image_box::alignment, _image_box::dis_height, _image_box::dis_width, and _image_box::screen.
Referenced by dt_printing_get_screen_rel_pos(), and gui_post_expose().
void dt_printing_get_screen_rel_pos | ( | const dt_images_box * | imgs, |
const dt_image_box * | img, | ||
dt_image_pos * | pos | ||
) |
References _compute_rel_pos(), and dt_printing_get_screen_pos().
Referenced by dt_printing_get_image_pos(), and dt_printing_get_image_pos_mm().
void dt_printing_setup_box | ( | dt_images_box * | imgs, |
const int | idx, | ||
const float | x, | ||
const float | y, | ||
const float | width, | ||
const float | height | ||
) |
References _compute_rel_pos(), dt_images_box::box, dt_images_box::count, height, _imgage_pos::height, _image_box::pos, dt_screen_pos::print_area, _image_box::screen, dt_images_box::screen, width, _imgage_pos::width, _imgage_pos::x, and _imgage_pos::y.
Referenced by _height_changed(), _load_image_full_page(), _width_changed(), _x_changed(), _y_changed(), and button_released().
void dt_printing_setup_display | ( | dt_images_box * | imgs, |
const float | px, | ||
const float | py, | ||
const float | pwidth, | ||
const float | pheight, | ||
const float | ax, | ||
const float | ay, | ||
const float | awidth, | ||
const float | aheight, | ||
gboolean | borderless | ||
) |
References dt_screen_pos::borderless, dt_images_box::box, dt_images_box::count, DT_DEBUG_PRINT, dt_print(), _imgage_pos::height, dt_screen_pos::page, _image_box::pos, dt_screen_pos::print_area, _image_box::screen, dt_images_box::screen, _imgage_pos::width, _imgage_pos::x, and _imgage_pos::y.
Referenced by expose_print_page().
void dt_printing_setup_image | ( | dt_images_box * | imgs, |
const int | idx, | ||
const int32_t | imgid, | ||
const int32_t | width, | ||
const int32_t | height, | ||
const dt_alignment_t | alignment | ||
) |
References _align_pos(), _image_box::alignment, dt_images_box::box, _image_box::dis_height, _image_box::dis_width, _image_box::exp_height, _image_box::exp_width, height, _imgage_pos::height, _image_box::img_height, _image_box::img_width, _image_box::imgid, dt_images_box::page_height, dt_images_box::page_width, _image_box::pos, _image_box::print, _image_box::screen, width, _imgage_pos::width, _imgage_pos::x, and _imgage_pos::y.
Referenced by _alignment_callback(), _drag_and_drop_received(), _export_and_setup_pos(), _load_image_full_page(), _print_settings_activate_or_update_callback(), and gui_post_expose().
void dt_printing_setup_page | ( | dt_images_box * | imgs, |
const float | page_width, | ||
const float | page_height, | ||
const int | resolution | ||
) |
References dt_images_box::box, dt_images_box::count, dt_pdf_mm_to_point, dt_pdf_point_to_pixel, _imgage_pos::height, _image_box::max_height, _image_box::max_width, dt_images_box::page_height, dt_images_box::page_height_mm, dt_images_box::page_width, dt_images_box::page_width_mm, _image_box::pos, and _imgage_pos::width.
Referenced by _export_and_setup_pos(), _load_image_full_page(), and _paper_changed().