FLTK 1.3.11
Toggle main menu visibility
Loading...
Searching...
No Matches
Fl_Menu_Window.H
1
//
2
// "$Id$"
3
//
4
// Menu window header file for the Fast Light Tool Kit (FLTK).
5
//
6
// Copyright 1998-2010 by Bill Spitzak and others.
7
//
8
// This library is free software. Distribution and use rights are outlined in
9
// the file "COPYING" which should have been included with this file. If this
10
// file is missing or damaged, see the license at:
11
//
12
// http://www.fltk.org/COPYING.php
13
//
14
// Please report all bugs and problems on the following page:
15
//
16
// http://www.fltk.org/str.php
17
//
18
19
/* \file
20
Fl_Menu_Window widget . */
21
22
#ifndef Fl_Menu_Window_H
23
#define Fl_Menu_Window_H
24
25
#include "Fl_Single_Window.H"
26
33
class
FL_EXPORT
Fl_Menu_Window
:
public
Fl_Single_Window
{
34
public
:
35
void
show
();
36
void
erase
();
37
void
flush
();
38
void
hide
();
40
unsigned
int
overlay
() {
return
!(
flags
()&
NO_OVERLAY
);}
42
void
set_overlay
() {
clear_flag
(
NO_OVERLAY
);}
45
void
clear_overlay
() {
set_flag
(
NO_OVERLAY
);}
46
~Fl_Menu_Window
();
48
Fl_Menu_Window
(
int
W,
int
H,
const
char
*l = 0);
50
Fl_Menu_Window
(
int
X,
int
Y,
int
W,
int
H,
const
char
*l = 0);
51
};
52
53
#endif
54
55
//
56
// End of "$Id$".
57
//
Fl_Menu_Window
The Fl_Menu_Window widget is a window type used for menus.
Definition
Fl_Menu_Window.H:33
Fl_Menu_Window::Fl_Menu_Window
Fl_Menu_Window(int W, int H, const char *l=0)
Creates a new Fl_Menu_Window widget using the given size, and label string.
Definition
Fl_Menu_Window.cxx:101
Fl_Menu_Window::overlay
unsigned int overlay()
Tells if hardware overlay mode is set.
Definition
Fl_Menu_Window.H:40
Fl_Menu_Window::clear_overlay
void clear_overlay()
Tells FLTK to use normal drawing planes instead of overlay planes.
Definition
Fl_Menu_Window.H:45
Fl_Menu_Window::erase
void erase()
Erases the window, does nothing if HAVE_OVERLAY is not defined config.h.
Definition
Fl_Menu_Window.cxx:79
Fl_Menu_Window::set_overlay
void set_overlay()
Tells FLTK to use hardware overlay planes if they are available.
Definition
Fl_Menu_Window.H:42
Fl_Single_Window::flush
void flush()
Forces the window to be drawn, this window is also made current and calls draw().
Definition
Fl_Single_Window.cxx:34
Fl_Single_Window::Fl_Single_Window
Fl_Single_Window(int W, int H, const char *l=0)
Creates a new Fl_Single_Window widget using the given size, and label (title) string.
Definition
Fl_Single_Window.cxx:40
Fl_Single_Window::show
void show()
Puts the window on the screen.
Definition
Fl_Single_Window.cxx:28
Fl_Widget::flags
unsigned int flags() const
Gets the widget flags mask.
Definition
Fl_Widget.H:147
Fl_Widget::set_flag
void set_flag(unsigned int c)
Sets a flag in the flags mask.
Definition
Fl_Widget.H:149
Fl_Widget::NO_OVERLAY
@ NO_OVERLAY
window not using a hardware overlay plane (Fl_Menu_Window)
Definition
Fl_Widget.H:171
Fl_Widget::clear_flag
void clear_flag(unsigned int c)
Clears a flag in the flags mask.
Definition
Fl_Widget.H:151
Fl_Window::hide
virtual void hide()
Removes the window from the screen.
Definition
Fl.cxx:1575
FL
Fl_Menu_Window.H
Generated by
1.17.0