27 #include <libvisual/lv_actor.h>
28 #include <libvisual/lv_input.h>
29 #include <libvisual/lv_morph.h>
30 #include <libvisual/lv_video.h>
31 #include <libvisual/lv_time.h>
39 VISUAL_BIN_DEPTH_LOWEST,
40 VISUAL_BIN_DEPTH_HIGHEST
60 Bin& operator= (
Bin const&) =
delete;
68 void set_morph (std::string
const& morph_name);
70 bool connect (std::string
const& actor_name, std::string
const& input_name);
72 void sync (
bool noevent);
74 void set_video (
VideoPtr const& video);
80 void set_preferred_depth (VisBinDepth depthpreferred);
86 bool depth_changed ();
88 Palette const& get_palette ()
const;
90 void switch_actor (std::string
const& actname);
92 void switch_finalize ();
94 void use_morph (
bool use);
96 void switch_set_time (
Time const& time);
104 const std::unique_ptr<Impl> m_impl;
108 void switch_actor (
ActorPtr const& actor);
118 typedef struct _VisBin
VisBin;
124 LV_API
VisBin *visual_bin_new (
void);
125 LV_API
void visual_bin_free (
VisBin *bin);
127 LV_API
void visual_bin_realize (
VisBin *bin);
132 LV_API
void visual_bin_set_morph (
VisBin *bin,
const char *morphname);
135 LV_API
void visual_bin_connect (
VisBin *bin,
const char *actname,
const char *inname);
137 LV_API
void visual_bin_sync (
VisBin *bin,
int noevent);
143 LV_API
void visual_bin_set_preferred_depth (
VisBin *bin, VisBinDepth depthpreferred);
144 LV_API
void visual_bin_set_depth (
VisBin *bin,
int depth);
147 LV_API
int visual_bin_depth_changed (
VisBin *bin);
151 LV_API
void visual_bin_switch_actor (
VisBin *bin,
const char *name);
152 LV_API
void visual_bin_switch_finalize (
VisBin *bin);
153 LV_API
void visual_bin_switch_set_time (
VisBin *bin,
long sec,
long usec);
155 LV_API
void visual_bin_run (
VisBin *bin);