LiVES  2.4.1-svn
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
lbindings.h
Go to the documentation of this file.
1 // bindings.h
2 // LiVES (lives-exe)
3 // (c) G. Finch <salsaman@gmail.com> 2015
4 // Released under the GPL 3 or later
5 // see file ../COPYING for licensing details
6 
7 #ifndef HAS_LIVES_LBINDINGS_H
8 #define HAS_LIVES_LBINDINGS_H
9 
10 #ifndef __cplusplus
11 
12 #ifdef IS_LIBLIVES
13 void binding_cb(int msgnumber, const char *msgstring, ulong myid);
14 
15 #endif
16 
17 #endif
18 
19 #define pad4(val) ((int)((val+4)/4)*4)
20 
21 int padup(char **str, int arglen);
22 int add_int_arg(char **str, int arglen, int val);
23 
24 
25 boolean start_player(void);
26 boolean idle_stop_playback(ulong id);
27 
28 boolean idle_quit(pthread_t *gtk_thread);
29 
30 boolean idle_show_info(const char *text, boolean blocking, ulong id);
31 boolean idle_save_set(const char *name, boolean force_append, ulong id);
32 boolean idle_choose_file_with_preview(const char *dirname, const char *title, int preview_type, ulong id);
33 boolean idle_open_file(const char *fname, double stime, int frames, ulong id);
34 boolean idle_set_interactive(boolean setting, ulong id);
35 boolean idle_choose_set(ulong id);
36 boolean idle_reload_set(const char *setname, ulong id);
37 boolean idle_set_set_name(ulong id);
38 boolean idle_set_pref_bool(int prefidx, boolean val, ulong id);
39 boolean idle_set_pref_int(int prefidx, int val, ulong id);
40 boolean idle_set_pref_bitmapped(int prefidx, int bitfield, boolean val, ulong id);
41 boolean idle_switch_clip(int type, int cnum, ulong id);
42 boolean idle_unmap_effects(ulong id);
43 boolean idle_map_fx(int key, int mode, int idx, ulong id);
44 boolean idle_unmap_fx(int key, int mode, ulong id);
45 boolean idle_fx_setmode(int key, int mode, ulong id);
46 boolean idle_fx_enable(int key, boolean setting, ulong id);
47 boolean idle_set_fullscreen_sepwin(boolean setting, ulong id);
48 boolean idle_set_fullscreen(boolean setting, ulong id);
49 boolean idle_set_sepwin(boolean setting, ulong id);
50 boolean idle_set_if_mode(int mode, ulong id);
51 boolean idle_insert_block(int clipno, boolean ign_sel, boolean with_audio, ulong id);
52 boolean idle_remove_block(ulong block_id, ulong id);
53 boolean idle_move_block(ulong block_uid, int track, double time, ulong id);
54 boolean idle_mt_set_track(int tnum, ulong id);
55 boolean idle_set_current_time(double time, ulong id);
56 boolean idle_set_current_audio_time(double time, ulong id);
57 boolean idle_set_current_frame(int frame, boolean bg, ulong id);
58 boolean idle_wipe_layout(boolean force, ulong id);
59 boolean idle_choose_layout(ulong id);
60 boolean idle_save_layout(const char *lname, ulong id);
61 boolean idle_reload_layout(const char *lname, ulong id);
62 boolean idle_render_layout(boolean with_aud, boolean normalise_aud, ulong id);
63 boolean idle_select_all(int cnum, ulong id);
64 boolean idle_select_start(int cnum, int frame, ulong id);
65 boolean idle_select_end(int cnum, int frame, ulong id);
66 boolean idle_set_current_fps(double fps, ulong id);
67 boolean idle_set_loop_mode(int mode, ulong id);
68 boolean idle_set_ping_pong(boolean setting, ulong id);
69 boolean idle_resync_fps(ulong id);
70 boolean idle_cancel_proc(ulong id);
71 boolean idle_set_track_label(int tnum, const char *label, ulong id);
72 boolean idle_insert_vtrack(boolean in_front, ulong id);
73 boolean idle_set_gravity(int grav, ulong id);
74 boolean idle_set_insert_mode(int mode, ulong id);
75 
76 ulong *get_unique_ids(void);
77 int cnum_for_uid(ulong uid);
78 
79 int get_first_fx_matched(const char *package, const char *fxname, const char *author, int version);
81 int get_current_mode_for_key(int key);
82 boolean get_rte_key_is_enabled(int key);
83 
84 #endif //HAS_LIVES_LBINDINGS_H
boolean idle_save_set(const char *name, boolean force_append, ulong id)
Definition: lbindings.c:1365
boolean idle_map_fx(int key, int mode, int idx, ulong id)
Definition: lbindings.c:1568
boolean idle_reload_layout(const char *lname, ulong id)
Definition: lbindings.c:1784
boolean idle_unmap_effects(ulong id)
Definition: lbindings.c:1335
boolean idle_set_fullscreen_sepwin(boolean setting, ulong id)
Definition: lbindings.c:1513
boolean idle_insert_vtrack(boolean in_front, ulong id)
Definition: lbindings.c:1291
int add_int_arg(char **str, int arglen, int val)
Definition: lbindings.c:160
boolean idle_set_sepwin(boolean setting, ulong id)
Definition: lbindings.c:1487
boolean idle_move_block(ulong block_uid, int track, double time, ulong id)
Definition: lbindings.c:1728
boolean idle_render_layout(boolean with_aud, boolean normalise_aud, ulong id)
Definition: lbindings.c:1818
int get_current_mode_for_key(int key)
Definition: lbindings.c:366
boolean idle_wipe_layout(boolean force, ulong id)
Definition: lbindings.c:1753
boolean idle_show_info(const char *text, boolean blocking, ulong id)
idlefunc hooks
Definition: lbindings.c:1231
boolean idle_set_gravity(int grav, ulong id)
Definition: lbindings.c:1541
boolean idle_set_pref_int(int prefidx, int val, ulong id)
Definition: lbindings.c:1647
boolean idle_quit(pthread_t *gtk_thread)
Definition: lbindings.c:1354
boolean idle_choose_layout(ulong id)
Definition: lbindings.c:1769
boolean idle_remove_block(ulong block_id, ulong id)
Definition: lbindings.c:1709
int cnum_for_uid(ulong uid)
Definition: lbindings.c:243
boolean idle_choose_file_with_preview(const char *dirname, const char *title, int preview_type, ulong id)
Definition: lbindings.c:1391
boolean idle_fx_enable(int key, boolean setting, ulong id)
Definition: lbindings.c:1617
boolean idle_choose_set(ulong id)
Definition: lbindings.c:1412
boolean idle_fx_setmode(int key, int mode, ulong id)
Definition: lbindings.c:1601
const char * version(void)
boolean idle_select_all(int cnum, ulong id)
Definition: lbindings.c:1835
boolean idle_reload_set(const char *setname, ulong id)
Definition: lbindings.c:1453
int padup(char **str, int arglen)
osc utils
Definition: lbindings.c:150
ulong * get_unique_ids(void)
utility functions for liblives /////
Definition: lbindings.c:219
boolean idle_set_pref_bitmapped(int prefidx, int bitfield, boolean val, ulong id)
Definition: lbindings.c:1661
boolean idle_set_current_frame(int frame, boolean bg, ulong id)
Definition: lbindings.c:1896
boolean idle_save_layout(const char *lname, ulong id)
Definition: lbindings.c:1801
boolean idle_set_current_time(double time, ulong id)
Definition: lbindings.c:1305
boolean idle_set_current_fps(double fps, ulong id)
Definition: lbindings.c:1881
boolean idle_set_current_audio_time(double time, ulong id)
Definition: lbindings.c:1319
boolean idle_switch_clip(int type, int cnum, ulong id)
Definition: lbindings.c:1246
boolean idle_set_loop_mode(int mode, ulong id)
Definition: lbindings.c:1911
boolean idle_unmap_fx(int key, int mode, ulong id)
Definition: lbindings.c:1584
boolean idle_set_interactive(boolean setting, ulong id)
Definition: lbindings.c:1474
boolean idle_set_if_mode(int mode, ulong id)
boolean idle_set_track_label(int tnum, const char *label, ulong id)
Definition: lbindings.c:1275
boolean idle_cancel_proc(ulong id)
Definition: lbindings.c:1938
boolean start_player(void)
Definition: lbindings.c:262
boolean idle_stop_playback(ulong id)
Definition: lbindings.c:1344
boolean idle_resync_fps(ulong id)
Definition: lbindings.c:1925
boolean idle_select_end(int cnum, int frame, ulong id)
Definition: lbindings.c:1865
boolean idle_set_insert_mode(int mode, ulong id)
Definition: lbindings.c:1554
int get_num_mapped_modes_for_key(int i)
Definition: lbindings.c:361
boolean idle_insert_block(int clipno, boolean ign_sel, boolean with_audio, ulong id)
Definition: lbindings.c:1692
int get_first_fx_matched(const char *package, const char *fxname, const char *author, int version)
Definition: lbindings.c:352
boolean idle_mt_set_track(int tnum, ulong id)
Definition: lbindings.c:1261
boolean get_rte_key_is_enabled(int key)
Definition: lbindings.c:371
boolean idle_set_set_name(ulong id)
Definition: lbindings.c:1427
void binding_cb(lives_callback_t cb_type, const char *msgstring, ulong id)
Definition: liblives.cpp:2355
boolean idle_set_pref_bool(int prefidx, boolean val, ulong id)
Definition: lbindings.c:1633
boolean idle_select_start(int cnum, int frame, ulong id)
Definition: lbindings.c:1849
boolean idle_open_file(const char *fname, double stime, int frames, ulong id)
Definition: lbindings.c:1435
boolean idle_set_fullscreen(boolean setting, ulong id)
Definition: lbindings.c:1500
boolean idle_set_ping_pong(boolean setting, ulong id)
Definition: lbindings.c:1527