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)
42typedef bool (WindowXSettingsCallback)(
const char* name, XSettingsAction action,
43 const XSettingsSetting* setting,
void* data);
73class 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);
91 Window(
int X,
int Y,
int W,
int H,
const char* l = 0,
int component = WIN_INIT_ALL);
96 Window(
int W,
int H,
const char* l = 0,
int component = WIN_INIT_ALL);
114 void xsettings_callback(WindowXSettingsCallback cb,
void* data = NULL) { xs_cb = cb; xs_cb_data = data; }
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();
Window class.
Definition Window.h:73
virtual void flush(void)
Definition Window.h:181
void restore_xsettings_callback(void)
Definition Window.h:138
void window_icon(const char *const *pix)
Definition Window.h:145
bool double_buffer(void)
Definition Window.h:175
void pause_xsettings_callback(void)
Definition Window.h:131
virtual void show(int argc, char **argv)
Definition Window.h:160
Window(int X, int Y, int W, int H, const char *l=0, int component=WIN_INIT_ALL)
virtual void hide(void)
Definition Window.h:203
void single_buffer(bool s)
Definition Window.h:165
WindowXSettingsCallback * xsettings_callback(void)
Definition Window.h:119
bool single_buffer(void)
Definition Window.h:170
void xsettings_callback(WindowXSettingsCallback cb, void *data=((void *) 0))
Definition Window.h:114
void * xsettings_callback_data(void)
Definition Window.h:124
int component(void)
Definition Window.h:106
const char *const * window_icon(void)
Definition Window.h:150
virtual void resize(int X, int Y, int W, int H)
Definition Window.h:192
Window(int W, int H, const char *l=0, int component=WIN_INIT_ALL)
Client part of XSETTINGS protocol.
Definition XSettingsClient.h:109
@ WIN_INIT_NONE
Do not load anything except XSETTINGS code.
Definition Window.h:35
@ WIN_INIT_IMAGES
Call fl_register_images.
Definition Window.h:37