34#include <FL/Fl_Double_Window.H>
35#include <sptk5/Strings.h>
36#include <sptk5/cutils>
37#include <sptk5/gui/CLayoutManager.h>
38#include <sptk5/gui/CWindowShape.h>
54 :
public Fl_Double_Window
65 CWindow(
int w,
int h,
const char* label = 0L)
66 : Fl_Double_Window(w, h, label)
80 CWindow(
int x,
int y,
int w,
int h,
const char* label = 0L)
81 : Fl_Double_Window(x, y, w, h)
97 Fl_Double_Window::show();
105 void show(
int argc,
char* argv[])
107 Fl_Double_Window::show(argc, argv);
120 resize(x(), y(), w(), h());
128 Fl_Double_Window::clear();
138 void resize(
int x,
int y,
int w,
int h)
override;
168 void load(
const std::shared_ptr<xdoc::Node>& node)
override
186 virtual void save(
const xdoc::SNode& node)
const
virtual const String & label() const
Definition: CLayoutClient.h:213
Layout Manager.
Definition: CLayoutManager.h:103
Window non-rectangular shape support.
Definition: CWindowShape.h:50
Window widget.
Definition: CWindow.h:57
const String & label() const override
Returns the current label.
Definition: CWindow.h:208
void savePosition(const xdoc::SNode &node) const
Saves the window position into XML node.
void show() override
Custom show method.
Definition: CWindow.h:95
virtual void relayout()
Relayouts window's widgets that have CLayoutClient interface.
Definition: CWindow.h:118
CWindow(int x, int y, int w, int h, const char *label=0L)
Constructor.
Definition: CWindow.h:80
void show(int argc, char *argv[])
Custom show method.
Definition: CWindow.h:105
String className() const override
Returns widget class name (internal SPTK RTTI).
Definition: CWindow.h:218
void load(const std::shared_ptr< xdoc::Node > &node, CLayoutXMLmode xmlMode) override
Loads window coordinates and widgets from XML node.
void loadPosition(const xdoc::SNode &node)
Loads the window position from XML node.
void draw() override
Draws a window, including an optional background image.
CWindow(int w, int h, const char *label=0L)
Constructor.
Definition: CWindow.h:65
virtual void save(const xdoc::SNode &node) const
Saves window coordinates and widgets into XML node.
Definition: CWindow.h:186
void save(const std::shared_ptr< xdoc::Node > &node, CLayoutXMLmode xmlMode) const override
Saves window coordinates and widgets into XML node.
bool preferredSize(int &w, int &h) override
Computes the optimal window size.
int handle(int event) override
Custom window events handle.
void resize(int x, int y, int w, int h) override
Resizes the window and inside widgets.
void load(const std::shared_ptr< xdoc::Node > &node) override
Loads window coordinates and widgets from XML node.
Definition: CWindow.h:168
void clear() override
Removes all the widgets inside the window.
Definition: CWindow.h:126
void hide() override
Custom hide method.
CLayoutAlign
Definition: CLayoutClient.h:44
CLayoutXMLmode
Definition: CLayoutClient.h:57