1
by Tommi Virtanen
Import upstream version 1.00 |
1 |
// FrameWindow.H
|
2 |
||
3 |
// X does not echo back the window-map events (it probably should when
|
|
4 |
// override_redirect is off). Unfortunately this means you have to use
|
|
5 |
// this subclass if you want a "normal" fltk window, it will force a
|
|
6 |
// Frame to be created and destroy it upon hide.
|
|
7 |
||
8 |
// Warning: modal() does not work! Don't turn it on as it screws up the
|
|
9 |
// interface with the window borders. You can use set_non_modal() to
|
|
10 |
// disable the iconize box but the window manager must be written to
|
|
11 |
// not be modal.
|
|
12 |
||
13 |
#ifndef FrameWindow_H
|
|
14 |
#define FrameWindow_H
|
|
15 |
||
16 |
#include <FL/Fl_Window.H> |
|
17 |
class Frame; |
|
18 |
||
19 |
class FrameWindow : public Fl_Window { |
|
20 |
Frame* frame; |
|
21 |
public: |
|
22 |
void hide(); |
|
23 |
void show(); |
|
24 |
int handle(int); |
|
25 |
FrameWindow(int X, int Y, int W, int H, const char* L = 0) : |
|
26 |
Fl_Window(X,Y,W,H,L) {} |
|
27 |
FrameWindow(int W, int H, const char* L = 0) : |
|
28 |
Fl_Window(W,H,L) {} |
|
29 |
};
|
|
30 |
||
31 |
#endif
|