Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
coordinates.h
Go to the documentation of this file.
1#ifndef DT_IOP_DRAWLAYER_COORDINATES_H
2#define DT_IOP_DRAWLAYER_COORDINATES_H
3
4#include "iop/drawlayer/brush.h" // dt_drawlayer_brush_dab_t
5#include "develop/imageop.h" // dt_iop_module_t, dt_iop_roi_t
6
7
19
28
55
69 int *width, int *height);
70
72gboolean dt_drawlayer_layer_canvas(dt_iop_module_t *self, int *width, int *height);
73
76 const dt_iop_roi_t *frame,
78
81 int *frame_width, int *frame_height);
82
83gboolean dt_drawlayer_widget_points_to_layer_coords(dt_iop_module_t *self, float *pts, int count);
84gboolean dt_drawlayer_layer_points_to_widget_coords(dt_iop_module_t *self, float *pts, int count);
85gboolean dt_drawlayer_widget_to_layer_coords(dt_iop_module_t *self, double wx, double wy, float *lx, float *ly);
86gboolean dt_drawlayer_layer_to_widget_coords(dt_iop_module_t *self, float x, float y, float *wx, float *wy);
87gboolean dt_drawlayer_layer_bounds_to_widget_bounds(dt_iop_module_t *self, float x0, float y0,
88 float x1, float y1,
89 float *left, float *top,
90 float *right, float *bottom);
94#endif // DT_IOP_DRAWLAYER_COORDINATES_H
Dab-level brush rasterization API for drawlayer.
static const float x
const float top
gboolean dt_drawlayer_compute_view_patch(dt_iop_module_t *self, float padding, drawlayer_view_patch_info_t *view)
gboolean dt_drawlayer_widget_to_layer_coords(dt_iop_module_t *self, double wx, double wy, float *lx, float *ly)
gboolean dt_drawlayer_raw_placement_gui(dt_iop_module_t *self, dt_drawlayer_raw_placement_t *placement, int *frame_width, int *frame_height)
The placement against this module's frame, as the GUI sees it.
gboolean dt_drawlayer_widget_points_to_layer_coords(dt_iop_module_t *self, float *pts, int count)
gboolean dt_drawlayer_layer_canvas_for_pipe(dt_iop_module_t *self, const struct dt_dev_pixelpipe_t *pipe, int *width, int *height)
The layer canvas: the raw image's dimensions, in this image's own orientation.
float dt_drawlayer_widget_brush_radius(dt_iop_module_t *self, const dt_drawlayer_brush_dab_t *dab, float fallback)
float dt_drawlayer_current_live_padding(dt_iop_module_t *self)
gboolean dt_drawlayer_layer_points_to_widget_coords(dt_iop_module_t *self, float *pts, int count)
gboolean dt_drawlayer_layer_canvas(dt_iop_module_t *self, int *width, int *height)
dt_drawlayer_layer_canvas_for_pipe for a GUI caller.
gboolean dt_drawlayer_layer_to_widget_coords(dt_iop_module_t *self, float x, float y, float *wx, float *wy)
gboolean dt_drawlayer_layer_bounds_to_widget_bounds(dt_iop_module_t *self, float x0, float y0, float x1, float y1, float *left, float *top, float *right, float *bottom)
gboolean dt_drawlayer_raw_placement_for_frame(dt_iop_module_t *self, const struct dt_dev_pixelpipe_t *pipe, const dt_iop_roi_t *frame, dt_drawlayer_raw_placement_t *placement)
Anchor the canvas against frame, this module's input rect from the size fold.
GtkWidget * view
the tree view
static const dt_dev_pixelpipe_t * pipe
Definition layers.h:49
uint32_t width
Definition mipmap_cache.c:0
uint32_t height
Definition mipmap_cache.c:1
drawlayer_view_patch_t patch
Definition coordinates.h:22
Fully resolved input dab descriptor.
Definition brush.h:66
Where the raw-anchored layer canvas sits in this module's own frame.
Definition coordinates.h:51
Region of interest passed through the pixelpipe.
Definition format.h:49