X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Fbuttons%2Fpush-button-default-painter-impl.h;h=ed13641f4f23d0f934440363dd39af726868a260;hb=3b16ae16f01bd50a26e6c44e6e20ebb8499b4f91;hp=2ef708cb77997af2f638d1546a28bf74140b17b2;hpb=f4d559ea999cbbc44b1ecd489c4ca3711d37feca;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/controls/buttons/push-button-default-painter-impl.h b/dali-toolkit/internal/controls/buttons/push-button-default-painter-impl.h index 2ef708c..ed13641 100644 --- a/dali-toolkit/internal/controls/buttons/push-button-default-painter-impl.h +++ b/dali-toolkit/internal/controls/buttons/push-button-default-painter-impl.h @@ -68,150 +68,89 @@ public: */ ~PushButtonDefaultPainter(); + ///////////////////////////////////////////////////////////////////////////// + // ButtonPainter interface + ///////////////////////////////////////////////////////////////////////////// + /** - * Sets the button image. - * - * It adds the button image to the root actor and creates the image transition if needed. - * - * @param[inout] pushButton The button in which all actors that form its appearance are going to be added. - * @param[in] image The button image. + * @copydoc ButtonPainter::Initialize( Toolkit::Button& button ) */ - void SetButtonImage( Toolkit::PushButton& pushButton, Actor image ); + virtual void Initialize( Toolkit::Button& button ); /** - * Sets the background image. - * - * It adds the background image to the root actor and creates the image transition if needed. - * - * @param[inout] pushButton The button in which all actors that form its appearance are going to be added. - * @param[in] image The background image. + * @copydoc ButtonPainter::SetSize( Toolkit::Button& button, const Vector3& size ) */ - void SetBackgroundImage( Toolkit::PushButton& pushButton, Actor image ); + virtual void SetSize( Toolkit::Button& button, const Vector3& size ); /** - * Sets the selected image. - * - * It adds the selected image to the root actor and creates the image transition if needed. - * - * @param[inout] pushButton The button in which all actors that form its appearance are going to be added. - * @param[in] image The selected image. + * @copydoc ButtonPainter::SetDisabled( Toolkit::Button& button, bool disabled ) */ - void SetSelectedImage( Toolkit::PushButton& pushButton, Actor image ); + virtual void SetDisabled( Toolkit::Button& button, bool disabled ); /** - * Sets the disabled background image. - * - * It adds the disabled background image to the root actor and creates the image transition if needed. - * - * @param[inout] pushButton The button in which all actors that form its appearance are going to be added. - * @param[in] image The disabled background image. + * @copydoc ButtonPainter::SetAnimationTime( float animationTime ) */ - void SetDisabledBackgroundImage( Toolkit::PushButton& pushButton, Actor image ); + virtual void SetAnimationTime( float animationTime ); /** - * Sets the disabled image. - * - * It adds the disabled image to the root actor and creates the image transition if needed. - * - * @param[inout] pushButton The button in which all actors that form its appearance are going to be added. - * @param[in] image The image. + * @copydoc ButtonPainter::GetAnimationTime() */ - void SetDisabledImage( Toolkit::PushButton& pushButton, Actor image ); + virtual float GetAnimationTime() const; /** - * Sets the label. - * - * It adds the label to the root actor. - * - * @param[inout] pushButton The button in which all actors that form its appearance are going to be added. - * @param[in] label Button label. + * @copydoc ButtonPainter::SetLabel( Toolkit::Button& button, Actor label ) */ - void SetLabel( Toolkit::PushButton& pushButton, Actor label ); - - ///////////////////////////////////////////////////////////////////////////// - // ButtonPainter interface - ///////////////////////////////////////////////////////////////////////////// + virtual void SetLabel( Toolkit::Button& button, Actor label ); /** - * Initializes the painter by setting the default images. - * - * @param[inout] button The button in which all actors that form its appearance are going to be added. + * @copydoc ButtonPainter::SetAutoRepeating( bool autorepeating ) */ - void Initialize( Toolkit::Button& button ); + virtual void SetAutoRepeating( bool autorepeating ); /** - * Sets the new size. - * - * Resizes actors. It applies size constraints. - * - * @param[inout] button The button which stores button's images. - * @param[in] size The new size. + * @copydoc ButtonPainter::SetButtonImage( Toolkit::Button& button, Actor image ) */ - void SetSize( Toolkit::Button& button, const Vector3& size ); + virtual void SetButtonImage( Toolkit::Button& button, Actor image ); /** - * This method is called when the \e disabled property in the Dali::Toolkit::PushButton changes. - * - * Creates image transitions if needed. - * - * @param[inout] button The button in which all actors that form its appearance are going to be added. - * @param[in] disabled property. + * @copydoc ButtonPainter::SetSelectedImage( Toolkit::Button& button, Actor image ) */ - void SetDisabled( Toolkit::Button& button, bool disabled ); + virtual void SetSelectedImage( Toolkit::Button& button, Actor image ); /** - * Sets the animation time. - * @param[in] animationTime The animation time. + * @copydoc ButtonPainter::SetBackgroundImage( Toolkit::Button& button, Actor image ) */ - void SetAnimationTime( float animationTime ); + virtual void SetBackgroundImage( Toolkit::Button& button, Actor image ); /** - * Retrieves the animation time. - * @return The animation time. + * @copydoc ButtonPainter::SetDisabledImage( Toolkit::Button& button, Actor image ) */ - float GetAnimationTime() const; - - ///////////////////////////////////////////////////////////////////////////// - // PushButtonPainter interface - ///////////////////////////////////////////////////////////////////////////// + virtual void SetDisabledImage( Toolkit::Button& button, Actor image ); /** - * This method is called when the \e autorepeating property in the Dali::Toolkit::PushButton changes. - * @param[in] autorepeating property. + * @copydoc ButtonPainter::SetDisabledBackgroundImage( Toolkit::Button& button, Actor image ) */ - void SetAutoRepeating( bool autorepeating ); + virtual void SetDisabledBackgroundImage( Toolkit::Button& button, Actor image ); /** - * This method is called when the Dali::Toolkit::Internal::PushButton in which this object is registered - * is pressed. It changes to the selected image with a transition. - * - * @param[inout] button The Dali::Toolkit::PushButton in which this object is registered. + * @copydoc ButtonPainter::Pressed( Toolkit::Button& button ) */ - void Pressed( Toolkit::PushButton& button ); + void Pressed( Toolkit::Button& button ); /** - * This method is called when the Dali::Toolkit::Internal::PushButton in which this object is registered - * is released. It changes to the button image with a transition. - * - * @param[inout] button The Dali::Toolkit::PushButton in which this object is registered. + * @copydoc ButtonPainter::Released( Toolkit::Button& button ) */ - void Released( Toolkit::PushButton& button ); + void Released( Toolkit::Button& button ); /** - * This method is called when the Dali::Toolkit::Internal::PushButton in which this object is registered - * is clicked. - * - * @param[inout] button The Dali::Toolkit::PushButton in which this object is registered. + * @copydoc ButtonPainter::Clicked( Toolkit::Button& button ) */ - void Clicked( Toolkit::PushButton& button ); + void Clicked( Toolkit::Button& button ); /** - * This method is called when the Dali::Toolkit::Internal::PushButton in which this object is registered - * is toggled. - * - * @param[inout] button The Dali::Toolkit::PushButton in which this object is registered. + * @copydoc ButtonPainter::Selected( Toolkit::Button& button ) */ - void Toggled( Toolkit::PushButton& button ); + void Selected( Toolkit::Button& button ); private: