本文整理汇总了C++中TabControl::setPosition方法的典型用法代码示例。如果您正苦于以下问题:C++ TabControl::setPosition方法的具体用法?C++ TabControl::setPosition怎么用?C++ TabControl::setPosition使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TabControl
的用法示例。
在下文中一共展示了TabControl::setPosition方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: initialiseWidgetInspector
void WidgetDemo::initialiseWidgetInspector(CEGUI::Window* container)
{
WindowManager& winMgr = WindowManager::getSingleton();
//Add a tabcontrol serving as WidgetInspector, allowing to switch between events+widgets and the properties display
TabControl* tabControl = static_cast<TabControl*>(winMgr.createWindow("TaharezLook/TabControl", "WidgetDemoWidgetInspector"));
container->addChild(tabControl);
tabControl->setSize(CEGUI::USize(cegui_reldim(0.55f), cegui_reldim(0.96f)));
tabControl->setPosition(CEGUI::UVector2(cegui_reldim(0.02f), cegui_reldim(0.02f)));
//Create the respective windows containing the displays
CEGUI::Window* widgetMainInspectionContainer = winMgr.createWindow("DefaultWindow", "WidgetInspectionContainer");
CEGUI::Window* widgetPropertiesInspectionContainer = winMgr.createWindow("DefaultWindow", "WidgetPropertiesInspectionContainer");
//Add the pages to the tab control
widgetMainInspectionContainer->setText("Widget Inspector");
tabControl->addTab(widgetMainInspectionContainer);
widgetPropertiesInspectionContainer->setText("Widget Properties");
tabControl->addTab(widgetPropertiesInspectionContainer);
//Create properties window
initialiseWidgetPropertiesDisplayWindow(widgetPropertiesInspectionContainer);
//Create the widget display windows
initialiseWidgetDisplayWindow();
widgetMainInspectionContainer->addChild(d_widgetDisplayWindow);
initialiseWidgetsEventsLog();
widgetMainInspectionContainer->addChild(d_widgetsEventsLog);
initialiseEventLights(widgetMainInspectionContainer);
}