unsigned int degrees = 0;
Rotate( degrees );
- //orientation.ChangedSignal().Connect( this, &DaliTableView::OrientationChanged );
-
winHandle.ShowIndicator( Dali::Window::INVISIBLE );
// Background animation
mScrollView.SetRulerY( mScrollRulerY );
}
-void DaliTableView::OrientationChanged( Orientation orientation )
-{
- // TODO: Implement if orientation change required
-}
-
void DaliTableView::Rotate( unsigned int degrees )
{
// Resize the root actor
TOOLBAR_IMAGE,
"" );
- //app.GetWindow().GetOrientation().ChangedSignal().Connect( this, &ItemViewExample::OnOrientationChanged );
-
// Create an edit mode button. (left of toolbar)
Toolkit::PushButton editButton = Toolkit::PushButton::New();
editButton.SetUnselectedImage( EDIT_IMAGE );
mItemView.ActivateLayout( layoutId, Vector3(stageSize.x, stageSize.y, stageSize.x), 0.0f );
}
- /**
- * Orientation changed signal callback
- * @param orientation
- */
- void OnOrientationChanged( Orientation orientation )
- {
- const unsigned int angle = orientation.GetDegrees();
-
- // If orientation really changed
- if( mOrientation != angle )
- {
- // Remember orientation
- mOrientation = angle;
-
- SetLayout( mCurrentLayout );
- }
- }
-
bool OnLayoutButtonClicked( Toolkit::Button button )
{
// Switch to the next layout
winHandle.AddAvailableOrientation( Dali::Window::LANDSCAPE_INVERSE );
// set initial orientation
- // winHandle.GetOrientation().ChangedSignal().Connect( this, &MotionBlurExampleApp::OnOrientationChanged );
unsigned int degrees = 0;
Rotate( static_cast< DeviceOrientation >( degrees ) );
#endif //#ifdef MULTIPLE_MOTION_BLURRED_ACTORS
}
- //////////////////////////////////////////////////////////////
- //
- // Device Orientation Support
- //
- //
-
- void OnOrientationChanged( Orientation orientation )
- {
- unsigned int degrees = orientation.GetDegrees();
- Rotate( static_cast< DeviceOrientation >( degrees ) );
- }
-
void Rotate( DeviceOrientation orientation )
{
// Resize the root actor
winHandle.AddAvailableOrientation( Dali::Window::PORTRAIT_INVERSE );
winHandle.AddAvailableOrientation( Dali::Window::LANDSCAPE_INVERSE );
- // winHandle.GetOrientation().ChangedSignal().Connect( this, &MotionStretchExampleApp::OnOrientationChanged );
unsigned int degrees = 0;
Rotate( static_cast< DeviceOrientation >( degrees ) );
//
//
- void OnOrientationChanged( Orientation orientation )
- {
- unsigned int degrees = orientation.GetDegrees();
- Rotate( static_cast< DeviceOrientation >( degrees ) );
- }
-
void Rotate( DeviceOrientation orientation )
{
// Resize the root actor
#include <dali-toolkit/dali-toolkit.h>
#include <dali-toolkit/devel-api/controls/tool-bar/tool-bar.h>
-#include <dali-toolkit/devel-api/styling/style-manager.h>
namespace DemoHelper