fltk::MenuWindow Class Reference

Inherits fltk::Window.

Inherited by ColorMenu, fltk::ComboWindow, fltk::Tooltip, MenuTitle, and MWindow.

List of all members.

Public Member Functions

void clear_overlay ()
virtual void create ()
virtual void destroy ()
virtual void flush ()
 MenuWindow (int X, int Y, int W, int H, const char *l=0)
 MenuWindow (int W, int H, const char *l=0)
int overlay ()
void set_overlay ()

Static Public Attributes

static NamedStyledefault_style


Detailed Description

This is the window type used by Menu to make the pop-ups, and for tooltip popups. It will send special information to the window server to indicate that the windows are temporary, won't move, and should not have any decorations.

On X this turns on override_redirect and save-under and thus avoids the window manager.


Member Function Documentation

void MenuWindow::set_overlay (  )  [inline]

Undoes clear_overlay().

void MenuWindow::clear_overlay (  )  [inline]

Tells FLTK to not try to use the overlay hardware planes. This is disabled except on Irix. On Irix you will have to call this if you want to draw colored images in the popup.


Member Data Documentation

The default style sets box() to UP_BOX. This box is used around all popup menus.

Reimplemented from fltk::Window.

Reimplemented in fltk::Tooltip.


Wed Jun 17 08:45:39 2009. FLTK ©2007 Bill Spitzak and others.
Permission is granted to reproduce this manual or any portion for any purpose, provided this copyright and permission notice are preserved.