本文整理汇总了C++中TextBox::Construct方法的典型用法代码示例。如果您正苦于以下问题:C++ TextBox::Construct方法的具体用法?C++ TextBox::Construct怎么用?C++ TextBox::Construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TextBox
的用法示例。
在下文中一共展示了TextBox::Construct方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Frame
bool
GCubeApp::OnAppInitialized(void)
{
// フレーム作成
Frame *pFrame = new Frame();
pFrame->Construct();
pFrame->SetName(L"GCube");
// フォーム作成
Form *pForm = new Form();
if (settings->showStatusBar) {
pForm->Construct(FORM_STYLE_INDICATOR);
} else {
pForm->Construct(FORM_STYLE_NORMAL);
}
pForm->AddTouchEventListener(*this);
pForm->AddOrientationEventListener(*this);
pFrame->AddControl(pForm);
pFrame->SetCurrentForm(pForm);
// 画面の向き
enum Orientation orientation = ORIENTATION_NONE;
if (settings->orientationPortrait) {
if (settings->orientationLandscapeLeft || settings->orientationLandscapeRight) {
orientation = ORIENTATION_AUTOMATIC;
} else {
orientation = ORIENTATION_PORTRAIT;
}
} else {
if (settings->orientationPortraitUpsideDown) {
if (settings->orientationLandscapeLeft || settings->orientationLandscapeRight) {
orientation = ORIENTATION_AUTOMATIC_FOUR_DIRECTION;
} else {
orientation = ORIENTATION_PORTRAIT_REVERSE;
}
} else {
if (settings->orientationLandscapeLeft) {
orientation = ORIENTATION_LANDSCAPE_REVERSE;
} else {
if (settings->orientationLandscapeRight) {
orientation = ORIENTATION_LANDSCAPE;
}
}
}
}
pFrame->SetOrientation(orientation);
pForm->SetOrientation(orientation);
pFrame->SetMultipointTouchEnabled(true);
AddFrame(*pFrame);
{
__player = new Tizen::Graphics::Opengl::GlPlayer;
__player->Construct(Tizen::Graphics::Opengl::EGL_CONTEXT_CLIENT_VERSION_2_X, pForm);
__player->SetFps(settings->frameRate);
__player->SetEglAttributePreset(Tizen::Graphics::Opengl::EGL_ATTRIBUTES_PRESET_ARGB8888);
EGLint eglConfigList[] =
{
EGL_RED_SIZE, 8,
EGL_GREEN_SIZE, 8,
EGL_BLUE_SIZE, 8,
EGL_ALPHA_SIZE, 8,
EGL_DEPTH_SIZE, 16,
EGL_SURFACE_TYPE, EGL_WINDOW_BIT,
EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT,
EGL_NONE
};
__player->SetEglAttributeList(eglConfigList);
__player->Start();
}
__renderer = new GlRendererTemplate();
__player->SetIGlRenderer(__renderer);
int w = __renderer->GetTargetControlWidth();
int h = __renderer->GetTargetControlHeight();
if (settings->debugButtonPos > 0) {
// デバッグボタン作成
// TODO: XMLで作成
int dy = 0;
if (settings->showStatusBar) {
dy = 60;
}
Button* pDebugButton = new Button();
if (settings->debugButtonPos == 1) {
pDebugButton->Construct(Rectangle(w-80, h-80-dy, 70, 70), L"D");
} else if (settings->debugButtonPos == 2) {
pDebugButton->Construct(Rectangle(10, h-80-dy, 70, 70), L"D");
} else if (settings->debugButtonPos == 3) {
pDebugButton->Construct(Rectangle(w-80, 10, 70, 70), L"D");
} else {
pDebugButton->Construct(Rectangle(10, 10, 70, 70), L"D");
}
pDebugButton->SetActionId(ID_DEBUG_BUTTON);
pDebugButton->AddActionEventListener(*this);
pForm->AddControl(pDebugButton);
// ポップアップ作成
//.........这里部分代码省略.........