LiVES 3.2.0
paramwindow.h
Go to the documentation of this file.
1// paramwindow.h
2// LiVES
3// (c) G. Finch 2004 - 2019 <salsaman+lives@gmail.com>
4// released under the GNU GPL 3 or later
5// see file COPYING or www.gnu.org for licensing details
6
7#ifndef HAS_LIVES_PARAMWINDOW_H
8#define HAS_LIVES_PARAMWINDOW_H
9
10typedef struct {
12 LiVESSList *rbgroup;
15
16#define RFX_TEXT_MAGIC 80
17#define RFX_DEF_NUM_MAX 1000000.
18
19#define MAX_FMT_STRINGS 256
20#define FMT_STRING_SIZE 256
21
22#define RFX_TEXT_SCROLL_HEIGHT ((int)(80.*widget_opts.scale))
23
24#define GIW_KNOB_WIDTH ((int)(40.*widget_opts.scale))
25#define GIW_KNOB_HEIGHT ((int)(40.*widget_opts.scale))
26
27#define DEF_SLIDER_WIDTH ((int)(200.*widget_opts.scale))
28
29void on_paramwindow_button_clicked(LiVESButton *, lives_rfx_t *);
30
31void on_render_fx_pre_activate(LiVESMenuItem *, lives_rfx_t *);
32void on_render_fx_activate(LiVESMenuItem *, lives_rfx_t *);
33
34_fx_dialog *on_fx_pre_activate(lives_rfx_t *rfx, boolean is_realtime, LiVESWidget *pbox);
35
36boolean make_param_box(LiVESVBox *, lives_rfx_t *);
37
38boolean add_param_to_box(LiVESBox *, lives_rfx_t *, int param_number, boolean add_slider);
39LiVESWidget *add_param_label_to_box(LiVESBox *, boolean do_trans, const char *text);
40
41LiVESSList *add_usrgrp_to_livesgrp(LiVESSList *u2l, LiVESSList *rbgroup, int usr_number);
42lives_widget_group_t *livesgrp_from_usrgrp(LiVESSList *u2l, int usrgrp);
43
44void after_boolean_param_toggled(LiVESToggleButton *, lives_rfx_t *);
45void after_param_value_changed(LiVESSpinButton *, lives_rfx_t *);
46void after_param_red_changed(LiVESSpinButton *, lives_rfx_t *);
47void after_param_green_changed(LiVESSpinButton *, lives_rfx_t *);
48void after_param_blue_changed(LiVESSpinButton *, lives_rfx_t *);
49void after_param_alpha_changed(LiVESSpinButton *, lives_rfx_t *);
50boolean after_param_text_focus_changed(LiVESWidget *, LiVESWidget *, lives_rfx_t *);
51void after_param_text_changed(LiVESWidget *, lives_rfx_t *);
52void after_string_list_changed(LiVESWidget *, lives_rfx_t *);
53
54void on_pwcolsel(LiVESButton *, lives_rfx_t *);
55
56char *param_marshall(lives_rfx_t *, boolean with_min_max);
58void param_demarshall(lives_rfx_t *, LiVESList *plist, boolean with_min_max, boolean update_widgets);
59int set_param_from_list(LiVESList *plist, lives_param_t *param, int pnum, boolean with_min_max, boolean upd);
60LiVESList *argv_to_marshalled_list(lives_rfx_t *, int argc, char **argv);
61
65LiVESList *do_onchange(LiVESWidgetObject *object, lives_rfx_t *) WARN_UNUSED;
67
68void update_weed_color_value(weed_plant_t *plant, int pnum, int c1, int c2, int c3, int c4, lives_rfx_t *);
69
71void update_visual_params(lives_rfx_t *, boolean update_hidden);
72
74boolean update_widget_vis(lives_rfx_t *, int key, int mode);
75
76#endif
#define WARN_UNUSED
Definition: main.h:77
void after_param_red_changed(LiVESSpinButton *, lives_rfx_t *)
Definition: paramwindow.c:2372
void after_param_text_changed(LiVESWidget *, lives_rfx_t *)
Definition: paramwindow.c:2635
LiVESWidget * add_param_label_to_box(LiVESBox *, boolean do_trans, const char *text)
Definition: paramwindow.c:1844
LiVESList * argv_to_marshalled_list(lives_rfx_t *, int argc, char **argv)
Definition: paramwindow.c:3031
void after_boolean_param_toggled(LiVESToggleButton *, lives_rfx_t *)
Definition: paramwindow.c:2035
void after_string_list_changed(LiVESWidget *, lives_rfx_t *)
Definition: paramwindow.c:2726
void after_param_green_changed(LiVESSpinButton *, lives_rfx_t *)
Definition: paramwindow.c:2435
lives_widget_group_t * livesgrp_from_usrgrp(LiVESSList *u2l, int usrgrp)
Definition: paramwindow.c:1882
void on_render_fx_activate(LiVESMenuItem *, lives_rfx_t *)
Definition: paramwindow.c:222
int set_param_from_list(LiVESList *plist, lives_param_t *param, int pnum, boolean with_min_max, boolean upd)
update values for param using values in plist if upd is TRUE, the widgets for that param also are upd...
Definition: paramwindow.c:3065
void update_weed_color_value(weed_plant_t *plant, int pnum, int c1, int c2, int c3, int c4, lives_rfx_t *)
Definition: paramwindow.c:2225
void after_param_value_changed(LiVESSpinButton *, lives_rfx_t *)
Definition: paramwindow.c:2102
void on_render_fx_pre_activate(LiVESMenuItem *, lives_rfx_t *)
Definition: paramwindow.c:656
void update_visual_params(lives_rfx_t *, boolean update_hidden)
apply internal value changes to interface widgets
Definition: paramwindow.c:3361
void after_param_blue_changed(LiVESSpinButton *, lives_rfx_t *)
Definition: paramwindow.c:2497
char ** param_marshall_to_argv(lives_rfx_t *)
Definition: paramwindow.c:2797
void on_pwcolsel(LiVESButton *, lives_rfx_t *)
Definition: paramwindow.c:3338
void on_paramwindow_button_clicked(LiVESButton *, lives_rfx_t *)
Definition: paramwindow.c:90
char * param_marshall(lives_rfx_t *, boolean with_min_max)
Definition: paramwindow.c:2844
boolean update_widget_vis(lives_rfx_t *, int key, int mode)
show / hide widgets set by plugin in init_func()
Definition: paramwindow.c:1893
_fx_dialog * on_fx_pre_activate(lives_rfx_t *rfx, boolean is_realtime, LiVESWidget *pbox)
Definition: paramwindow.c:687
LiVESList * do_onchange(LiVESWidgetObject *object, lives_rfx_t *) WARN_UNUSED
object should have g_set_object_data "param_number" set to parameter number
Definition: paramwindow.c:3265
void param_demarshall(lives_rfx_t *, LiVESList *plist, boolean with_min_max, boolean update_widgets)
Definition: paramwindow.c:3013
boolean add_param_to_box(LiVESBox *, lives_rfx_t *, int param_number, boolean add_slider)
Definition: paramwindow.c:1484
boolean make_param_box(LiVESVBox *, lives_rfx_t *)
make a dynamic parameter window
Definition: paramwindow.c:1015
LiVESList * do_onchange_init(lives_rfx_t *) WARN_UNUSED
Definition: paramwindow.c:35
boolean after_param_text_focus_changed(LiVESWidget *, LiVESWidget *, lives_rfx_t *)
Definition: paramwindow.c:2606
void after_param_alpha_changed(LiVESSpinButton *, lives_rfx_t *)
Definition: paramwindow.c:2558
LiVESSList * add_usrgrp_to_livesgrp(LiVESSList *u2l, LiVESSList *rbgroup, int usr_number)
Definition: paramwindow.c:1872
LiVESSList * rbgroup
Definition: paramwindow.h:12