X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Frenderers%2Fborder%2Fborder-renderer.h;h=56ff9019e8c60d94590a95e7ceaf4097a70dc57f;hb=a2de9cf491172cd5da9dc9ed60b17683dab6d7bc;hp=c05ea1c933fceac6d560011511435a90b03238dd;hpb=669373aecf093fe345b679b0ebe1e8056b12af2c;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/controls/renderers/border/border-renderer.h b/dali-toolkit/internal/controls/renderers/border/border-renderer.h index c05ea1c..56ff901 100644 --- a/dali-toolkit/internal/controls/renderers/border/border-renderer.h +++ b/dali-toolkit/internal/controls/renderers/border/border-renderer.h @@ -37,10 +37,11 @@ namespace Internal * * The following properties are required for create a BorderRender * - * | %Property Name | Type | - * |------------------|-------------| - * | border-color | VECTOR4 | - * | border-size | FLOAT | + * | %Property Name | Type | + * |-----------------|-------------| + * | borderColor | VECTOR4 | + * | borderSize | FLOAT | + * | antiAliasing | BOOLEAN | */ class BorderRenderer : public ControlRenderer @@ -49,8 +50,10 @@ public: /** * @brief Constructor. + * + * @param[in] factoryCache A pointer pointing to the RendererFactoryCache object */ - BorderRenderer(); + BorderRenderer( RendererFactoryCache& factoryCache ); /** * @brief A reference counted object may only be deleted by calling Unreference(). @@ -60,16 +63,17 @@ public: public: // from ControlRenderer /** - * @copydoc ControlRenderer::Initialize - */ - virtual void Initialize( RendererFactoryCache& factoryCache, const Property::Map& propertyMap ); - - /** * @copydoc ControlRenderer::SetClipRect */ virtual void SetClipRect( const Rect& clipRect ); protected: + + /** + * @copydoc ControlRenderer::DoInitialize + */ + virtual void DoInitialize( Actor& actor, const Property::Map& propertyMap ); + /** * @copydoc ControlRenderer::DoSetOnStage */ @@ -78,18 +82,11 @@ protected: /** * @copydoc ControlRenderer::CreatePropertyMap */ - virtual void CreatePropertyMap( Property::Map& map ) const; + virtual void DoCreatePropertyMap( Property::Map& map ) const; public: /** - * Request the geometry and shader from the cache, if not available, create and save to the cache for sharing. - * - * @param[in] factoryCache A pointer pointing to the RendererFactoryCache object - */ - void Initialize( RendererFactoryCache& factoryCache ); - - /** * Set the color of the border. * @param[in] color The border color. */ @@ -101,9 +98,26 @@ public: */ void SetBorderSize( float size ); + /** + * Enable/Disable the anti-aliasing. + * @param[in] enable Whether the anti-aliasing be enabled or not. + */ + void RequireAntiAliasing( bool antiAliasing ); + private: /** + * @brief Initialize the renderer with the geometry and shader from the cache, if not available, create and save to the cache for sharing. + */ + void InitializeRenderer(); + + /** + * Request the border shader from the factory cache. If fail, create tha shader and add it to cache. + * @return The border shader. + */ + Shader GetBorderShader(); + + /** * Create the geometry which presents the border. * @return The border geometry */ @@ -122,6 +136,8 @@ private: Property::Index mBorderColorIndex; Property::Index mBorderSizeIndex; + + bool mAntiAliasing; }; } // namespace Internal