nux-1.16.0
|
#include <Nux/GroupBox.h>
Public Member Functions | |
GroupBox (const TCHAR *Caption=TEXT(""), NUX_FILE_LINE_PROTO) | |
virtual long | ProcessEvent (IEvent &ievent, long TraverseInfo, long ProcessEventInfo) |
virtual void | Draw (GraphicsEngine &GfxContext, bool force_draw) |
virtual void | DrawContent (GraphicsEngine &GfxContext, bool force_draw) |
virtual void | PostDraw (GraphicsEngine &GfxContext, bool force_draw) |
virtual bool | SetLayout (Layout *layout) |
Set the default layout for this view. | |
void | SetCaption (const TCHAR *Caption) |
Protected Member Functions | |
virtual bool | AcceptKeyNavFocus () |
A stretch factor of 0 or 1 for the GroupBox has no effect because the GroupBox is designed to tightly adjust to the size of its composition layout. This unlike the Panel widget for instance who does not force itself to adjust to the size of its composition layout.
Definition at line 36 of file GroupBox.h.
bool nux::GroupBox::SetLayout | ( | Layout * | layout | ) | [virtual] |
Set the default layout for this view.
Set the default layout for this view.
layout | A Layout object. |
Reimplemented from nux::View.
Definition at line 123 of file GroupBox.cpp.
References nux::View::SetLayout().
{ if(View::SetLayout(layout) == false) { return false; } m_layout = layout; return true; // Geometry geo = GetGeometry(); // Geometry layout_geo = Geometry(geo.x + m_border, geo.y + m_top_border, // geo.GetWidth() - 2*m_border, geo.GetHeight() - m_border - m_top_border); // m_layout->SetGeometry(layout_geo); }