25#include <FL/Fl_Bitmap.H>
28#define FL_DOUBLE_WINDOW 0xF1
31class Fl_Window_Driver;
57 friend class Fl_Window_Driver;
59 static char *default_xclass_;
60 static char show_next_window_iconic_;
66 int fullscreen_screen_top;
67 int fullscreen_screen_bottom;
68 int fullscreen_screen_left;
69 int fullscreen_screen_right;
75 Fl_Window_Driver *pWindowDriver;
77 const char* iconlabel_;
81 int minw_, minh_, maxw_, maxh_;
82 int dw_, dh_, aspect_;
83 uchar size_range_set_;
94 void is_maximized_(
bool b);
102 virtual
void flush();
112 void force_position(
int force) {
113 if (force)
set_flag(FORCE_POSITION);
128 void default_size_range();
161 Fl_Window(
int w,
int h,
const char *title = 0);
184 Fl_Window(
int x,
int y,
int w,
int h,
const char *title = 0);
336 void hotspot(
int x,
int y,
int offscreen = 0);
338 void hotspot(
const Fl_Widget*,
int offscreen = 0);
352 void size_range(
int minw,
int minh,
int maxw=0,
int maxh=0,
int dw=0,
int dh=0,
int aspect=0);
354 uchar get_size_range(
int *minw,
int *minh,
int *maxw=NULL,
int *maxh=NULL,
int *dw=NULL,
int *dh=NULL,
int *aspect=NULL);
361 void label(
const char*);
363 void iconlabel(
const char*);
365 void label(
const char* label,
const char* iconlabel);
368 static void default_xclass(
const char*);
369 static const char *default_xclass();
370 const char* xclass()
const;
371 void xclass(
const char* c);
378#if defined(_WIN32) || defined(FL_DOXYGEN)
379 typedef struct HICON__* HICON;
412 void icons(HICON big_icon, HICON small_icon);
416 const void* icon()
const;
417 void icon(
const void * ic);
477 void show(
int argc,
char **argv);
480 void wait_for_expose();
497 void fullscreen_off();
502 void fullscreen_off(
int X,
int Y,
int W,
int H);
517 void fullscreen_screens(
int top,
int bottom,
int left,
int right);
571 int decorated_w()
const;
586 int decorated_h()
const;
619 show_next_window_iconic_ = stat ? 1 : 0;
630 return show_next_window_iconic_;
Fl_Cursor
The following constants define the mouse cursors that are available in FLTK.
Definition: Enumerations.H:1274
unsigned int Fl_Color
An FLTK color value; see also Colors
Definition: Enumerations.H:1111
Fl_Group and Fl_End classes.
The Fl_Double_Window provides a double-buffered window.
Definition: Fl_Double_Window.H:31
The Fl_Group class is the FLTK container widget.
Definition: Fl_Group.H:56
int handle(int) FL_OVERRIDE
Handles the specified event.
Definition: Fl_Group.cxx:145
void resize(int, int, int, int) FL_OVERRIDE
Resizes the Fl_Group widget and all of its children.
Definition: Fl_Group.cxx:825
void draw() FL_OVERRIDE
Draws the widget.
Definition: Fl_Group.cxx:943
static Fl_Group * current()
Returns the currently active group.
Definition: Fl_Group.cxx:82
Base class for image caching, scaling and drawing.
Definition: Fl_Image.H:60
This window provides double buffering and also the ability to draw the "overlay" which is another pic...
Definition: Fl_Overlay_Window.H:36
The Fl_RGB_Image class supports caching and drawing of full-color images with 1 to 4 channels of colo...
Definition: Fl_Image.H:339
This widget produces an actual window.
Definition: Fl_Window.H:55
int force_position() const
Returns the internal state of the window's FORCE_POSITION flag.
Definition: Fl_Window.H:124
static void default_icons(HICON big_icon, HICON small_icon)
Sets the default window icons (Windows platform only).
unsigned int maximize_active() const
Returns whether the window is currently maximized.
Definition: Fl_Window.H:522
void free_position()
Undoes the effect of a previous resize() or show() so that the next time show() is called the window ...
Definition: Fl_Window.H:350
void set_menu_window()
Marks the window as a menu window.
Definition: Fl_Window.H:303
int screen_num()
The number of the screen containing the mapped window.
Definition: Fl_Window.cxx:872
void allow_expand_outside_parent()
Allow this subwindow to expand outside the area of its parent window.
Definition: Fl_Window.cxx:986
static bool is_a_rescale()
Returns true when a window is being rescaled.
Definition: Fl_Window.cxx:941
const char * iconlabel() const
See void Fl_Window::iconlabel(const char*)
Definition: Fl_Window.H:359
void clear_modal_states()
Clears the "modal" flags and converts a "modal" or "non-modal" window back into a "normal" window.
Definition: Fl_Window.H:288
unsigned int non_modal() const
Returns true if this window is modal or non-modal.
Definition: Fl_Window.H:249
unsigned int menu_window() const
Returns true if this window is a menu window.
Definition: Fl_Window.H:306
void hotspot(const Fl_Widget &p, int offscreen=0)
See void Fl_Window::hotspot(int x, int y, int offscreen = 0)
Definition: Fl_Window.H:340
virtual class Fl_Overlay_Window * as_overlay_window()
Return non-null if this is an Fl_Overlay_Window object.
Definition: Fl_Window.H:595
void icons(HICON big_icon, HICON small_icon)
Sets the window icons using HICON handles (Windows platform only).
void set_override()
Activates the flags NOBORDER|OVERRIDE.
Definition: Fl_Window.H:227
static char show_next_window_iconic()
Returns the static flag whether the next window should be opened iconified.
Definition: Fl_Window.H:629
virtual class Fl_Double_Window * as_double_window()
Return non-null if this is an Fl_Double_Window object.
Definition: Fl_Window.H:600
unsigned int modal() const
Returns true if this window is modal.
Definition: Fl_Window.H:240
const Fl_Image * shape()
Returns the image controlling the window shape or NULL.
Definition: Fl_Window.cxx:938
unsigned int border() const
Returns whether the window possesses a border.
Definition: Fl_Window.H:225
int shown()
Returns non-zero if show() has been called (but not hide() ).
Definition: Fl_Window.H:424
Fl_Window * as_window() FL_OVERRIDE
Returns an Fl_Window pointer if this widget is an Fl_Window.
Definition: Fl_Window.H:589
void set_non_modal()
A "non-modal" window (terminology borrowed from Microsoft Windows) acts like a modal() one in that it...
Definition: Fl_Window.H:247
void clear_border()
Fast inline function to turn the window manager border off.
Definition: Fl_Window.H:223
fl_uintptr_t os_id()
Returns a platform-specific identification of a shown window, or 0 if not shown.
Definition: Fl_Window.cxx:950
static Fl_Window * current_
Stores the last window that was made current.
Definition: Fl_Window.H:99
void set_modal()
A "modal" window, when shown(), will prevent any events from being delivered to other windows in the ...
Definition: Fl_Window.H:238
static void show_next_window_iconic(char stat)
Sets a static flag whether the next window should be opened iconified.
Definition: Fl_Window.H:618
void set_tooltip_window()
Marks the window as a tooltip window.
Definition: Fl_Window.H:324
const char * label() const
See void Fl_Window::label(const char*)
Definition: Fl_Window.H:357
unsigned int tooltip_window() const
Returns true if this window is a tooltip window.
Definition: Fl_Window.H:327
#define FL_OVERRIDE
This macro makes it safe to use the C++11 keyword override with older compilers.
Definition: fl_attr.h:46
unsigned char uchar
unsigned char
Definition: fl_types.h:30