X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Fdevel-api%2Fvisual-factory%2Fvisual-base.h;h=b590484e1505c7007bc2e784414e90a2b4a6a875;hp=40864e5af1d59a16200ce10d7f3856e8c1610253;hb=83066ea18044c04fbbf0378aa6863416c532e10b;hpb=11ed6421771d05113ae1a6510167d8c2557ac20e diff --git a/dali-toolkit/devel-api/visual-factory/visual-base.h b/dali-toolkit/devel-api/visual-factory/visual-base.h index 40864e5..b590484 100644 --- a/dali-toolkit/devel-api/visual-factory/visual-base.h +++ b/dali-toolkit/devel-api/visual-factory/visual-base.h @@ -76,6 +76,22 @@ public: Base& operator=( const Base& handle ); /** + * @brief Set the name of the visual + * + * Used by the styling system to animate properties + * @param[in] name The name to give the visual + */ + void SetName( const std::string& name ); + + /** + * @brief Get the name of the visual + * + * Used by the styling system to animate properties + * @return The name of the visual + */ + const std::string& GetName(); + + /** * @brief Set the size of the painting area. * * @param[in] size The size of the painting area. @@ -90,13 +106,22 @@ public: const Vector2& GetSize() const; /** + * @brief Returns the height for a given width. + * + * @param[in] width Width to use. + * + * @return The height based on the width. + */ + float GetHeightForWidth( float width ) const; + + /** * @brief Return the natural size of the visual. * * Deriving classes stipulate the natural size and by default a visual has a ZERO natural size. * * @param[out] naturalSize The visual's natural size */ - void GetNaturalSize( Vector2& naturalSize ) const; + void GetNaturalSize( Vector2& naturalSize ); /** * @brief Set the depth index of this visual. @@ -116,7 +141,7 @@ public: float GetDepthIndex() const; /** - * @brief Visual needs to know when when the control is put on to the stage to add the renderer. + * @brief Visual needs to know when the control is put on to the stage to add the renderer. * * This function should be called when the control is put on to the stage. * @@ -126,7 +151,7 @@ public: void SetOnStage( Actor& actor ); /** - * @brief Visual needs to know when when the control is removed from the stage to remove the renderer. + * @brief Visual needs to know when the control is removed from the stage to remove the renderer. * * This function should be called when the control is removed from the stage * @@ -150,6 +175,23 @@ 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);