namespace Adaptor
{
+namespace
+{
+
+const float DEFAULT_STEREO_BASE( 65.0f );
+
+} // unnamed namespace
+
ApplicationPtr Application::gPreInitializedApplication( NULL );
ApplicationPtr Application::New(
mEnvironmentOptions(),
mWindowPositionSize( positionSize ),
mLaunchpadState( Launchpad::NONE ),
- mSlotDelegate( this )
+ mSlotDelegate( this ),
+ mViewMode( MONO ),
+ mStereoBase( DEFAULT_STEREO_BASE )
{
// Get mName from environment options
mMainWindowName = mEnvironmentOptions.GetWindowName();
return mMainWindow;
}
+// Stereoscopy
+
+void Application::SetViewMode( ViewMode viewMode )
+{
+ mViewMode = viewMode;
+}
+
+ViewMode Application::GetViewMode() const
+{
+ return mViewMode;
+}
+
+void Application::SetStereoBase( float stereoBase )
+{
+ mStereoBase = stereoBase;
+}
+
+float Application::GetStereoBase() const
+{
+ return mStereoBase;
+}
+
void Application::ReplaceWindow( const PositionSize& positionSize, const std::string& name )
{
Dali::Window newWindow = Dali::Window::New( positionSize, name, mMainWindowMode == Dali::Application::TRANSPARENT );
*/
static ApplicationPtr GetPreInitializedApplication();
+public: // Stereoscopy
+
+ /**
+ * @copydoc Dali::Application::SetViewMode()
+ */
+ void SetViewMode( ViewMode viewMode );
+
+ /**
+ * @copydoc Dali::Application::GetViewMode()
+ */
+ ViewMode GetViewMode() const;
+
+ /**
+ * @copydoc Dali::Application::SetStereoBase()
+ */
+ void SetStereoBase( float stereoBase );
+
+ /**
+ * @copydoc Dali::Application::GetStereoBase()
+ */
+ float GetStereoBase() const;
+
public: // Lifecycle functionality
/**
Launchpad::State mLaunchpadState;
bool mUseRemoteSurface;
- SlotDelegate< Application > mSlotDelegate;
+ SlotDelegate< Application > mSlotDelegate;
+
+ ViewMode mViewMode;
+ float mStereoBase;
- static ApplicationPtr gPreInitializedApplication;
+ static ApplicationPtr gPreInitializedApplication;
};
inline Application& GetImplementation(Dali::Application& application)
{ "am", "Amharic", Locale::LeftToRight },
{ "ar", "Arabic", Locale::RightToLeft },
{ "as", "Assamese", Locale::LeftToRight },
- { "az", "Azerbaijani", Locale::RightToLeft },
+ { "az", "Azerbaijani", Locale::LeftToRight },
{ "be", "Belarusian", Locale::LeftToRight },
{ "bg", "Bulgarian", Locale::LeftToRight },
{ "bn", "Bengali", Locale::LeftToRight },
{ "gl", "Galician", Locale::LeftToRight },
{ "gn", "Guarani", Locale::LeftToRight },
{ "gu", "Gujarati", Locale::LeftToRight },
+ { "ha", "Hausa", Locale::RightToLeft },
{ "he", "Hebrew", Locale::RightToLeft },
{ "hi", "Hindi", Locale::LeftToRight },
{ "hr", "Croatian", Locale::LeftToRight },
{ "km", "Khmer", Locale::LeftToRight },
{ "kn", "Kannada", Locale::LeftToRight },
{ "ko", "Korean", Locale::LeftToRight },
- { "ks", "Kashmiri", Locale::RightToLeft },
+ { "ks", "Kashmiri", Locale::LeftToRight },
+ { "ku", "Kurdish", Locale::RightToLeft },
{ "la", "Latin", Locale::LeftToRight },
{ "lo", "Lao", Locale::LeftToRight },
{ "lt", "Lithuanian", Locale::LeftToRight },
{ "sw", "Swahili", Locale::LeftToRight },
{ "ta", "Tamil", Locale::LeftToRight },
{ "te", "Telugu", Locale::LeftToRight },
- { "tg", "Tajik", Locale::RightToLeft },
+ { "tg", "Tajik", Locale::LeftToRight },
{ "th", "Thai", Locale::LeftToRight },
{ "tk", "Turkmen", Locale::LeftToRight },
{ "tn", "Setsuana", Locale::LeftToRight },
switch( characterDirection )
{
case FRIBIDI_TYPE_LTR: // Left-To-Right letter.
- case FRIBIDI_TYPE_EN: // European Numeral.
- case FRIBIDI_TYPE_AN: // Arabic Numeral.
- case FRIBIDI_TYPE_ES: // European number Separator.
- case FRIBIDI_TYPE_ET: // European number Terminator.
{
return LEFT_TO_RIGHT;
}
- case FRIBIDI_TYPE_RTL: // Right-To-Left letter.
case FRIBIDI_TYPE_AL: // Arabic Letter.
+ case FRIBIDI_TYPE_RTL: // Right-To-Left letter.
{
return RIGHT_TO_LEFT;
}
+ case FRIBIDI_TYPE_AN: // Arabic Numeral.
+ case FRIBIDI_TYPE_ES: // European number Separator.
+ case FRIBIDI_TYPE_ET: // European number Terminator.
+ case FRIBIDI_TYPE_EN: // European Numeral.
+ default :
+ {
+ return NEUTRAL;
+ }
}
-
- return NEUTRAL;
}
}
*/
uint32_t GetTotalFrameNumber();
+ // Not copyable or movable
+ VectorAnimationRendererPluginProxy( const VectorAnimationRendererPluginProxy& ) = delete; ///< Deleted copy constructor
+ VectorAnimationRendererPluginProxy( VectorAnimationRendererPluginProxy&& ) = delete; ///< Deleted move constructor
+ VectorAnimationRendererPluginProxy& operator=( const VectorAnimationRendererPluginProxy& ) = delete; ///< Deleted copy assignment operator
+ VectorAnimationRendererPluginProxy& operator=( VectorAnimationRendererPluginProxy&& ) = delete; ///< Deleted move assignment operator
+
private:
/**
return Internal::Adaptor::GetImplementation(*this).GetLanguage();
}
-void Application::SetViewMode( ViewMode /*viewMode*/ )
+void Application::SetViewMode( ViewMode viewMode )
{
+ Internal::Adaptor::GetImplementation(*this).SetViewMode( viewMode );
}
ViewMode Application::GetViewMode() const
{
- return ViewMode::MONO;
+ return Internal::Adaptor::GetImplementation(*this).GetViewMode();
}
-void Application::SetStereoBase( float /*stereoBase*/ )
+void Application::SetStereoBase( float stereoBase )
{
+ Internal::Adaptor::GetImplementation(*this).SetStereoBase( stereoBase );
}
float Application::GetStereoBase() const
{
- return 0.f;
+ return Internal::Adaptor::GetImplementation(*this).GetStereoBase();
}
Application::AppSignalType& Application::InitSignal()
* @brief Sets the viewing mode for the application.
* @SINCE_1_0.0
* @param[in] viewMode The new viewing mode
- * @DEPRECATED_1_3.39
+ * @DEPRECATED_1_3.51
*/
void SetViewMode( ViewMode viewMode );
* @brief Gets the current viewing mode.
* @SINCE_1_0.0
* @return The current viewing mode
- * @DEPRECATED_1_3.39
+ * @DEPRECATED_1_3.51
*/
ViewMode GetViewMode() const;
* between 50mm and 70mm. The default value is 65mm.
* @SINCE_1_0.0
* @param[in] stereoBase The stereo base (eye separation) for Stereoscopic 3D
- * @DEPRECATED_1_3.39
+ * @DEPRECATED_1_3.51
*/
void SetStereoBase( float stereoBase );
*
* @SINCE_1_0.0
* @return The stereo base (eye separation) for Stereoscopic 3D
- * @DEPRECATED_1_3.39
+ * @DEPRECATED_1_3.51
*/
float GetStereoBase() const;
const unsigned int ADAPTOR_MAJOR_VERSION = 1;
const unsigned int ADAPTOR_MINOR_VERSION = 3;
-const unsigned int ADAPTOR_MICRO_VERSION = 52;
+const unsigned int ADAPTOR_MICRO_VERSION = 53;
const char * const ADAPTOR_BUILD_DATE = __DATE__ " " __TIME__;
#ifdef DEBUG_ENABLED
Name: dali-adaptor
Summary: The DALi Tizen Adaptor
-Version: 1.3.52
+Version: 1.3.53
Release: 1
Group: System/Libraries
License: Apache-2.0 and BSD-3-Clause and MIT