34#define FL_DOUBLE_WINDOW 0xF1
57class FL_EXPORT Fl_Window :
public Fl_Group {
59 static char *default_xclass_;
63#if FLTK_ABI_VERSION < 10301
67#if FLTK_ABI_VERSION < 10301
71#if FLTK_ABI_VERSION < 10301
75#if FLTK_ABI_VERSION < 10301
79#if FLTK_ABI_VERSION < 10303
82 int fullscreen_screen_top;
83#if FLTK_ABI_VERSION < 10303
86 int fullscreen_screen_bottom;
87#if FLTK_ABI_VERSION < 10303
90 int fullscreen_screen_left;
91#if FLTK_ABI_VERSION < 10303
94 int fullscreen_screen_right;
100 const void *legacy_icon;
109 const char* iconlabel_;
111 struct icon_data *icon_;
113 int minw, minh, maxw, maxh;
115 uchar size_range_set;
118#if FLTK_ABI_VERSION < 10303
129#if defined(__APPLE__)
130 typedef struct CGImage* CGImageRef;
136#if FLTK_ABI_VERSION < 10303 && !defined(FL_DOXYGEN)
142 void shape_alpha_(
Fl_Image* img,
int offset);
143 void shape_pixmap_(
Fl_Image* pixmap);
150#if ! (defined(WIN32) || defined(__APPLE__) || defined(FL_DOXYGEN))
151 void combine_mask(
void);
159 void fullscreen_off_x(
int X,
int Y,
int W,
int H);
160 void fullscreen_screens_x(
bool on_off)
168 Fl_Window(
const Fl_Window&);
169 Fl_Window& operator=(
const Fl_Window&);
177 virtual void flush();
233 Fl_Window(
int w,
int h,
const char* title= 0);
238 Fl_Window(
int x,
int y,
int w,
int h,
const char* title = 0);
267 virtual void resize(
int X,
int Y,
int W,
int H);
393 void hotspot(
int x,
int y,
int offscreen = 0);
395 void hotspot(
const Fl_Widget*,
int offscreen = 0);
444 void size_range(
int minw,
int minh,
int maxw=0,
int maxh=0,
int dw=0,
int dh=0,
int aspect=0) {
451 this->aspect = aspect;
460 void label(
const char*);
462 void iconlabel(
const char*);
469 const char*
xclass()
const;
470 void xclass(
const char* c);
479 void icons(HICON big_icon, HICON small_icon);
483 const void*
icon()
const;
484 void icon(
const void * ic);
544 void show(
int argc,
char **argv);
584 void fullscreen_screens(
int top,
int bottom,
int left,
int right);
Fl_Cursor
The following constants define the mouse cursors that are available in FLTK.
Definition Enumerations.H:1055
unsigned int Fl_Color
An FLTK color value; see also Colors.
Definition Enumerations.H:941
The Fl_Bitmap class supports caching and drawing of mono-color (bitmap) images.
Definition Fl_Bitmap.H:33
int handle(int)
Handles the specified event.
Definition Fl_Group.cxx:147
void draw()
Draws the widget.
Definition Fl_Group.cxx:738
static Fl_Group * current()
Returns the currently active group.
Definition Fl_Group.cxx:84
Base class for image caching and drawing.
Definition Fl_Image.H:55
The Fl_RGB_Image class supports caching and drawing of full-color images with 1 to 4 channels of colo...
Definition Fl_Image.H:202
This widget produces an actual window.
Definition Fl_Window.H:57
shape_data_type * shape_data_
non-null means the window has a non-rectangular shape
Definition Fl_Window.H:139
int force_position() const
Returns the internal state of the window's FORCE_POSITION flag.
Definition Fl_Window.H:199
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:407
unsigned int fullscreen_active() const
Returns non zero if FULLSCREEN flag is set, 0 otherwise.
Definition Fl_Window.H:573
void icons(const Fl_RGB_Image *[], int)
Sets the window icons.
Definition Fl_Window.cxx:380
void force_position(int force)
Sets an internal flag that tells FLTK and the window manager to honor position requests.
Definition Fl_Window.H:187
int decorated_h()
Returns the window height including any window title bar and any frame added by the window manager.
void set_menu_window()
Marks the window as a menu window.
Definition Fl_Window.H:360
virtual void flush()
Forces the window to be drawn, this window is also made current and calls draw().
Definition Fl.cxx:1945
const char * iconlabel() const
See void Fl_Window::iconlabel(const char*)
Definition Fl_Window.H:458
void icon(const Fl_RGB_Image *)
Sets or resets a single window icon.
Definition Fl_Window.cxx:352
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:345
const char * xclass() const
Returns the xclass for this window, or a default.
Definition Fl_Window.cxx:287
unsigned int non_modal() const
Returns true if this window is modal or non-modal.
Definition Fl_Window.H:306
void make_current()
Sets things up so that the drawing functions in <FL/fl_draw.H> will go into this window.
unsigned int menu_window() const
Returns true if this window is a menu window.
Definition Fl_Window.H:363
void border(int b)
Sets whether or not the window manager border is around the window.
Definition Fl_Window_fullscreen.cxx:48
void shape(const Fl_Image &b)
Set the window's shape with an Fl_Image.
Definition Fl_Window.H:149
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:397
void label(const char *label, const char *iconlabel)
Sets the icon label.
int decorated_w()
Returns the window width including any frame added by the window manager.
virtual Fl_Window * as_window()
Returns an Fl_Window pointer if this widget is an Fl_Window.
Definition Fl_Window.H:618
static Fl_Window * current_
Stores the last window that was made current.
Definition Fl_Window.H:174
void set_override()
Activates the flags NOBORDER|FL_OVERRIDE.
Definition Fl_Window.H:284
virtual void show()
Puts the window on the screen.
unsigned int modal() const
Returns true if this window is modal.
Definition Fl_Window.H:297
unsigned int border() const
See void Fl_Window::border(int)
Definition Fl_Window.H:282
int shown()
Returns non-zero if show() has been called (but not hide() ).
Definition Fl_Window.H:491
void size_range(int minw, int minh, int maxw=0, int maxh=0, int dw=0, int dh=0, int aspect=0)
Sets the allowable range the user can resize this window to.
Definition Fl_Window.H:444
static void default_xclass(const char *)
Sets the default window xclass.
Definition Fl_Window.cxx:233
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:304
static void default_icon(const Fl_RGB_Image *)
Sets a single default window icon.
Definition Fl_Window.cxx:306
void wait_for_expose()
Waits for the window to be displayed after calling show().
Definition Fl_Window.cxx:501
void clear_border()
Fast inline function to turn the window manager border off.
Definition Fl_Window.H:280
static void default_icons(const Fl_RGB_Image *[], int)
Sets the default window icons.
Definition Fl_Window.cxx:331
void fullscreen()
Makes the window completely fill one or more screens, without any window manager border visible.
Definition Fl_Window_fullscreen.cxx:75
void fullscreen_off()
Turns off any side effects of fullscreen()
Definition Fl_Window_fullscreen.cxx:96
virtual void resize(int X, int Y, int W, int H)
Changes the size and position of the window.
void set_modal()
A "modal" window, when shown(), will prevent any events from being delivered to other windows in the ...
Definition Fl_Window.H:295
void shape(const Fl_Image *img)
Assigns a non-rectangular shape to the window.
Definition Fl_Window_shape.cxx:319
void set_tooltip_window()
Marks the window as a tooltip window.
Definition Fl_Window.H:381
const char * label() const
See void Fl_Window::label(const char*)
Definition Fl_Window.H:456
unsigned int tooltip_window() const
Returns true if this window is a tooltip window.
Definition Fl_Window.H:384
unsigned char uchar
unsigned char
Definition fl_types.h:30
Data supporting a non-rectangular window shape.
Definition Fl_Window.H:125
int lh_
height of shape image
Definition Fl_Window.H:127
Fl_Bitmap * todelete_
auxiliary bitmap image
Definition Fl_Window.H:133
Fl_Image * shape_
shape image
Definition Fl_Window.H:128
int lw_
width of shape image
Definition Fl_Window.H:126