1#ifndef DT_IOP_DRAWLAYER_COORDINATES_H
2#define DT_IOP_DRAWLAYER_COORDINATES_H
78 int *frame_width,
int *frame_height);
86 float *left,
float *
top,
87 float *right,
float *bottom);
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
drawlayer_view_patch_t patch
Fully resolved input dab descriptor.
Where the raw-anchored layer canvas sits in this module's own frame.
Region of interest passed through the pixelpipe.