#include <wg_groupbox.h>
Inheritance diagram for wGui::CGroupBox:
Definition at line 41 of file wg_groupbox.h.
wGui::CGroupBox::CGroupBox | ( | const CRect & | WindowRect, | |
CWindow * | pParent, | |||
std::wstring | sText = L"" , |
|||
CRGBColor & | FontColor = DEFAULT_LINE_COLOR , |
|||
CFontEngine * | pFontEngine = 0 | |||
) |
Construct a new group box
WindowRect | A CRect that defines the outer limits of the control | |
pParent | A pointer to the parent window | |
sText | The label text (defaults to an empty string) | |
FontColor | The color of the label text | |
pFontEngine | A pointer to the font engine to use when drawing the control If this is left out (or set to 0) it will use the default font engine specified by the CApplication (which must be set before instantiating this object) |
Definition at line 33 of file wg_groupbox.cpp.
References Draw(), wGui::CApplication::GetDefaultBackgroundColor(), wGui::CApplication::GetDefaultFontEngine(), wGui::CRect::Grow(), wGui::CRenderedString::HALIGN_LEFT, wGui::CApplication::Instance(), wGui::CWindow::m_BackgroundColor, wGui::CWindow::m_ClientRect, m_pFontEngine, m_pRenderedString, wGui::CWindow::m_sWindowText, wGui::CRect::SetTop(), and wGui::CRenderedString::VALIGN_TOP.
void wGui::CGroupBox::SetFontColor | ( | CRGBColor & | FontColor | ) | [inline] |
Sets the color of the font used to render the label
FontColor | The color of the label text |
Definition at line 59 of file wg_groupbox.h.
References m_FontColor.
CRGBColor wGui::CGroupBox::GetFontColor | ( | void | ) | [inline] |
Gets the font color for the label od the group box
Definition at line 63 of file wg_groupbox.h.
References m_FontColor.
void wGui::CGroupBox::SetWindowText | ( | const std::wstring & | sWindowText | ) | [virtual] |
Set the WindowText of the label
sWindowText | The text to assign to the window |
Reimplemented from wGui::CWindow.
Definition at line 84 of file wg_groupbox.cpp.
References wGui::CRenderedString::HALIGN_LEFT, m_pFontEngine, m_pRenderedString, wGui::CWindow::SetWindowText(), and wGui::CRenderedString::VALIGN_TOP.
void wGui::CGroupBox::SetWindowRect | ( | const CRect & | WindowRect | ) | [virtual] |
Giving a control a new WindowRect will move and resize the control
WindowRect | A CRect that defines the outer limits of the control |
Reimplemented from wGui::CWindow.
Definition at line 93 of file wg_groupbox.cpp.
References wGui::CRect::Grow(), wGui::CWindow::m_ClientRect, wGui::CWindow::m_WindowRect, wGui::CRect::SetTop(), wGui::CWindow::SetWindowRect(), and wGui::CRect::SizeRect().