#define DALI_TOOLKIT_TEXT_VISUAL_PROPERTIES_H
/*
- * Copyright (c) 2016 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2017 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.
*/
// INTERNAL INCLUDES
-#include <dali-toolkit/public-api/visuals/visual-properties.h>
+#include <dali-toolkit/public-api/toolkit-property-index-ranges.h>
namespace Dali
{
namespace Toolkit
{
+/**
+ * @addtogroup dali_toolkit_visuals
+ * @{
+ */
+/**
+ * @brief TextVisual is to render a text.
+ * @SINCE_1_2.60
+ */
namespace TextVisual
{
+/**
+ * @brief TextVisual Property.
+ * @SINCE_1_2.60
+ */
namespace Property
{
+/**
+ * @brief Enumeration for the instance of properties belonging to the TextVisual.
+ * @SINCE_1_2.60
+ */
enum
{
/**
- * @brief The type of rendering e.g. bitmap-based
- * @details name "renderingBackend", type INTEGER, default RENDERING_SHARED_ATLAS
- * @SINCE_1_2.11
+ * @brief The text to display in UTF-8 format.
+ * @details name "text", type Property::STRING.
+ * @SINCE_1_2.60
*/
- RENDERING_BACKEND = VISUAL_PROPERTY_START_INDEX,
+ TEXT = VISUAL_PROPERTY_START_INDEX,
/**
- * @brief The text to display in UTF-8 format,
- * @details name "text", type STRING
- * @SINCE_1_2.11
- */
- TEXT,
-
- /**
- * @brief The requested font family to use,
- * @details name "fontFamily", type STRING
- * @SINCE_1_2.11
+ * @brief The requested font family to use.
+ * @details name "fontFamily", type Property::STRING.
+ * @SINCE_1_2.60
*/
FONT_FAMILY,
/**
- * @brief The requested font style to use,
- * @details name "fontStyle", type STRING
- * @SINCE_1_2.11
+ * @brief The requested font style to use.
+ * @details name "fontStyle", type Property::MAP.
+ * @SINCE_1_2.60
*/
FONT_STYLE,
/**
- * @brief The size of font in points
- * @details name "pointSize", type FLOAT
- * @SINCE_1_2.11
+ * @brief The size of font in points.
+ * @details name "pointSize", type Property::FLOAT.
+ * @SINCE_1_2.60
*/
POINT_SIZE,
/**
- * @brief The single-line or multi-line layout option
- * @details name "multiLine", type BOOLEAN, default false
- * @SINCE_1_2.11
+ * @brief The single-line or multi-line layout option.
+ * @details name "multiLine", type Property::BOOLEAN, default false.
+ * @SINCE_1_2.60
*/
MULTI_LINE,
/**
- * @brief The line horizontal alignment
- * @details name "horizontalAlignment", type STRING, values "BEGIN", "CENTER", "END", default BEGIN
- * @SINCE_1_2.11
+ * @brief The line horizontal alignment.
+ * @details Name "horizontalAlignment", type HorizontalAlignment::Type (Property::INTEGER) or Property::STRING.
+ * @note Optional. If not specified, the default is HorizontalAlignment::BEGIN
+ * @note Return type is HorizontalAlignment::Type (Property::INTEGER)
+ * @SINCE_1_2.60
*/
HORIZONTAL_ALIGNMENT,
/**
- * @brief The line vertical alignment
- * @details name "verticalAlignment", type STRING, values "TOP", "CENTER", "BOTTOM", default TOP
- * @SINCE_1_2.11
+ * @brief The line vertical alignment.
+ * @details name "verticalAlignment", VerticalAlignment::Type (Property::INTEGER) or Property::STRING
+ * @note Optional. If not specified, the default is VerticalAlignment::TOP
+ * @note Return type is VerticalAlignment::Type (Property::INTEGER)`
+ * @SINCE_1_2.60
*/
VERTICAL_ALIGNMENT,
/**
- * @brief The color of the text
- * @details name "textColor", type VECTOR4
- * @SINCE_1_2.11
+ * @brief The color of the text.
+ * @details name "textColor", type Property::VECTOR4.
+ * @SINCE_1_2.60
*/
TEXT_COLOR,
/**
- * @brief Whether the mark-up processing is enabled
- * @details name "enableMarkup", type BOOLEAN
- * @SINCE_1_2.11
+ * @brief Whether the mark-up processing is enabled.
+ * @details name "enableMarkup", type Property::BOOLEAN.
+ * @SINCE_1_2.60
*/
ENABLE_MARKUP,
/**
- * @brief Start or stop auto scrolling,
- * @details name "enableAutoScroll", type BOOLEAN, default is false
- * @SINCE_1_2.11
- */
- ENABLE_AUTO_SCROLL,
-
- /**
- * @brief Sets the speed of scrolling in pixels per second,
- * @details name "autoScrollSpeed", type INTEGER, default in style sheet
- * @SINCE_1_2.11
+ * @brief The shadow parameters.
+ * @details name "shadow", type Property::MAP.
+ * @SINCE_1_2.60
*/
- AUTO_SCROLL_SPEED,
-
- /**
- * @brief Number of complete loops when scrolling enabled
- * @details name "autoScrollLoopCount", type INTEGER, default in style sheet
- * @SINCE_1_2.11
- */
- AUTO_SCROLL_LOOP_COUNT,
-
- /**
- * @brief Gap before before scrolling wraps
- * @details name "autoScrollGap", type INTEGER, default in style sheet but can be overridden to prevent same text being show at start and end.
- * @SINCE_1_2.11
- */
- AUTO_SCROLL_GAP,
-
- /**
- * @brief The default extra space between lines in points.
- * @details name "lineSpacing", type FLOAT.
- * @SINCE_1_2.11
- */
- LINE_SPACING,
+ SHADOW,
/**
* @brief The default underline parameters.
- * @details name "underline", type STRING.
- * @SINCE_1_2.11
+ * @details name "underline", type Property::MAP.
+ * @SINCE_1_2.60
*/
UNDERLINE,
-
- /**
- * @brief The default shadow parameters.
- * @details name "shadow", type STRING.
- * @SINCE_1_2.11
- */
- SHADOW,
-
- /**
- * @brief The default emboss parameters.
- * @details name "emboss", type STRING.
- * @SINCE_1_2.11
- */
- EMBOSS,
-
- /**
- * @brief The default outline parameters.
- * @details name "outline", type STRING.
- * @SINCE_1_2.11
- */
- OUTLINE,
-
- /**
- * @brief This enables Text visuals to automatically be converted to Batch-Text visuals.
- * @details Name "batchingEnabled", type Property::BOOLEAN.
- * @SINCE_1_2.11
- * @note Optional. If not specified, the default is false.
- */
- BATCHING_ENABLED,
};
} // namespace Property
} // namespace TextVisual
+/**
+ * @}
+ */
+
} // namespace Toolkit
} // namespace Dali