37#define FL_DOUBLE_WINDOW 0xF1
58class FL_EXPORT Fl_Window :
public Fl_Group {
60 static char *default_xclass_;
66 const char* iconlabel_;
70 int minw, minh, maxw, maxh;
80 Fl_Window(
const Fl_Window&);
81 Fl_Window& operator=(
const Fl_Window&);
143 Fl_Window(
int w,
int h,
const char* title= 0);
148 Fl_Window(
int x,
int y,
int w,
int h,
const char* title = 0);
264 void hotspot(
int x,
int y,
int offscreen = 0);
266 void hotspot(
const Fl_Widget*,
int offscreen = 0);
315 void size_range(
int a,
int b,
int c=0,
int d=0,
int e=0,
int f=0,
int g=0) {
316 minw=a; minh=b; maxw=c; maxh=d; dw=e; dh=f; aspect=g; size_range_();}
323 void label(
const char*);
325 void iconlabel(
const char*);
332 const char*
xclass()
const;
333 void xclass(
const char* c);
334 const void*
icon()
const;
335 void icon(
const void * ic);
384 void show(
int argc,
char **argv);
Fl_Cursor
The following constants define the mouse cursors that are available in FLTK.
Definition Enumerations.H:879
unsigned int Fl_Color
an FLTK color value
Definition Enumerations.H:764
int handle(int)
Handles the specified event.
Definition Fl_Group.cxx:150
void draw()
Draws the widget.
Definition Fl_Group.cxx:742
static Fl_Group * current()
Returns the currently active group.
Definition Fl_Group.cxx:89
This widget produces an actual window.
Definition Fl_Window.H:58
int y_root() const
Gets the y position of the window on the screen.
Definition Fl_Window.cxx:98
int force_position() const
Returns the internal state of the window's FORCE_POSITION flag.
Definition Fl_Window.H:111
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:278
int x_root() const
Gets the x position of the window on the screen.
Definition Fl_Window.cxx:92
void force_position(int force)
Sets an internal flag that tells FLTK and the window manager to honor position requests.
Definition Fl_Window.H:99
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:231
virtual void flush()
Forces the window to be drawn, this window is also made current and calls draw().
Definition Fl.cxx:1751
const char * iconlabel() const
See void Fl_Window::iconlabel(const char*)
Definition Fl_Window.H:321
void iconize()
Iconifies the window.
Definition Fl_Window_iconize.cxx:32
void fullscreen_off(int, int, int, int)
Turns off any side effects of fullscreen() and does resize(x,y,w,h).
Definition Fl_Window_fullscreen.cxx:88
const void * icon() const
Gets the current icon window target dependent data.
Definition Fl_Window.cxx:277
const char * xclass() const
Returns the xclass for this window, or a default.
Definition Fl_Window.cxx:267
unsigned int non_modal() const
Returns true if this window is modal or non-modal.
Definition Fl_Window.H:216
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:234
void border(int b)
Sets whether or not the window manager border is around the window.
Definition Fl_Window_fullscreen.cxx:43
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:268
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:429
static Fl_Window * current_
Stores the last window that was made current.
Definition Fl_Window.H:86
void set_override()
Activates the flags NOBORDER|FL_OVERRIDE.
Definition Fl_Window.H:194
virtual void show()
Puts the window on the screen.
unsigned int modal() const
Returns true if this window is modal.
Definition Fl_Window.H:207
void size_range(int a, int b, int c=0, int d=0, int e=0, int f=0, int g=0)
Sets the allowable range the user can resize this window to.
Definition Fl_Window.H:315
unsigned int border() const
See void Fl_Window::border(int)
Definition Fl_Window.H:192
static void default_xclass(const char *)
Sets the default window xclass.
Definition Fl_Window.cxx:213
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:214
void clear_border()
Fast inline function to turn the window manager border off.
Definition Fl_Window.H:190
void fullscreen()
Makes the window completely fill the screen, without any window manager border visible.
Definition Fl_Window_fullscreen.cxx:63
void set_modal()
A "modal" window, when shown(), will prevent any events from being delivered to other windows in the ...
Definition Fl_Window.H:205
void set_tooltip_window()
Marks the window as a tooltip window.
Definition Fl_Window.H:252
const char * label() const
See void Fl_Window::label(const char*)
Definition Fl_Window.H:319
int shown() const
Returns non-zero if show() has been called (but not hide() ).
Definition Fl_Window.H:342
unsigned int tooltip_window() const
Returns true if this window is a tooltip window.
Definition Fl_Window.H:255
virtual void resize(int, int, int, int)
Changes the size and position of the window.
unsigned char uchar
unsigned char
Definition fl_types.h:39