From fd86dad21e270305553b3c74bd68c5b58f55cb69 Mon Sep 17 00:00:00 2001 From: Bill Spitzak Date: Wed, 3 Feb 1999 08:54:17 +0000 Subject: Fixed documentation for Fl::grab() git-svn-id: file:///fltk/svn/fltk/trunk@269 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- documentation/functions.html | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'documentation/functions.html') diff --git a/documentation/functions.html b/documentation/functions.html index ba205236d..257aae1db 100644 --- a/documentation/functions.html +++ b/documentation/functions.html @@ -556,22 +556,24 @@ call this so your X windows use the same visual as an See Fl_Gl_Window for a list of additional values for the argument.

-

static void Fl::grab(Fl_Window&) +

static void Fl::grab(Fl_Window*)
static Fl_Window* Fl::grab()

- This is used when pop-up menu systems are active. Send all events to -the passed window no matter where the pointer or focus is (including in -other programs). The window does not have to be shown() -, this lets the handle() method of a "dummy" window override -all event handling and allows you to map and unmap a complex set of -windows (under both X and WIN32 some window must be mapped -because the system interface needs a window id). -

Fl::event_x() and Fl::event_y() are undefined if the -passed widget is not a mapped Fl_Window. Use -Fl::event_x_root() and Fl::event_y_root() instead.

+ + This is used when pop-up menu systems are active. Send all events to +the passed window no matter where the pointer or focus is (including +in other programs). The window does not have to be +shown() , this lets the handle() method of a +"dummy" window override all event handling and allows you to +map and unmap a complex set of windows (under both X and WIN32 +some window must be mapped because the system interface needs a +window id). +

If grab() is on it will also affect show() of windows by +doing system-specific operations (on X it turns on +override-redirect). These are designed to make menus popup reliably +and faster on the system. +

To turn off grabbing do Fl::grab(0).

Be careful that your program does not enter an infinite loop while grab() is on. On X this will lock up your screen!

-

The second function returns the current grab window, or NULL - if none.

static int Fl::h()

Returns the height of the screen in pixels.

static int Fl::handle(int, Fl_Window *)

@@ -639,8 +641,6 @@ while (!calculation_done()) {

static void Fl::redraw()

Redraws all widgets. -

static void Fl::release()

- Turn off the grab() behavior.

static void Fl::remove_idle(void (*cb)(void *), void *= 0)

Removes the specified idle callback. -- cgit v1.2.3