- mButtonRefreshOnce.SetProperty( Toolkit::Button::Property::LABEL, "Refresh ONCE" );
- mButtonRefreshOnce.SetParentOrigin( ParentOrigin::TOP_RIGHT );
- mButtonRefreshOnce.SetAnchorPoint( AnchorPoint::TOP_RIGHT );
- mButtonRefreshOnce.ClickedSignal().Connect( this, &NativeImageSourceController::OnButtonSelected );
- stage.Add( mButtonRefreshOnce);
-
- CreateScene();
+ mButtonRefreshOnce.SetProperty(Toolkit::Button::Property::LABEL, "ONCE");
+ mButtonRefreshOnce.SetProperty(Actor::Property::PARENT_ORIGIN, ParentOrigin::TOP_LEFT);
+ mButtonRefreshOnce.SetProperty(Actor::Property::ANCHOR_POINT, AnchorPoint::TOP_LEFT);
+ mButtonRefreshOnce.SetProperty(Actor::Property::SIZE, Vector2(windowSize.x / BUTTON_COUNT, BUTTON_HEIGHT));
+ mButtonRefreshOnce.SetProperty(Actor::Property::POSITION, Vector2((windowSize.x / BUTTON_COUNT) * 2.0f, 0.0f));
+ mButtonRefreshOnce.ClickedSignal().Connect(this, &NativeImageSourceController::OnButtonSelected);
+ mButtonArea.Add(mButtonRefreshOnce);
+
+ mButtonCapture = PushButton::New();
+ mButtonCapture.SetProperty(Toolkit::Button::Property::LABEL, "CAPTURE");
+ mButtonCapture.SetProperty(Actor::Property::PARENT_ORIGIN, ParentOrigin::TOP_LEFT);
+ mButtonCapture.SetProperty(Actor::Property::ANCHOR_POINT, AnchorPoint::TOP_LEFT);
+ mButtonCapture.SetProperty(Actor::Property::SIZE, Vector2(windowSize.x / BUTTON_COUNT, BUTTON_HEIGHT));
+ mButtonCapture.SetProperty(Actor::Property::POSITION, Vector2((windowSize.x / BUTTON_COUNT) * 3.0f, 0.0f));
+ mButtonCapture.ClickedSignal().Connect(this, &NativeImageSourceController::OnButtonSelected);
+ mButtonArea.Add(mButtonCapture);
+
+ mButtonReset = PushButton::New();
+ mButtonReset.SetProperty(Toolkit::Button::Property::LABEL, "RESET");
+ mButtonReset.SetProperty(Actor::Property::PARENT_ORIGIN, ParentOrigin::TOP_LEFT);
+ mButtonReset.SetProperty(Actor::Property::ANCHOR_POINT, AnchorPoint::TOP_LEFT);
+ mButtonReset.SetProperty(Actor::Property::SIZE, Vector2(windowSize.x / BUTTON_COUNT, BUTTON_HEIGHT));
+ mButtonReset.SetProperty(Actor::Property::POSITION, Vector2((windowSize.x / BUTTON_COUNT) * 4.0f, 0.0f));
+ mButtonReset.ClickedSignal().Connect(this, &NativeImageSourceController::OnButtonSelected);
+ mButtonArea.Add(mButtonReset);