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();
void restore_xsettings_callback(void)
Definition: Window.h:138
Do not load anything except XSETTINGS code.
Definition: Window.h:35
const char *const * window_icon(void)
Definition: Window.h:150
int component(void)
Definition: Window.h:106
WindowXSettingsCallback * xsettings_callback(void)
Definition: Window.h:119
Call fl_register_images.
Definition: Window.h:37
Window class.
Definition: Window.h:73
Load above.
Definition: Window.h:38
void single_buffer(bool s)
Definition: Window.h:165
void * xsettings_callback_data(void)
Definition: Window.h:124
bool single_buffer(void)
Definition: Window.h:170
void pause_xsettings_callback(void)
Definition: Window.h:131
void window_icon(const char *const *pix)
Definition: Window.h:145
virtual void show(int argc, char **argv)
Definition: Window.h:160
virtual void hide(void)
Definition: Window.h:203
bool double_buffer(void)
Definition: Window.h:175
virtual void flush(void)
Definition: Window.h:181
virtual void resize(int X, int Y, int W, int H)
Definition: Window.h:192
Client part of XSETTINGS protocol.
Definition: XSettingsClient.h:109
void xsettings_callback(WindowXSettingsCallback cb, void *data=((void *) 0))
Definition: Window.h:114