LiVES 2.4.6

- Main Page
- Namespaces
- Data Structures
- Files

- File List
- Globals

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
27 void after_framedraw_widget_changed(LiVESWidget *, lives_special_framedraw_rect_t *);
28
29
31 void framedraw_connect(lives_special_framedraw_rect_t *, int width, int height, lives_rfx_t *);
32
34 void framedraw_connect_spinbutton(lives_special_framedraw_rect_t *, lives_rfx_t *);
35
37 void framedraw_add_reset(LiVESVBox *, lives_special_framedraw_rect_t *);
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
51 void after_framedraw_frame_spinbutton_changed(LiVESSpinButton *, lives_special_framedraw_rect_t *);
52
54 void on_framedraw_reset_clicked(LiVESButton *, lives_special_framedraw_rect_t *);
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
on_framedraw_mouse_reset
boolean on_framedraw_mouse_reset(LiVESWidget *widget, LiVESXEventButton *event, lives_special_framedraw_rect_t *framedraw)
Definition: framedraw.c:1020
lives_colRGBA32_t
Definition: main.h:466
framedraw_connect_spinbutton
void framedraw_connect_spinbutton(lives_special_framedraw_rect_t *framedraw, lives_rfx_t *rfx)
connect spinbutton to preview
Definition: framedraw.c:116
on_framedraw_mouse_update
boolean on_framedraw_mouse_update(LiVESWidget *widget, LiVESXEventMotion *event, lives_special_framedraw_rect_t *framedraw)
Definition: framedraw.c:891
framedraw_connect
void framedraw_connect(lives_special_framedraw_rect_t *framedraw, int width, int height, lives_rfx_t *rfx)
activate the image for clicks and draws
Definition: framedraw.c:127
on_framedraw_enter
boolean on_framedraw_enter(LiVESWidget *widget, LiVESXEventCrossing *event, lives_special_framedraw_rect_t *framedraw)
Definition: framedraw.c:727
on_framedraw_leave
boolean on_framedraw_leave(LiVESWidget *widget, LiVESXEventCrossing *event, lives_special_framedraw_rect_t *framedraw)
Definition: framedraw.c:764
on_framedraw_mouse_start
boolean on_framedraw_mouse_start(LiVESWidget *widget, LiVESXEventButton *event, lives_special_framedraw_rect_t *framedraw)
Definition: framedraw.c:773
on_framedraw_reset_clicked
void on_framedraw_reset_clicked(LiVESButton *button, lives_special_framedraw_rect_t *framedraw)
reset button
Definition: framedraw.c:1061
load_rfx_preview
void load_rfx_preview(lives_rfx_t *rfx)
rfx preview
Definition: framedraw.c:476
redraw_framedraw_image
void redraw_framedraw_image(void)
just redraw the frame
Definition: framedraw.c:676
widget_add_framedraw
void widget_add_framedraw(LiVESVBox *box, 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
draw_rect_demask
void draw_rect_demask(lives_colRGBA32_t *col, int x1, int y1, int x2, int y2, boolean filled)
framedraw_add_reset
void framedraw_add_reset(LiVESVBox *box, lives_special_framedraw_rect_t *framedraw)
add &quot;reset values&quot; button
Definition: framedraw.c:161
framedraw_add_label
void framedraw_add_label(LiVESVBox *box)
add explanatory label
Definition: framedraw.c:152
after_framedraw_widget_changed
void after_framedraw_widget_changed(LiVESWidget *widget, lives_special_framedraw_rect_t *framedraw)
callback for widgets
Definition: framedraw.c:1046
load_framedraw_image
void load_framedraw_image(LiVESPixbuf *pixbuf)
reload and redraw the frame
Definition: framedraw.c:636
lives_rfx_t
Definition: plugins.h:481
lives_special_framedraw_rect_t
Definition: paramspecial.h:16
after_framedraw_frame_spinbutton_changed
void after_framedraw_frame_spinbutton_changed(LiVESSpinButton *spinbutton, lives_special_framedraw_rect_t *framedraw)
change the frame number
Definition: framedraw.c:622
framedraw_redraw
void framedraw_redraw(lives_special_framedraw_rect_t *framedraw, boolean reload, LiVESPixbuf *pixbuf)
redraw when exposed/frame number changes
Definition: framedraw.c:291