Wt examples  4.2.2
Label.C
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2008 Emweb bv, Herent, Belgium.
3  *
4  * See the LICENSE file for terms of use.
5  */
6 
7 #include <Wt/WContainerWidget.h>
8 
9 #include "Label.h"
10 
11 Label::Label(const WString& text, WContainerWidget *parent)
12  : WText(text)
13 {
14  setStyleClass(L"label");
15  parent->setContentAlignment(AlignmentFlag::Right);
16 }
Wt::WContainerWidget
Key::L
@ L
Wt::WWidget::parent
WWidget * parent() const
Label::Label
Label(const WString &text, WContainerWidget *parent)
Definition: Label.C:11
Wt::WString
Label.h
Wt::WWebWidget::setStyleClass
virtual void setStyleClass(const WString &styleClass) override
Wt::WText

Generated on Fri Mar 20 2020 for the C++ Web Toolkit (Wt) by doxygen 1.8.17