21 #ifndef __EDELIB_WINDOW_H__
22 #define __EDELIB_WINDOW_H__
24 #include "XSettingsClient.h"
25 #include <FL/Fl_Double_Window.H>
36 WIN_INIT_ICON_THEME = (1 << 2),
38 WIN_INIT_ALL = (WIN_INIT_ICON_THEME | WIN_INIT_IMAGES)
42 typedef bool (WindowXSettingsCallback)(
const char* name, XSettingsAction action,
43 const XSettingsSetting* setting,
void* data);
73 class EDELIB_API
Window :
public Fl_Double_Window {
76 int loaded_components;
80 WindowXSettingsCallback* xs_cb;
81 WindowXSettingsCallback* xs_cb_old;
84 const char*
const* icon_pixmap;
86 void init(
int component);
114 void xsettings_callback(WindowXSettingsCallback cb,
void* data = NULL) { xs_cb = cb; xs_cb_data = data; }
155 virtual void show(
void);
160 virtual void show(
int argc,
char** argv) { Fl_Window::show(argc, argv); }
183 Fl_Double_Window::flush();
192 virtual void resize(
int X,
int Y,
int W,
int H) {
194 Fl_Double_Window::resize(X, Y, W, H);
196 Fl_Window::resize(X, Y, W, H);
205 Fl_Double_Window::hide();