X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fpublic-api%2Fcommon%2Fconstants.h;h=8a2a94fd94b148dc62bbec0045e04b89a40cea23;hb=8bccadc96b3773fb10c562a5ccdf1b071b2efe8e;hp=52e082eb6d93180c72fae4a7e51acd9b657fb707;hpb=3c19df3108c8ea3d7e4d42d0203218a3bc5077f2;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/public-api/common/constants.h b/dali/public-api/common/constants.h index 52e082e..8a2a94f 100644 --- a/dali/public-api/common/constants.h +++ b/dali/public-api/common/constants.h @@ -2,7 +2,7 @@ #define __DALI_CONSTANTS_H__ /* - * Copyright (c) 2014 Samsung Electronics Co., Ltd. + * Copyright (c) 2018 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,11 +27,16 @@ namespace Dali { +/** + * @addtogroup dali_core_common + * @{ + */ /** - * @brief ParentOrigin constants + * @brief ParentOrigin constants. * - * Note that for 2D layouting, the typical Z position is 0.5f (not 0.0f) + * Note that for 2D layouting, the typical Z position is 0.5f (not 0.0f). + * @SINCE_1_0.0 */ namespace ParentOrigin { @@ -42,22 +47,23 @@ static const float LEFT = 0.0f; static const float RIGHT = 1.0f; static const float MIDDLE = 0.5f; -DALI_IMPORT_API extern const Vector3 TOP_LEFT; ///< 0.0f, 0.0f, 0.5f -DALI_IMPORT_API extern const Vector3 TOP_CENTER; ///< 0.5f, 0.0f, 0.5f -DALI_IMPORT_API extern const Vector3 TOP_RIGHT; ///< 1.0f, 0.0f, 0.5f -DALI_IMPORT_API extern const Vector3 CENTER_LEFT; ///< 0.0f, 0.5f, 0.5f -DALI_IMPORT_API extern const Vector3 CENTER; ///< 0.5f, 0.5f, 0.5f -DALI_IMPORT_API extern const Vector3 CENTER_RIGHT; ///< 1.0f, 0.5f, 0.5f -DALI_IMPORT_API extern const Vector3 BOTTOM_LEFT; ///< 0.0f, 1.0f, 0.5f -DALI_IMPORT_API extern const Vector3 BOTTOM_CENTER; ///< 0.5f, 1.0f, 0.5f -DALI_IMPORT_API extern const Vector3 BOTTOM_RIGHT; ///< 1.0f, 1.0f, 0.5f +DALI_CORE_API extern const Vector3 TOP_LEFT; ///< 0.0f, 0.0f, 0.5f +DALI_CORE_API extern const Vector3 TOP_CENTER; ///< 0.5f, 0.0f, 0.5f +DALI_CORE_API extern const Vector3 TOP_RIGHT; ///< 1.0f, 0.0f, 0.5f +DALI_CORE_API extern const Vector3 CENTER_LEFT; ///< 0.0f, 0.5f, 0.5f +DALI_CORE_API extern const Vector3 CENTER; ///< 0.5f, 0.5f, 0.5f +DALI_CORE_API extern const Vector3 CENTER_RIGHT; ///< 1.0f, 0.5f, 0.5f +DALI_CORE_API extern const Vector3 BOTTOM_LEFT; ///< 0.0f, 1.0f, 0.5f +DALI_CORE_API extern const Vector3 BOTTOM_CENTER; ///< 0.5f, 1.0f, 0.5f +DALI_CORE_API extern const Vector3 BOTTOM_RIGHT; ///< 1.0f, 1.0f, 0.5f } /** - * @brief AnchorPoint constants + * @brief AnchorPoint constants. * - * Note that for 2D layouting, the typical Z position is 0.5f (not 0.0f) + * Note that for 2D layouting, the typical Z position is 0.5f (not 0.0f). + * @SINCE_1_0.0 */ namespace AnchorPoint { @@ -68,15 +74,15 @@ static const float RIGHT = 1.0f; static const float MIDDLE = 0.5f; extern const Vector3 DEFAULT; ///< CENTER -DALI_IMPORT_API extern const Vector3 TOP_LEFT; ///< 0.0f, 0.0f, 0.5f -DALI_IMPORT_API extern const Vector3 TOP_CENTER; ///< 0.5f, 0.0f, 0.5f -DALI_IMPORT_API extern const Vector3 TOP_RIGHT; ///< 1.0f, 0.0f, 0.5f -DALI_IMPORT_API extern const Vector3 CENTER_LEFT; ///< 0.0f, 0.5f, 0.5f -DALI_IMPORT_API extern const Vector3 CENTER; ///< 0.5f, 0.5f, 0.5f -DALI_IMPORT_API extern const Vector3 CENTER_RIGHT; ///< 1.0f, 0.5f, 0.5f -DALI_IMPORT_API extern const Vector3 BOTTOM_LEFT; ///< 0.0f, 1.0f, 0.5f -DALI_IMPORT_API extern const Vector3 BOTTOM_CENTER; ///< 0.5f, 1.0f, 0.5f -DALI_IMPORT_API extern const Vector3 BOTTOM_RIGHT; ///< 1.0f, 1.0f, 0.5f +DALI_CORE_API extern const Vector3 TOP_LEFT; ///< 0.0f, 0.0f, 0.5f +DALI_CORE_API extern const Vector3 TOP_CENTER; ///< 0.5f, 0.0f, 0.5f +DALI_CORE_API extern const Vector3 TOP_RIGHT; ///< 1.0f, 0.0f, 0.5f +DALI_CORE_API extern const Vector3 CENTER_LEFT; ///< 0.0f, 0.5f, 0.5f +DALI_CORE_API extern const Vector3 CENTER; ///< 0.5f, 0.5f, 0.5f +DALI_CORE_API extern const Vector3 CENTER_RIGHT; ///< 1.0f, 0.5f, 0.5f +DALI_CORE_API extern const Vector3 BOTTOM_LEFT; ///< 0.0f, 1.0f, 0.5f +DALI_CORE_API extern const Vector3 BOTTOM_CENTER; ///< 0.5f, 1.0f, 0.5f +DALI_CORE_API extern const Vector3 BOTTOM_RIGHT; ///< 1.0f, 1.0f, 0.5f } @@ -85,35 +91,37 @@ DALI_IMPORT_API extern const Vector3 BOTTOM_RIGHT; ///< 1.0f, 1.0f, 0.5f * @brief Color Constants. * * Color is represented by the Vector4 class (see vector4.h). + * @SINCE_1_0.0 */ namespace Color { -DALI_IMPORT_API extern const Vector4 BLACK; ///< Pure black (0.0f, 0.0f, 0.0f, 1.0f); -DALI_IMPORT_API extern const Vector4 WHITE; ///< Pure white (1.0f, 1.0f, 1.0f, 1.0f); +DALI_CORE_API extern const Vector4 BLACK; ///< Pure black (0.0f, 0.0f, 0.0f, 1.0f); +DALI_CORE_API extern const Vector4 WHITE; ///< Pure white (1.0f, 1.0f, 1.0f, 1.0f); -DALI_IMPORT_API extern const Vector4 RED; ///< Pure red (1.0f, 0.0f, 0.0f, 1.0f); -DALI_IMPORT_API extern const Vector4 GREEN; ///< Pure green (0.0f, 1.0f, 0.0f, 1.0f); -DALI_IMPORT_API extern const Vector4 BLUE; ///< Pure blue (0.0f, 0.0f, 1.0f, 1.0f); +DALI_CORE_API extern const Vector4 RED; ///< Pure red (1.0f, 0.0f, 0.0f, 1.0f); +DALI_CORE_API extern const Vector4 GREEN; ///< Pure green (0.0f, 1.0f, 0.0f, 1.0f); +DALI_CORE_API extern const Vector4 BLUE; ///< Pure blue (0.0f, 0.0f, 1.0f, 1.0f); -DALI_IMPORT_API extern const Vector4 YELLOW; ///< Pure yellow (1.0f, 1.0f, 0.0f, 1.0f); -DALI_IMPORT_API extern const Vector4 MAGENTA; ///< Pure magenta (1.0f, 0.0f, 1.0f, 1.0f); -DALI_IMPORT_API extern const Vector4 CYAN; ///< Pure cyan (0.0f, 1.0f, 1.0f, 1.0f); +DALI_CORE_API extern const Vector4 YELLOW; ///< Pure yellow (1.0f, 1.0f, 0.0f, 1.0f); +DALI_CORE_API extern const Vector4 MAGENTA; ///< Pure magenta (1.0f, 0.0f, 1.0f, 1.0f); +DALI_CORE_API extern const Vector4 CYAN; ///< Pure cyan (0.0f, 1.0f, 1.0f, 1.0f); -DALI_IMPORT_API extern const Vector4 TRANSPARENT; ///< Black transparent (0.0f, 0.0f, 0.0f, 0.0f); +DALI_CORE_API extern const Vector4 TRANSPARENT; ///< Black transparent (0.0f, 0.0f, 0.0f, 0.0f); } // namespace Color /** - * @brief Math constants + * @brief Math constants. + * @SINCE_1_0.0 */ namespace Math { -DALI_IMPORT_API extern const float MACHINE_EPSILON_0; ///< Epsilon for values near zero -DALI_IMPORT_API extern const float MACHINE_EPSILON_1; ///< Epsilon for values near 1 -DALI_IMPORT_API extern const float MACHINE_EPSILON_10; ///< Epsilon for values near 10 -DALI_IMPORT_API extern const float MACHINE_EPSILON_100; ///< Epsilon for values near 100 -DALI_IMPORT_API extern const float MACHINE_EPSILON_1000; ///< Epsilon for values near 1000 -DALI_IMPORT_API extern const float MACHINE_EPSILON_10000; ///< Epsilon for values near 10000 +DALI_CORE_API extern const float MACHINE_EPSILON_0; ///< Epsilon for values near zero +DALI_CORE_API extern const float MACHINE_EPSILON_1; ///< Epsilon for values near 1 +DALI_CORE_API extern const float MACHINE_EPSILON_10; ///< Epsilon for values near 10 +DALI_CORE_API extern const float MACHINE_EPSILON_100; ///< Epsilon for values near 100 +DALI_CORE_API extern const float MACHINE_EPSILON_1000; ///< Epsilon for values near 1000 +DALI_CORE_API extern const float MACHINE_EPSILON_10000; ///< Epsilon for values near 10000 // float is preferred to double for performance on ARM targets static const float PI = static_cast(M_PI); ///< Constant representing PI @@ -125,13 +133,8 @@ static const float ONE80_OVER_PI = 180.0f/Dali::Math::PI; ///< Constant used to } // namespace Math /** - * @brief String Constants + * @} */ -namespace String -{ -extern const std::string EMPTY; ///< The empty string -} - } // namespace Dali #endif // __DALI_CONSTANTS_H__