projects
/
goodguy
/
history.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
titler rework, some code cleanup and fixes
[goodguy/history.git]
/
cinelerra-5.1
/
guicast
/
bcwindowbase.h
diff --git
a/cinelerra-5.1/guicast/bcwindowbase.h
b/cinelerra-5.1/guicast/bcwindowbase.h
index 4136b110fb8b423fe147d47847c0aafd242d9621..4ba5d8fc8f355c2673b6e9cf35c54dd897c6d857 100644
(file)
--- a/
cinelerra-5.1/guicast/bcwindowbase.h
+++ b/
cinelerra-5.1/guicast/bcwindowbase.h
@@
-195,6
+195,7
@@
public:
virtual int uses_text() { return 0; };
// Only if opengl is enabled
virtual int expose_event() { return 0; };
virtual int uses_text() { return 0; };
// Only if opengl is enabled
virtual int expose_event() { return 0; };
+ virtual int grab_event(XEvent *event) { return 0; };
virtual void create_objects() { return; };
int get_window_type() { return window_type; }
virtual void create_objects() { return; };
int get_window_type() { return window_type; }
@@
-453,6
+454,9
@@
public:
int get_id();
void set_done(int return_value);
void close(int return_value);
int get_id();
void set_done(int return_value);
void close(int return_value);
+// Reroute toplevel events
+ int grab(BC_WindowBase *window);
+ int ungrab(BC_WindowBase *window);
// Get a bitmap to draw on the window with
BC_Bitmap* new_bitmap(int w, int h, int color_model = -1);
// Draw a bitmap on the window
// Get a bitmap to draw on the window with
BC_Bitmap* new_bitmap(int w, int h, int color_model = -1);
// Draw a bitmap on the window
@@
-629,6
+633,8
@@
private:
int light1, light2, medium, dark1, dark2, bg_color;
// Type of window defined above
int window_type;
int light1, light2, medium, dark1, dark2, bg_color;
// Type of window defined above
int window_type;
+// keypress/pointer active grab
+ BC_WindowBase* active_grab;
// Pointer to the active menubar in the window.
BC_MenuBar* active_menubar;
// pointer to the active popup menu in the window
// Pointer to the active menubar in the window.
BC_MenuBar* active_menubar;
// pointer to the active popup menu in the window