FLTK 1.4.5: Fl_Single_Window.H Source File

FLTK 1.4.5

Loading...
Searching...
No Matches
Fl_Single_Window.H
1//
2// Single-buffered window header file for the Fast Light Tool Kit (FLTK).
3//
4// Copyright 1998-2024 by Bill Spitzak and others.
5//
6// This library is free software. Distribution and use rights are outlined in
7// the file "COPYING" which should have been included with this file. If this
8// file is missing or damaged, see the license at:
9//
10// https://www.fltk.org/COPYING.php
11//
12// Please see the following page on how to report bugs and issues:
13//
14// https://www.fltk.org/bugs.php
15//
16
17/* \file
18 Fl_Single_Window class . */
19
20#ifndef Fl_Single_Window_H
21#define Fl_Single_Window_H
22
23#include "Fl_Window.H"
24
32 class FL_EXPORT Fl_Single_Window : public Fl_Window {
33public:
34 void show() FL_OVERRIDE;
36 void show(int argc, char **argv) { Fl_Window::show(argc, argv);}
37
42 Fl_Single_Window(int W, int H, const char *l=0);
43
48 Fl_Single_Window(int X, int Y, int W, int H, const char *l=0);
49
53 void make_current() { Fl_Window::make_current(); }
54
58 void flush() FL_OVERRIDE { Fl_Window::flush(); }
59};
60
61#endif
Fl_Window.H
Fl_Window widget .
Fl_Single_Window
This is the same as Fl_Window.
Definition Fl_Single_Window.H:32
Fl_Single_Window::flush
void flush() FL_OVERRIDE
Same as Fl_Window::flush().
Definition Fl_Single_Window.H:58
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:32
Fl_Single_Window::make_current
void make_current()
Same as Fl_Window::make_current().
Definition Fl_Single_Window.H:53
Fl_Single_Window::show
void show(int argc, char **argv)
Same as Fl_Window::show(int argc, char **argv).
Definition Fl_Single_Window.H:36
Fl_Window::flush
virtual void flush()
Forces the window to be drawn, this window is also made current and calls draw().
Definition Fl_Window.cxx:484
Fl_Window::make_current
void make_current()
Sets things up so that the drawing functions in <FL/fl_draw.H> will go into this window.
Definition Fl_Window.cxx:537
Fl_Window::show
void show() FL_OVERRIDE
Puts the window on the screen.
Definition Fl_Window.cxx:549
FL_OVERRIDE
#define FL_OVERRIDE
This macro makes it safe to use the C++11 keyword override with older compilers.
Definition fl_attr.h:46