LiVES  3.0.2
framedraw.h
Go to the documentation of this file.
1 // LiVES
2 // framedraw.h
3 // (c) G. Finch (salsaman+lives@gmail.com) 2002 - 2018
4 // see file COPYING for licensing details : released under the GNU GPL 3 or later
5 
6 #ifndef HAS_LIVES_FRAMEDRAW_H
7 #define HAS_LIVES_FRAMEDRAW_H
8 
9 // min and max frame sizes for framedraw preview
10 #define MIN_PRE_X ((int)(58. * widget_opts.scale))
11 #define MIN_PRE_Y ((int)(32. * widget_opts.scale))
12 
13 #define MAX_PRE_X ((int)(480. * widget_opts.scale))
14 #define MAX_PRE_Y ((int)(280. * widget_opts.scale))
15 
16 // internal padding in pixels for LiVESFrame
17 #define FD_HT_ADJ 12
18 
20 void widget_add_framedraw(LiVESVBox *, int start, int end, boolean add_preview_button, int width, int height);
21 
23 void framedraw_redraw(lives_special_framedraw_rect_t *, boolean reload_image, LiVESPixbuf *);
24 
27 
29 void framedraw_connect(lives_special_framedraw_rect_t *, int width, int height, lives_rfx_t *);
30 
33 
36 
38 void framedraw_add_label(LiVESVBox *box);
39 
41 void load_framedraw_image(LiVESPixbuf *);
42 void load_rfx_preview(lives_rfx_t *rfx);
43 
45 void redraw_framedraw_image(void);
46 
49 
50 boolean on_framedraw_mouse_start(LiVESWidget *, LiVESXEventButton *, lives_special_framedraw_rect_t *);
51 boolean on_framedraw_mouse_update(LiVESWidget *, LiVESXEventMotion *, lives_special_framedraw_rect_t *);
52 boolean on_framedraw_mouse_reset(LiVESWidget *, LiVESXEventButton *, lives_special_framedraw_rect_t *);
53 
54 boolean on_framedraw_leave(LiVESWidget *, LiVESXEventCrossing *, lives_special_framedraw_rect_t *);
55 boolean on_framedraw_enter(LiVESWidget *, LiVESXEventCrossing *, lives_special_framedraw_rect_t *);
56 
57 // graphics routines
58 
59 void draw_rect_demask(lives_colRGBA64_t *col, int x1, int y1, int x2, int y2, boolean filled);
60 
61 #endif
void load_framedraw_image(LiVESPixbuf *)
reload and redraw the frame
Definition: framedraw.c:599
void framedraw_add_reset(LiVESVBox *, lives_special_framedraw_rect_t *)
add "reset values" button
Definition: framedraw.c:161
boolean on_framedraw_mouse_start(LiVESWidget *, LiVESXEventButton *, lives_special_framedraw_rect_t *)
Definition: framedraw.c:734
void framedraw_redraw(lives_special_framedraw_rect_t *, boolean reload_image, LiVESPixbuf *)
redraw when exposed/frame number changes
Definition: framedraw.c:309
void after_framedraw_widget_changed(LiVESWidget *, lives_special_framedraw_rect_t *)
callback for widgets
Definition: framedraw.c:995
void framedraw_add_label(LiVESVBox *box)
add explanatory label
Definition: framedraw.c:150
Definition: main.h:313
void framedraw_connect_spinbutton(lives_special_framedraw_rect_t *, lives_rfx_t *)
connect spinbutton to preview
Definition: framedraw.c:111
void framedraw_connect(lives_special_framedraw_rect_t *, int width, int height, lives_rfx_t *)
activate the image for clicks and draws
Definition: framedraw.c:126
boolean on_framedraw_mouse_update(LiVESWidget *, LiVESXEventMotion *, lives_special_framedraw_rect_t *)
Definition: framedraw.c:845
void redraw_framedraw_image(void)
just redraw the frame
Definition: framedraw.c:640
boolean on_framedraw_leave(LiVESWidget *, LiVESXEventCrossing *, lives_special_framedraw_rect_t *)
Definition: framedraw.c:725
boolean on_framedraw_enter(LiVESWidget *, LiVESXEventCrossing *, lives_special_framedraw_rect_t *)
Definition: framedraw.c:689
void on_framedraw_reset_clicked(LiVESButton *, lives_special_framedraw_rect_t *)
reset button
Definition: framedraw.c:1009
void draw_rect_demask(lives_colRGBA64_t *col, int x1, int y1, int x2, int y2, boolean filled)
boolean on_framedraw_mouse_reset(LiVESWidget *, LiVESXEventButton *, lives_special_framedraw_rect_t *)
Definition: framedraw.c:970
Definition: plugins.h:459
Definition: paramspecial.h:15
void widget_add_framedraw(LiVESVBox *, int start, int end, boolean add_preview_button, int width, int height)
call this to add framedraw widget to an hbox
Definition: framedraw.c:184
void load_rfx_preview(lives_rfx_t *rfx)
rfx preview
Definition: framedraw.c:460