X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fplugins%2Ftitler%2Ftitler.h;h=6a56744f2c26ba96d0bd0a14543e9e68a28840aa;hb=50ec1e03e96a60403af08a7bae34015c9b234902;hp=cf4a203791f41c8143014b8ebd5a41d2c0ad4e6d;hpb=7fd85fb66168f6b518c5f2d73e04036e87faa0e1;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/plugins/titler/titler.h b/cinelerra-5.1/plugins/titler/titler.h index cf4a2037..6a56744f 100644 --- a/cinelerra-5.1/plugins/titler/titler.h +++ b/cinelerra-5.1/plugins/titler/titler.h @@ -161,7 +161,7 @@ public: double fade_in, fade_out; float pixels_per_second; // Speed of motion // Text to display - wchar_t *wtext; + wchr_t *wtext; long wsize, wlen; // Position in frame relative to top left float title_x, title_y; @@ -182,8 +182,6 @@ public: // Time Code Format int timecode_format; -// drag enable - int drag; // loop background playback int loop_playback; }; @@ -233,7 +231,7 @@ public: // Position of each image box in a row class TitleChar { public: - wchar_t wch; + wchr_t wch; int typ, flags; void *vp; int x, y; @@ -502,7 +500,7 @@ public: class TitleParser { - const wchar_t *bfr, *out, *lmt; + const wchr_t *bfr, *out, *lmt; public: TitleMain *plugin; @@ -511,9 +509,9 @@ public: bool eof() { return out >= lmt; } int wcur() { return eof() ? -1 : *out; } int wnext() { return eof() ? -1 : *out++; } - int wget(wchar_t &wch); - int tget(wchar_t &wch); - wchar_t wid[BCSTRLEN], wtxt[BCTEXTLEN]; + int wget(wchr_t &wch); + int tget(wchr_t &wch); + wchr_t wid[BCSTRLEN], wtxt[BCTEXTLEN]; char id[BCSTRLEN], text[BCTEXTLEN]; int set_attributes(int ret); @@ -581,13 +579,15 @@ public: // required for all realtime plugins PLUGIN_CLASS_MEMBERS(TitleConfig) + void render_gui(void *data); + int is_dragging(); int process_realtime(VFrame *input_ptr, VFrame *output_ptr); int is_realtime(); int is_synthesis(); void update_gui(); void save_data(KeyFrame *keyframe); void read_data(KeyFrame *keyframe); - void insert_text(const wchar_t *wtxt, int pos); + void insert_text(const wchr_t *wtxt, int pos); void build_previews(TitleWindow *gui); void reset_render(); @@ -674,6 +674,7 @@ public: int64_t last_position; int need_reconfigure; int cpus; + int drag; };