X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Frenderers%2Fcontrol-renderer-impl.h;h=773e7c09428bf84af00746cc47c1548f799e0247;hp=cfa2da7fd169f071e2433c318086dadf545561dd;hb=refs%2Fchanges%2F62%2F48762%2F3;hpb=c560f95435d40fd3980cd5f92da65c9f28f440e7 diff --git a/dali-toolkit/internal/controls/renderers/control-renderer-impl.h b/dali-toolkit/internal/controls/renderers/control-renderer-impl.h index cfa2da7..773e7c0 100644 --- a/dali-toolkit/internal/controls/renderers/control-renderer-impl.h +++ b/dali-toolkit/internal/controls/renderers/control-renderer-impl.h @@ -61,12 +61,31 @@ public: virtual void SetSize( const Vector2& size ); /** - * @copydoc Toolkit::ControlRenderer::SetCipRect + * @copydoc Toolkit::ControlRenderer::GetSize + */ + const Vector2& GetSize() const; + + /** + * @copydoc Toolkit::ControlRenderer::GetNaturalSize + */ + virtual void GetNaturalSize( Vector2& naturalSize ) const; + + /** + * ToDo: Add this function to Toolkit::ControlRenderer when it is fully implemented. + * + * Set the clip rectangular of this renderer. + * The contents of the renderer will not be visible outside this rectangular. + * + * @param [in] clipRect The clipping rectangular. */ virtual void SetClipRect( const Rect& clipRect ); /** - * @copydoc Toolkit::ControlRenderer::SetOffset + *ToDo: Add this function to Toolkit::ControlRenderer when it is fully implemented. + * + * Reposition this renderer with a 2D offset. + * + * @param[in] offset The offset to reposition the renderer. */ virtual void SetOffset( const Vector2& offset ); @@ -76,15 +95,26 @@ public: void SetDepthIndex( float index ); /** + * @copydoc Toolkit::ControlRenderer::GetDepthIndex + */ + float GetDepthIndex() const; + + /** * @copydoc Toolkit::ControlRenderer::SetOnStage + * @pre Impl->mGeometry must be created before this method is called */ - virtual void SetOnStage( Actor& actor ); + void SetOnStage( Actor& actor ); /** * @copydoc Toolkit::ControlRenderer::SetOffStage */ void SetOffStage( Actor& actor ); + /** + * @copydoc Toolkit::ControlRenderer::CreatePropertyMap + */ + virtual void CreatePropertyMap( Property::Map& map ) const = 0; + protected: /** @@ -97,6 +127,22 @@ protected: */ virtual ~ControlRenderer(); +protected: + + /** + * Called by SetOnStage() allowing sub classes to respond to the SetOnStage event + * + * @param[in] actor The actor applying this renderer. + */ + virtual void DoSetOnStage( Actor& actor ); + + /** + * Called by SetOffStage() allowing sub classes to respond to the SetOffStage event + * + * @param[in] actor The actor applying this renderer. + */ + virtual void DoSetOffStage( Actor& actor ); + private: // Undefined