X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=dali-toolkit%2Fdevel-api%2Fvisual-factory%2Fvisual-base.h;h=f7ffb51d42f5a68359d6e6649046a360cf151fc8;hb=cb93c3930ba6271ae4b93a46fbb518833d580651;hp=7cfadbf9cc2bafee3912cd8b42dee30afaec51af;hpb=ccd53048e482f41b00ad1daa7664b3781d6b7626;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 7cfadbf..f7ffb51 100644 --- a/dali-toolkit/devel-api/visual-factory/visual-base.h +++ b/dali-toolkit/devel-api/visual-factory/visual-base.h @@ -128,32 +128,39 @@ 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 ); + void SetTransformAndSize( const Dali::Property::Map& transform, Size controlSize ); /** - * @brief Get the size of the painting area. + * @brief Returns the height for a given width. + * + * @param[in] width Width to use. * - * @return The size of the visual's painting area. + * @return The height based on the width. */ - const Vector2& GetSize() const; + float GetHeightForWidth( float width ); /** - * @brief Returns the height for a given width. + * @brief Returns the width for a given height. * - * @param[in] width Width to use. + * @param[in] height Height to use. * - * @return The height based on the width. + * @return The width based on the height. */ - float GetHeightForWidth( float width ) const; + float GetWidthForHeight( float height ); /** * @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 */ @@ -183,23 +190,6 @@ public: */ void CreatePropertyMap( Dali::Property::Map& map ) const; - /** - * @brief Sets the value of an existing property. - * - * @param [in] index The index of the property. - * @param [in] propertyValue The new value of the property. - */ - void SetProperty( Dali::Property::Index index, const Dali::Property::Value& propertyValue ); - - /** - * @brief Retrieves a property value. - * - * @param [in] index The index of the property. - * - * @return The property value. - */ - Dali::Property::Value GetProperty( Dali::Property::Index index ); - public: // Not intended for application developers explicit DALI_INTERNAL Base(Internal::Visual::Base *impl);