Forgot something...

This commit is contained in:
Ben Anderson
2005-03-16 02:37:02 +00:00
parent f1d3a2395d
commit 42bcdcab4b
+7 -7
View File
@@ -15,19 +15,19 @@ namespace X11Helper
// internal session-tracking stuff (so you should call this anyway). // internal session-tracking stuff (so you should call this anyway).
bool Go(); bool Go();
// Get the current Display (connection). Behavior is undefined if you // The current Display (connection). Initialized by the first call to
// didn't call Go() with a successful result first. // Go().
Display *Dpy(); extern Display *Dpy;
// Get the current open window. Behavior is undefined if we didn't make // Get the current open window. Initialized by the first call to
// a window yet. // MakeWindow().
Window& Win(); extern Window Win;
// (Re)create the window on the screen of this number with this depth, // (Re)create the window on the screen of this number with this depth,
// this visual type, this width (optional -- you can resize the window // this visual type, this width (optional -- you can resize the window
// in your callback later), and this height (optional). // in your callback later), and this height (optional).
bool MakeWindow(int screenNum, int depth, Visual *visual, bool MakeWindow(int screenNum, int depth, Visual *visual,
int width=64, int height=64); int width=32, int height=32);
// Unmask one X event type mask thingy (XSelectInput() arg 3) on the // Unmask one X event type mask thingy (XSelectInput() arg 3) on the
// current window. Masked/unmasked events will carry between windows. // current window. Masked/unmasked events will carry between windows.