29#include <FL/Fl_Widget.H>
30#include <sptk5/xdoc/Node.h>
100 int m_lastPreferredW {0};
105 int m_lastPreferredH {0};
172 return m_layoutAlign;
207 m_widget->label(m_label.c_str());
270 bool rc = preferredSize(w, h);
271 m_lastPreferredW = w;
272 m_lastPreferredH = h;
309 virtual void load(
const std::shared_ptr<xdoc::Node>& node)
Definition: CLayoutClient.h:82
void name(const String &aname)
Definition: CLayoutClient.h:233
virtual void load(const xdoc::SNode &node, CLayoutXMLmode xmlMode)
void lastPreferredW(int width)
String m_name
Definition: CLayoutClient.h:138
int lastPreferredW() const
int layoutSize() const
Definition: CLayoutClient.h:187
CLayoutClient(Fl_Widget *widget, int layoutSize, CLayoutAlign ca)
void layoutAlign(CLayoutAlign al)
Definition: CLayoutClient.h:179
Fl_Widget * widget() const
Definition: CLayoutClient.h:287
virtual const String & label() const
Definition: CLayoutClient.h:213
virtual bool preferredSize(int &w, int &h)
Definition: CLayoutClient.h:256
const String & name() const
Definition: CLayoutClient.h:241
virtual void load(const std::shared_ptr< xdoc::Node > &node)
Definition: CLayoutClient.h:309
String m_label
Definition: CLayoutClient.h:143
CLayoutAlign layoutAlign() const
Definition: CLayoutClient.h:170
virtual void save(const std::shared_ptr< xdoc::Node > &node, CLayoutXMLmode xmlMode) const
Fl_Widget * m_widget
Definition: CLayoutClient.h:133
int lastPreferredH() const
void lastPreferredH(int height)
virtual ~CLayoutClient()
Definition: CLayoutClient.h:162
void name(const char *aname)
Definition: CLayoutClient.h:223
void layoutSize(int ls)
Definition: CLayoutClient.h:195
virtual bool computeSize(int &w, int &h)
Definition: CLayoutClient.h:268
CLayoutAlign m_layoutAlign
Definition: CLayoutClient.h:148
virtual String className() const
Definition: CLayoutClient.h:279
virtual void label(const String &l)
Definition: CLayoutClient.h:204
Layout Manager.
Definition: CLayoutManager.h:103
CLayoutAlign
Definition: CLayoutClient.h:44
CLayoutXMLmode
Definition: CLayoutClient.h:57
@ BOTTOM
Align to the top.
@ RIGHT
Align to the left.
@ LEFT
Do not use allignment.
@ CLIENT
Align to the bottom.