#define DALI_TOOLKIT_INTERNAL_BORDER_VISUAL_H
/*
- * Copyright (c) 2016 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2019 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.
* @brief Create a new border visual.
*
* @param[in] factoryCache A pointer pointing to the VisualFactoryCache object
+ * @param[in] properties A Property::Map containing settings for this visual
* @return A smart-pointer to the newly allocated visual.
*/
- static BorderVisualPtr New( VisualFactoryCache& factoryCache );
+ static BorderVisualPtr New( VisualFactoryCache& factoryCache, const Property::Map& properties );
protected:
virtual ~BorderVisual();
/**
- * @copydoc Visual::Base::DoInitialize
+ * @copydoc Visual::Base::DoSetProperties
*/
- virtual void DoInitialize( Actor& actor, const Property::Map& propertyMap );
+ void DoSetProperties( const Property::Map& propertyMap ) override;
/**
- * @copydoc Visual::Base::DoSetOnStage
+ * @copydoc Visual::Base::DoSetOnScene
*/
- virtual void DoSetOnStage( Actor& actor );
+ void DoSetOnScene( Actor& actor ) override;
/**
* @copydoc Visual::Base::CreatePropertyMap
*/
- virtual void DoCreatePropertyMap( Property::Map& map ) const;
+ void DoCreatePropertyMap( Property::Map& map ) const override;
/**
- * @copydoc Visual::Base::DoSetProperty
+ * @copydoc Visual::Base::CreateInstancePropertyMap
*/
- virtual void DoSetProperty( Dali::Property::Index index, const Dali::Property::Value& propertyValue );
+ void DoCreateInstancePropertyMap( Property::Map& map ) const override;
/**
- * @copydoc Visual::Base::DoGetProperty
+ * @copydoc Visual::Base::OnSetTransform
*/
- virtual Dali::Property::Value DoGetProperty( Dali::Property::Index index );
-
-public:
-
- /**
- * Set the color of the border.
- * @param[in] color The border color.
- */
- void SetBorderColor( const Vector4& color);
-
- /**
- * Set the size of the border.
- * @param[in] size The border size.
- */
- void SetBorderSize( float size );
-
- /**
- * Enable/Disable the anti-aliasing.
- * @param[in] enable Whether the anti-aliasing be enabled or not.
- */
- void RequireAntiAliasing( bool antiAliasing );
+ void OnSetTransform() override;
private:
*/
Geometry CreateBorderGeometry();
+ /**
+ * Helper method to set individual values by index key.
+ * @param[in] index The index key of the value
+ * @param[in] value The value
+ */
+ void DoSetProperty( Property::Index index, const Property::Value& value );
+
// Undefined
BorderVisual( const BorderVisual& borderRenderer );