X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Fdevel-api%2Fvisual-factory%2Fvisual-base.h;h=8b0f576158467788666ed6891dc1e91a55211b9e;hb=refs%2Fchanges%2F32%2F98732%2F1;hp=41962766f716649c4ca02fe8628a1b8bfbbe0e8f;hpb=af10e25bb20325d256ba5aa00aae248cbf7c5baa;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/devel-api/visual-factory/visual-base.h b/dali-toolkit/devel-api/visual-factory/visual-base.h index 4196276..8b0f576 100644 --- a/dali-toolkit/devel-api/visual-factory/visual-base.h +++ b/dali-toolkit/devel-api/visual-factory/visual-base.h @@ -128,18 +128,12 @@ public: const std::string& GetName(); /** - * @brief Set the size of the painting area. + * @brief Sets the transform and the control size * - * @param[in] size The size of the painting area. + * @param[in] transform A property map describing the transform + * @param[in] controlSize The size of the parent control for visuals that need to scale internally. */ - void SetSize( const Vector2& size ); - - /** - * @brief Get the size of the painting area. - * - * @return The size of the visual's painting area. - */ - const Vector2& GetSize() const; + void SetTransformAndSize( const Dali::Property::Map& transform, Size controlSize ); /** * @brief Returns the height for a given width. @@ -153,7 +147,11 @@ public: /** * @brief Return the natural size of the visual. * - * Deriving classes stipulate the natural size and by default a visual has a ZERO natural size. + * Deriving classes stipulate the natural size and by default a + * visual has a ZERO natural size. + * + * @note A visual may not actually have a natural size until it has + * been placed on stage and acquired all it's resources. * * @param[out] naturalSize The visual's natural size */ @@ -177,15 +175,6 @@ public: float GetDepthIndex() const; /** - * @brief Remove the renderer from the actor and reset the visual self. - * - * This function can be called with an empty handle. If the visual is empty, this is a no-op. - * - * @param[in] actor The actor to be set off stage. - */ - void RemoveAndReset( Actor& actor ); - - /** * @brief Create the property map representing this visual. * * @param[out] map The visual property map.