X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fguicast%2Fbcwindowbase.h;h=994da7b0dc87d45d1a9641a0a6a2edb7a25736b3;hb=7febad89b726934306bf6ab994f54da5e09f1f64;hp=af271e49bf82103c6391ecfafe376eae8c140419;hpb=30bdb85eb33a8ee7ba675038a86c6be59c43d7bd;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/guicast/bcwindowbase.h b/cinelerra-5.1/guicast/bcwindowbase.h index af271e49..994da7b0 100644 --- a/cinelerra-5.1/guicast/bcwindowbase.h +++ b/cinelerra-5.1/guicast/bcwindowbase.h @@ -22,12 +22,6 @@ #ifndef BCWINDOWBASE_H #define BCWINDOWBASE_H -#if defined(HAVE_CONFIG_H) -#include "config.h" -#endif - -//#define HAVE_LIBXXF86VM - // Window types #define MAIN_WINDOW 0 #define SUB_WINDOW 1 @@ -483,6 +477,7 @@ public: void slide_right(int distance); void slide_up(int distance); void slide_down(int distance); + void flicker(int n=3, int ms=66); int cycle_textboxes(int amount); @@ -571,7 +566,7 @@ private: int trigger_tooltip(); int untrigger_tooltip(); void draw_tooltip(); - int arm_repeat(int64_t duration); + static XEvent *new_xevent(); // delete all repeater opjects for a close int unset_all_repeaters(); @@ -581,9 +576,12 @@ private: int get_event_count(); // Put event in common events. void put_event(XEvent *event); +// remove events queued for win + void dequeue_events(Window win); // Recursive event dispatchers int dispatch_resize_event(int w, int h); + int dispatch_flash(); int dispatch_focus_in(); int dispatch_focus_out(); int dispatch_motion_event(); @@ -602,7 +600,7 @@ private: int dispatch_expose_event(); // Get the port ID for a color model or return -1 for failure - int grab_port_id(BC_WindowBase *window, int color_model); + int grab_port_id(int color_model); int find_next_textbox(BC_WindowBase **first_textbox, BC_WindowBase **next_textbox, int &result); int find_prev_textbox(BC_WindowBase **last_textbox, BC_WindowBase **prev_textbox, int &result); @@ -697,6 +695,7 @@ private: #ifndef SINGLE_THREAD // Array of repeaters for multiple repeating objects. ArrayList repeaters; + int arm_repeat(int64_t duration); #endif // Text for tooltip if one exists const char *tooltip_text; @@ -711,7 +710,7 @@ private: // If this subwindow has already shown a tooltip since the last EnterNotify int tooltip_done; int options; - + int flash_enabled; // Font sets @@ -785,6 +784,7 @@ private: // Depth given by the X Server int default_depth; Atom DelWinXAtom; + Atom DestroyAtom; Atom ProtoXAtom; Atom RepeaterXAtom; Atom SetDoneXAtom;