LiVES  2.4.1-svn
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
framedraw.h
Go to the documentation of this file.
1 // LiVES
2 // framedraw.h
3 // (c) G. Finch (salsaman@gmail.com) 2002 - 2012
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 58
11 #define MIN_PRE_Y 32
12 
13 #define MAX_PRE_X 320
14 #define MAX_PRE_Y 240
15 
16 // internal padding in pixels for LiVESFrame
17 #define FD_HT_ADJ 12
18 
19 
21 void widget_add_framedraw(LiVESVBox *, int start, int end, boolean add_preview_button, int width, int height);
22 
24 void framedraw_redraw(lives_special_framedraw_rect_t *, boolean reload_image, LiVESPixbuf *);
25 
28 
29 
31 void framedraw_connect(lives_special_framedraw_rect_t *, int width, int height, lives_rfx_t *);
32 
35 
38 
40 void framedraw_add_label(LiVESVBox *box);
41 
42 
44 void load_framedraw_image(LiVESPixbuf *);
45 void load_rfx_preview(lives_rfx_t *rfx);
46 
48 void redraw_framedraw_image(void);
49 
52 
55 
56 
57 boolean on_framedraw_mouse_start(LiVESWidget *, LiVESXEventButton *, lives_special_framedraw_rect_t *);
58 boolean on_framedraw_mouse_update(LiVESWidget *, LiVESXEventMotion *, lives_special_framedraw_rect_t *);
59 boolean on_framedraw_mouse_reset(LiVESWidget *, LiVESXEventButton *, lives_special_framedraw_rect_t *);
60 
61 
62 boolean on_framedraw_leave(LiVESWidget *, LiVESXEventCrossing *, lives_special_framedraw_rect_t *);
63 boolean on_framedraw_enter(LiVESWidget *, LiVESXEventCrossing *, lives_special_framedraw_rect_t *);
64 
65 // graphics routines
66 
67 void draw_rect_demask(lives_colRGBA32_t *col, int x1, int y1, int x2, int y2, boolean filled);
68 
69 
70 #endif
void load_framedraw_image(LiVESPixbuf *)
reload and redraw the frame
Definition: framedraw.c:638
Definition: main.h:456
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:798
void framedraw_redraw(lives_special_framedraw_rect_t *, boolean reload_image, LiVESPixbuf *)
redraw when exposed/frame number changes
Definition: framedraw.c:293
void after_framedraw_widget_changed(LiVESWidget *, lives_special_framedraw_rect_t *)
callback for widgets
Definition: framedraw.c:1071
void framedraw_add_label(LiVESVBox *box)
add explanatory label
Definition: framedraw.c:152
void framedraw_connect_spinbutton(lives_special_framedraw_rect_t *, lives_rfx_t *)
connect spinbutton to preview
Definition: framedraw.c:116
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:127
boolean on_framedraw_mouse_update(LiVESWidget *, LiVESXEventMotion *, lives_special_framedraw_rect_t *)
Definition: framedraw.c:916
void draw_rect_demask(lives_colRGBA32_t *col, int x1, int y1, int x2, int y2, boolean filled)
void redraw_framedraw_image(void)
just redraw the frame
Definition: framedraw.c:690
boolean on_framedraw_leave(LiVESWidget *, LiVESXEventCrossing *, lives_special_framedraw_rect_t *)
Definition: framedraw.c:789
boolean on_framedraw_enter(LiVESWidget *, LiVESXEventCrossing *, lives_special_framedraw_rect_t *)
Definition: framedraw.c:752
void on_framedraw_reset_clicked(LiVESButton *, lives_special_framedraw_rect_t *)
reset button
Definition: framedraw.c:1086
boolean on_framedraw_mouse_reset(LiVESWidget *, LiVESXEventButton *, lives_special_framedraw_rect_t *)
Definition: framedraw.c:1045
Definition: plugins.h:481
Definition: paramspecial.h:16
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:478
void after_framedraw_frame_spinbutton_changed(LiVESSpinButton *, lives_special_framedraw_rect_t *)
change the frame number
Definition: framedraw.c:624