X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fvisuals%2Fborder%2Fborder-visual.h;h=3fce5d6434b6241eb8f7f05ca6647e941ea77b1c;hp=c1e30d8766244bbb5046a5a01d629749b0fdc789;hb=c211a7d84885dca19c90b4656055002865e6fce2;hpb=63f9b5207c2794cdc460d587723be89585872a51;ds=sidebyside diff --git a/dali-toolkit/internal/visuals/border/border-visual.h b/dali-toolkit/internal/visuals/border/border-visual.h index c1e30d8..3fce5d6 100644 --- a/dali-toolkit/internal/visuals/border/border-visual.h +++ b/dali-toolkit/internal/visuals/border/border-visual.h @@ -20,6 +20,7 @@ // EXTERNAL INCLUDES #include +#include // INTERNAL INCLUDES #include @@ -33,6 +34,9 @@ namespace Toolkit namespace Internal { +class BorderVisual; +typedef IntrusivePtr< BorderVisual > BorderVisualPtr; + /** * The visual which renders a solid color to the control's quad border fixed to a specified size. * @@ -44,12 +48,21 @@ namespace Internal * | borderSize | FLOAT | * | antiAliasing | BOOLEAN | */ - class BorderVisual : public Visual::Base { public: /** + * @brief Create a new border visual. + * + * @param[in] factoryCache A pointer pointing to the VisualFactoryCache object + * @return A smart-pointer to the newly allocated visual. + */ + static BorderVisualPtr New( VisualFactoryCache& factoryCache ); + +protected: + + /** * @brief Constructor. * * @param[in] factoryCache A pointer pointing to the VisualFactoryCache object @@ -61,8 +74,6 @@ public: */ virtual ~BorderVisual(); -protected: - /** * @copydoc Visual::Base::DoInitialize */