Go to the documentation of this file.
6 #ifndef HAS_LIVES_FRAMEDRAW_H
7 #define HAS_LIVES_FRAMEDRAW_H
10 #define MIN_PRE_X ((int)(58. * widget_opts.scale))
11 #define MIN_PRE_Y ((int)(32. * widget_opts.scale))
13 #define MAX_PRE_X ((int)(480. * widget_opts.scale))
14 #define MAX_PRE_Y ((int)(280. * widget_opts.scale))
19 #define CROSSHAIR_SIZE 8
21 #define DEF_MASK_OPACITY .5
weed_plant_t * framedraw_redraw(lives_special_framedraw_rect_t *, weed_layer_t *layer)
redraw when exposed/frame number changes
void on_framedraw_reset_clicked(LiVESButton *, lives_special_framedraw_rect_t *)
reset button
boolean on_framedraw_mouse_start(LiVESWidget *, LiVESXEventButton *, lives_special_framedraw_rect_t *)
void framedraw_add_label(LiVESVBox *box)
add explanatory label
boolean on_framedraw_leave(LiVESWidget *, LiVESXEventCrossing *, lives_special_framedraw_rect_t *)
boolean on_framedraw_mouse_reset(LiVESWidget *, LiVESXEventButton *, lives_special_framedraw_rect_t *)
boolean on_framedraw_mouse_update(LiVESWidget *, LiVESXEventMotion *, lives_special_framedraw_rect_t *)
void after_framedraw_widget_changed(LiVESWidget *, lives_special_framedraw_rect_t *)
callback for widgets
void widget_add_framedraw(LiVESVBox *, int start, int end, boolean add_preview_button, int width, int height, lives_rfx_t *)
call this to add framedraw widget to an hbox
void invalidate_preview(lives_special_framedraw_rect_t *)
weed_plant_t weed_layer_t
void load_rfx_preview(lives_rfx_t *rfx)
rfx preview
boolean on_framedraw_enter(LiVESWidget *, LiVESXEventCrossing *, lives_special_framedraw_rect_t *)
void framedraw_add_reset(LiVESVBox *, lives_special_framedraw_rect_t *)
add "reset values" button
void framedraw_connect_spinbutton(lives_special_framedraw_rect_t *, lives_rfx_t *)
connect spinbutton to preview
void load_framedraw_image(LiVESPixbuf *)
reload and redraw the frame
void framedraw_connect(lives_special_framedraw_rect_t *, int width, int height, lives_rfx_t *)
activate the image for clicks and draws
void draw_rect_demask(lives_colRGBA64_t *col, int x1, int y1, int x2, int y2, boolean filled)
boolean on_framedraw_scroll(LiVESWidget *, LiVESXEventScroll *, lives_special_framedraw_rect_t *)