LiVES 2.4.6

- Main Page
- Namespaces
- Data Structures
- Files

- File List
- Globals

All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
paramspecial.h
Go to the documentation of this file.
1 // paramspecial.h
2 // LiVES
3 // (c) G. Finch 2004 - 2013 <salsaman@gmail.com>
4 // released under the GNU GPL 3 or later
5 // see file ../COPYING or www.gnu.org for licensing details
6
7
8 // dynamic window generation from parameter arrays :-)
9 // special widgets
10
11 // TODO - refactor all of this using lives_special_t, use a union
12
13 #ifndef HAS_LIVES_PARAMSPECIAL_H
14 #define HAS_LIVES_PARAMSPECIAL_H
15
16 typedef struct {
17 lives_rfx_t *rfx;
18 boolean added;
19 lives_param_special_t type;
20 lives_param_t *xstart_param;
21 lives_param_t *ystart_param;
22 lives_param_t *xend_param;
23 lives_param_t *yend_param;
24
25 int stdwidgets; // 2 for singlepoint, 4 for demask, multrect
26 int *extra_params;
27 int num_extra;
28 LiVESWidget **extra_widgets;
29 } lives_special_framedraw_rect_t;
30
31
32
33 typedef struct {
34 lives_param_t *height_param;
35 lives_param_t *width_param;
36 LiVESWidget *checkbutton;
37 ulong width_func;
38 ulong height_func;
39 } lives_special_aspect_t;
40
41
42 typedef struct {
43 lives_rfx_t *rfx;
44 lives_param_t *start_param;
45 lives_param_t *end_param;
46 } lives_special_mergealign_t;
48
49 void init_special(void);
50
51 void add_to_special(const char *special_string, lives_rfx_t *);
52
53 void check_for_special(lives_rfx_t *, lives_param_t *param, LiVESBox *);
54
55 void fd_connect_spinbutton(lives_rfx_t *);
56
57 void fd_tweak(lives_rfx_t *);
58
59 void after_aspect_width_changed(LiVESSpinButton *, livespointer);
60
61 void after_aspect_height_changed(LiVESToggleButton *, livespointer);
62
63 void special_cleanup(void);
64
65 void setmergealign(void);
66
67 void set_aspect_ratio_widgets(lives_param_t *w, lives_param_t *h);
68
69 boolean is_perchannel_multi(lives_rfx_t *rfx, int pnum);
70
71 lives_special_mergealign_t mergealign;
72
73
74 #endif
75
lives_special_mergealign_t::end_param
lives_param_t * end_param
Definition: paramspecial.h:45
set_aspect_ratio_widgets
void set_aspect_ratio_widgets(lives_param_t *w, lives_param_t *h)
Definition: paramspecial.c:438
lives_special_aspect_t::width_func
ulong width_func
Definition: paramspecial.h:37
lives_special_framedraw_rect_t::extra_widgets
LiVESWidget ** extra_widgets
Definition: paramspecial.h:28
lives_special_framedraw_rect_t::extra_params
int * extra_params
Definition: paramspecial.h:26
lives_special_framedraw_rect_t::stdwidgets
int stdwidgets
Definition: paramspecial.h:25
setmergealign
void setmergealign(void)
Definition: paramspecial.c:444
lives_special_framedraw_rect_t::yend_param
lives_param_t * yend_param
Definition: paramspecial.h:23
lives_special_framedraw_rect_t::rfx
lives_rfx_t * rfx
Definition: paramspecial.h:17
after_aspect_width_changed
void after_aspect_width_changed(LiVESSpinButton *spinbutton, livespointer user_data)
Definition: paramspecial.c:354
lives_special_framedraw_rect_t::added
boolean added
Definition: paramspecial.h:18
is_perchannel_multi
boolean is_perchannel_multi(lives_rfx_t *rfx, int i)
Definition: paramspecial.c:527
lives_param_special_t
lives_param_special_t
Definition: plugins.h:381
add_to_special
void add_to_special(const char *sp_string, lives_rfx_t *rfx)
Definition: paramspecial.c:52
init_special
void init_special(void)
Definition: paramspecial.c:34
lives_special_aspect_t::height_func
ulong height_func
Definition: paramspecial.h:38
lives_special_aspect_t::checkbutton
LiVESWidget * checkbutton
Definition: paramspecial.h:36
check_for_special
void check_for_special(lives_rfx_t *rfx, lives_param_t *param, LiVESBox *pbox)
Definition: paramspecial.c:177
lives_special_mergealign_t::start_param
lives_param_t * start_param
Definition: paramspecial.h:44
mergealign
lives_special_mergealign_t mergealign
Definition: paramspecial.h:71
lives_special_mergealign_t
Definition: paramspecial.h:42
lives_special_framedraw_rect_t::xstart_param
lives_param_t * xstart_param
Definition: paramspecial.h:20
special_cleanup
void special_cleanup(void)
Definition: paramspecial.c:414
lives_special_framedraw_rect_t::xend_param
lives_param_t * xend_param
Definition: paramspecial.h:22
lives_param_t
Definition: plugins.h:401
lives_special_mergealign_t::rfx
lives_rfx_t * rfx
Definition: paramspecial.h:43
ulong
#define ulong
Definition: main.h:148
lives_special_aspect_t
Definition: paramspecial.h:33
lives_special_framedraw_rect_t::type
lives_param_special_t type
Definition: paramspecial.h:19
lives_special_aspect_t::width_param
lives_param_t * width_param
Definition: paramspecial.h:35
lives_special_framedraw_rect_t::ystart_param
lives_param_t * ystart_param
Definition: paramspecial.h:21
lives_special_framedraw_rect_t::num_extra
int num_extra
Definition: paramspecial.h:27
lives_rfx_t
Definition: plugins.h:481
lives_special_framedraw_rect_t
Definition: paramspecial.h:16
fd_tweak
void fd_tweak(lives_rfx_t *rfx)
Definition: paramspecial.c:155
after_aspect_height_changed
void after_aspect_height_changed(LiVESToggleButton *spinbutton, livespointer user_data)
Definition: paramspecial.c:383
fd_connect_spinbutton
void fd_connect_spinbutton(lives_rfx_t *rfx)
Definition: paramspecial.c:167
lives_special_aspect_t::height_param
lives_param_t * height_param
Definition: paramspecial.h:34