// INTERNAL INCLUDES
#include <dali-toolkit/public-api/text/rendering-backend.h>
#include <dali-toolkit/public-api/visuals/text-visual-properties.h>
+#include <dali-toolkit/devel-api/visual-factory/devel-visual-properties.h>
#include <dali-toolkit/internal/text/text-effects-style.h>
#include <dali-toolkit/internal/styling/style-manager-impl.h>
DALI_PROPERTY_REGISTRATION( Toolkit, TextLabel, "renderingBackend", INTEGER, RENDERING_BACKEND )
DALI_PROPERTY_REGISTRATION( Toolkit, TextLabel, "text", STRING, TEXT )
DALI_PROPERTY_REGISTRATION( Toolkit, TextLabel, "fontFamily", STRING, FONT_FAMILY )
-DALI_PROPERTY_REGISTRATION( Toolkit, TextLabel, "fontStyle", STRING, FONT_STYLE )
+DALI_PROPERTY_REGISTRATION( Toolkit, TextLabel, "fontStyle", MAP, FONT_STYLE )
DALI_PROPERTY_REGISTRATION( Toolkit, TextLabel, "pointSize", FLOAT, POINT_SIZE )
DALI_PROPERTY_REGISTRATION( Toolkit, TextLabel, "multiLine", BOOLEAN, MULTI_LINE )
DALI_PROPERTY_REGISTRATION( Toolkit, TextLabel, "horizontalAlignment", STRING, HORIZONTAL_ALIGNMENT )
DALI_PROPERTY_REGISTRATION( Toolkit, TextLabel, "autoScrollLoopCount", INTEGER, AUTO_SCROLL_LOOP_COUNT )
DALI_PROPERTY_REGISTRATION( Toolkit, TextLabel, "autoScrollGap", FLOAT, AUTO_SCROLL_GAP )
DALI_PROPERTY_REGISTRATION( Toolkit, TextLabel, "lineSpacing", FLOAT, LINE_SPACING )
-DALI_PROPERTY_REGISTRATION( Toolkit, TextLabel, "underline", STRING, UNDERLINE )
-DALI_PROPERTY_REGISTRATION( Toolkit, TextLabel, "shadow", STRING, SHADOW )
-DALI_PROPERTY_REGISTRATION( Toolkit, TextLabel, "emboss", STRING, EMBOSS )
-DALI_PROPERTY_REGISTRATION( Toolkit, TextLabel, "outline", STRING, OUTLINE )
+DALI_PROPERTY_REGISTRATION( Toolkit, TextLabel, "underline", MAP, UNDERLINE )
+DALI_PROPERTY_REGISTRATION( Toolkit, TextLabel, "shadow", MAP, SHADOW )
+DALI_PROPERTY_REGISTRATION( Toolkit, TextLabel, "emboss", MAP, EMBOSS )
+DALI_PROPERTY_REGISTRATION( Toolkit, TextLabel, "outline", MAP, OUTLINE )
DALI_TYPE_REGISTRATION_END()
Vector4 color;
bool offsetDefined = false;
Vector2 offset;
- const bool empty = Text::ParseProperties( value.Get<std::string>(),
- colorDefined,
- color,
- offsetDefined,
- offset );
+ const bool empty = Text::ParseShadowProperties( value.Get<Property::Map>(),
+ colorDefined,
+ color,
+ offsetDefined,
+ offset );
if( !empty )
{
Vector4 color;
bool offsetDefined = false;
Vector2 offset;
- const bool empty = Text::ParseProperties( value.Get<std::string>(),
- colorDefined,
- color,
- offsetDefined,
- offset );
+ const bool empty = Text::ParseShadowProperties( value.Get<Property::Map>(),
+ colorDefined,
+ color,
+ offsetDefined,
+ offset );
if( !empty )
{
Vector4 color;
bool heightDefined = false;
float height = 0.f;
- const bool empty = Text::ParseProperties( value.Get<std::string>(),
- enabled,
- colorDefined,
- color,
- heightDefined,
- height );
+ const bool empty = Text::ParseUnderlineProperties( value.Get<Property::Map>(),
+ enabled,
+ colorDefined,
+ color,
+ heightDefined,
+ height );
if( !empty )
{
Vector4 color;
bool heightDefined = false;
float height = 0.f;
- const bool empty = Text::ParseProperties( value.Get<std::string>(),
- enabled,
- colorDefined,
- color,
- heightDefined,
- height );
+ const bool empty = Text::ParseUnderlineProperties( value.Get<Property::Map>(),
+ enabled,
+ colorDefined,
+ color,
+ heightDefined,
+ height );
if( !empty && colorDefined )
{
Vector4 color;
bool heightDefined = false;
float height = 0.f;
- const bool empty = Text::ParseProperties( value.Get<std::string>(),
- enabled,
- colorDefined,
- color,
- heightDefined,
- height );
+ const bool empty = Text::ParseUnderlineProperties( value.Get<Property::Map>(),
+ enabled,
+ colorDefined,
+ color,
+ heightDefined,
+ height );
if( !empty && heightDefined )
{
// Creates the text's visual.
Property::Map visualMap;
- visualMap[Toolkit::Visual::Property::TYPE] = Toolkit::Visual::TEXT;
+ visualMap[Toolkit::VisualProperty::TYPE] = Toolkit::Visual::TEXT;
visualMap[Toolkit::TextVisual::Property::RENDERING_BACKEND] = static_cast<int>( DEFAULT_RENDERING_BACKEND );
mVisual = Toolkit::VisualFactory::Get().CreateVisual( visualMap );