The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

FLTK::MenuWindow - Temporary, unmovable popup window

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.

Functions

clear_overlay

$menuwindow->clear_overlay( );

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.

default_style

my $style = $menuwindow->default_style( );

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

$menuwindow->default_style( $style );

Set the style.

new

my $self = $menuwindow->new( $x, $y, $w, $h, $label );
my $self = $menuwindow->new( $w, $h, $label );

overlay

my $can_haz_overlay = $menuwindow->overlay( );

set_overlay

$menuwindow->set_overlay( );

Undoes clear_overlay().

Author

Sanko Robinson <sanko@cpan.org> - http://sankorobinson.com/

License and Legal

Copyright (C) 2008-2010 by Sanko Robinson <sanko@cpan.org>

This program is free software; you can redistribute it and/or modify it under the terms of The Artistic License 2.0. See the LICENSE file included with this distribution or notes on the Artistic License 2.0 for clarification.

When separated from the distribution, all original POD documentation is covered by the Creative Commons Attribution-Share Alike 3.0 License. See the clarification of the CCA-SA3.0.