本文整理汇总了C++中wt::WContainerWidget::setContentAlignment方法的典型用法代码示例。如果您正苦于以下问题:C++ WContainerWidget::setContentAlignment方法的具体用法?C++ WContainerWidget::setContentAlignment怎么用?C++ WContainerWidget::setContentAlignment使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类wt::WContainerWidget
的用法示例。
在下文中一共展示了WContainerWidget::setContentAlignment方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: WLabel
Wt::WWidget * ribi::con3::WtMenuDialog::CreateNewWelcomeDialog() const
{
Wt::WContainerWidget * dialog = new Wt::WContainerWidget;
dialog->setContentAlignment(Wt::AlignCenter);
dialog->addWidget(new Wt::WBreak);
new Wt::WLabel("Welcome to ConnectThree",dialog);
new Wt::WBreak(dialog);
new Wt::WBreak(dialog);
new Wt::WLabel("The goal of ConnectThree is to get three in a row horizontally or vertically:",dialog);
new Wt::WBreak(dialog);
new Wt::WBreak(dialog);
new Wt::WLabel("Good #1",dialog);
new Wt::WBreak(dialog);
dialog->addWidget(new Wt::WImage(
m_resources.GetInstructionsGoodFilenames()[0],"Good #1"));
new Wt::WBreak(dialog);
new Wt::WBreak(dialog);
new Wt::WLabel("Good #2",dialog);
new Wt::WBreak(dialog);
dialog->addWidget(new Wt::WImage(
m_resources.GetInstructionsGoodFilenames()[1],"Good #2"));
new Wt::WBreak(dialog);
new Wt::WBreak(dialog);
new Wt::WLabel("Wrong",dialog);
new Wt::WBreak(dialog);
dialog->addWidget(new Wt::WImage(
m_resources.
GetInstructionsWrongFilename(),
"Wrong"));
return dialog;
}
示例2:
Wt::WWidget * ribi::con3::WtMenuDialog::CreateNewSelectPlayersDialog()
{
Wt::WContainerWidget * dialog = new Wt::WContainerWidget;
dialog->setContentAlignment(Wt::AlignCenter);
dialog->addWidget(new Wt::WBreak);
dialog->addWidget(m_select);
return dialog;
}
示例3: WLabel
//---------------------------------------------------------------------------
Wt::WWidget * ribi::ToolTestServerPusher::WtMenuDialog::CreateNewWelcomeDialog() const
{
Wt::WContainerWidget * dialog = new Wt::WContainerWidget;
dialog->setContentAlignment(Wt::AlignCenter);
dialog->addWidget(new Wt::WBreak);
new Wt::WLabel("Welcome to TestServerPusher",dialog);
new Wt::WBreak(dialog);
new Wt::WBreak(dialog);
new Wt::WLabel("TestServerPusher demonstrates how to view the same changing info",dialog);
new Wt::WBreak(dialog);
new Wt::WLabel("from different browsers and/or computers",dialog);
new Wt::WBreak(dialog);
new Wt::WLabel("using the WtServerPusher and WtServerPusherClient classes",dialog);
return dialog;
}
示例4: WLabel
Wt::WWidget * ribi::tgrw::WtMenuDialog::CreateNewWelcomeDialog() const
{
Wt::WContainerWidget * dialog = new Wt::WContainerWidget;
dialog->setContentAlignment(Wt::AlignCenter);
dialog->addWidget(new Wt::WBreak);
new Wt::WLabel("Welcome to TestGroupWidget",dialog);
new Wt::WBreak(dialog);
new Wt::WBreak(dialog);
new Wt::WLabel("TestGroupWidget tests and displays the GroupWidget class",dialog);
new Wt::WBreak(dialog);
new Wt::WBreak(dialog);
Wt::WGroupBox * const box = new Wt::WGroupBox("Explanation",dialog);
box->addWidget(new Wt::WImage("ToolTestGroupWidgetWelcome.png"));
return dialog;
}
示例5: WLabel
Wt::WWidget * ribi::ToolTestEntrance::WtMenuDialog::CreateNewWelcomeDialog() const
{
Wt::WContainerWidget * dialog = new Wt::WContainerWidget;
dialog->setContentAlignment(Wt::AlignCenter);
dialog->addWidget(new Wt::WBreak);
new Wt::WLabel("Welcome to TestEntrance",dialog);
new Wt::WBreak(dialog);
new Wt::WBreak(dialog);
new Wt::WLabel("TestEntrance demonstrates the WtEntrance class",dialog);
new Wt::WBreak(dialog);
new Wt::WBreak(dialog);
Wt::WGroupBox * const box = new Wt::WGroupBox("Explanation",dialog);
box->addWidget(new Wt::WImage("ToolTestEntranceWelcome.png"));
return dialog;
}
示例6: WLabel
Wt::WWidget * ribi::WtRandomCodeMenuDialog::CreateNewWelcomeDialog() const
{
Wt::WContainerWidget * dialog = new Wt::WContainerWidget;
dialog->setContentAlignment(Wt::AlignCenter);
dialog->addWidget(new Wt::WBreak);
new Wt::WLabel("Welcome to RandomCode",dialog);
new Wt::WBreak(dialog);
new Wt::WBreak(dialog);
new Wt::WLabel("The goal of RandomCode is to generate random C++ code",dialog);
new Wt::WBreak(dialog);
new Wt::WBreak(dialog);
Wt::WGroupBox * const box = new Wt::WGroupBox("Explanation",dialog);
box->addWidget(new Wt::WImage("ToolRandomCodeWelcome.png"));
return dialog;
}
示例7: WLabel
//---------------------------------------------------------------------------
Wt::WWidget * WtTestToggleButtonMenuDialog::CreateNewWelcomeDialog() const
{
Wt::WContainerWidget * dialog = new Wt::WContainerWidget;
dialog->setContentAlignment(Wt::AlignCenter);
dialog->addWidget(new Wt::WBreak);
new Wt::WLabel("Welcome to TestToggleButton",dialog);
new Wt::WBreak(dialog);
new Wt::WBreak(dialog);
new Wt::WLabel("TestToggleButton tests and displays the ToggleButton and WtToggleButtonWidget classes",dialog);
new Wt::WBreak(dialog);
new Wt::WBreak(dialog);
Wt::WGroupBox * const box = new Wt::WGroupBox("Explanation",dialog);
box->addWidget(new Wt::WImage("ToolTestToggleButtonWelcome.png"));
return dialog;
}
示例8: WLabel
Wt::WWidget * ribi::WtAsciiArterMainDialog::CreateNewWelcomeDialog() const
{
Wt::WContainerWidget * dialog = new Wt::WContainerWidget;
dialog->setContentAlignment(Wt::AlignCenter);
dialog->addWidget(new Wt::WBreak);
new Wt::WLabel("Welcome to AsciiArter",dialog);
new Wt::WBreak(dialog);
new Wt::WBreak(dialog);
new Wt::WLabel("AsciiArter is a tool to convert images to ascii art.",dialog);
new Wt::WBreak(dialog);
new Wt::WBreak(dialog);
Wt::WGroupBox * const box = new Wt::WGroupBox("Explanation",dialog);
box->addWidget(new Wt::WImage("ToolAsciiArterWelcome.png"));
return dialog;
}
示例9: WLabel
//---------------------------------------------------------------------------
Wt::WWidget * WtTestEncrangerMenuDialog::CreateNewWelcomeDialog() const
{
Wt::WContainerWidget * dialog = new Wt::WContainerWidget;
dialog->setContentAlignment(Wt::AlignCenter);
dialog->addWidget(new Wt::WBreak);
new Wt::WLabel("Welcome to TestEncranger",dialog);
new Wt::WBreak(dialog);
new Wt::WBreak(dialog);
new Wt::WLabel("TestEncranger demonstrates the Encranger encryption and de-encryption algorithm",dialog);
new Wt::WBreak(dialog);
new Wt::WBreak(dialog);
Wt::WGroupBox * const box = new Wt::WGroupBox("Explanation",dialog);
box->addWidget(new Wt::WImage("ToolTestEncrangerWelcome.png"));
return dialog;
}