X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Fbuttons%2Fbutton-painter-impl.h;h=3014a7578f9061e251eb343604cc0623d733d644;hb=3b16ae16f01bd50a26e6c44e6e20ebb8499b4f91;hp=70215c5ee366e78e45c75a16edffcb67c04ff3a9;hpb=f4d559ea999cbbc44b1ecd489c4ca3711d37feca;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/controls/buttons/button-painter-impl.h b/dali-toolkit/internal/controls/buttons/button-painter-impl.h index 70215c5..3014a75 100644 --- a/dali-toolkit/internal/controls/buttons/button-painter-impl.h +++ b/dali-toolkit/internal/controls/buttons/button-painter-impl.h @@ -81,7 +81,7 @@ public: virtual void SetSize( Toolkit::Button& button, const Vector3& size ) = 0; /** - * This method is called from the Dali::Toolkit::Internal::PushButton when the \e disabled property changes. + * This method is called from the Dali::Toolkit::Internal::Button when the \e disabled property changes. * * @param[inout] button The button in which all actors that form its appearance are going to be added. * @param[in] disabled The disabled state. @@ -89,6 +89,12 @@ public: virtual void SetDisabled( Toolkit::Button& button, bool disabled ) = 0; /** + * This method is called from the Dali::Toolkit::Internal::PushButton when the \e autorepeating property changes. + * @param[in] autorepeating property. + */ + virtual void SetAutoRepeating( bool autorepeating ) {} + + /** * Sets the animation time. * @param [in] animationTime The animation time in seconds. */ @@ -99,6 +105,94 @@ public: * @return The animation time in seconds. */ virtual float GetAnimationTime() const = 0; + + /** + * Sets the label. + * It adds the label to the root actor. + * @param[inout] button The button in which all actors that form its appearance are going to be added. + * @param[in] label Button label. + */ + virtual void SetLabel( Toolkit::Button& button, Actor label ) {} + + /** + * Sets the button image. + * It adds the button image to the root actor and creates the image transition if needed. + * @param[inout] button The button in which all actors that form its appearance are going to be added. + * @param[in] image The button image. + */ + virtual void SetButtonImage( Toolkit::Button& button, Actor image ) {} + + /** + * Sets the selected image. + * It adds the selected image to the root actor and creates the image transition if needed. + * @param[inout] button The button in which all actors that form its appearance are going to be added. + * @param[in] image The selected image. + */ + virtual void SetSelectedImage( Toolkit::Button& button, Actor image ) {} + + /** + * Sets the background image. + * It adds the background image to the root actor and creates the image transition if needed. + * @param[inout] button The button in which all actors that form its appearance are going to be added. + * @param[in] image The background image. + */ + virtual void SetBackgroundImage( Toolkit::Button& button, Actor image ) {} + + /** + * Sets the disabled image. + * It adds the disabled image to the root actor and creates the image transition if needed. + * @param[inout] button The button in which all actors that form its appearance are going to be added. + * @param[in] image The disabled button image. + */ + virtual void SetDisabledImage( Toolkit::Button& button, Actor image ) {} + + /** + * Sets the disabled selected image. + * It adds the disabled selected image to the root actor and creates the image transition if needed. + * @param[inout] button The button in which all actors that form its appearance are going to be added. + * @param[in] image The disabled selected image. + */ + virtual void SetDisabledSelectedImage( Toolkit::Button& button, Actor image ) {} + + /** + * Sets the disabled background image. + * It adds the disabled background image to the root actor and creates the image transition if needed. + * @param[inout] button The button in which all actors that form its appearance are going to be added. + * @param[in] image The disabled background image. + */ + virtual void SetDisabledBackgroundImage( Toolkit::Button& button, Actor image ) {} + + /** + * This method is called when the Dali::Toolkit::Internal::Button, in which this + * object is registered, is pressed. + * @param[inout] button The Dali::Toolkit::Button, linked to the internal + * implementation, in which this object is registered. + */ + virtual void Pressed( Toolkit::Button& button ) {} + + /** + * This method is called when the Dali::Toolkit::Internal::Button, in which this + * object is registered, is released. + * @param[inout] button The Dali::Toolkit::Button, linked to the internal + * implementation, in which this object is registered. + */ + virtual void Released( Toolkit::Button& button ) {} + + /** + * This method is called when the Dali::Toolkit::Internal::Button, in which this + * object is registered, is clicked. + * @param[inout] button The Dali::Toolkit::Button, linked to the internal + * implementation, in which this object is registered. + */ + virtual void Clicked( Toolkit::Button& button ) {} + + /** + * This method is called when the Dali::Toolkit::Internal::Button, in which this + * object is registered, changes its state. + * @param[inout] button The Dali::Toolkit::Button, linked to the internal + * implementation, in which this object is registered. + */ + virtual void Selected( Toolkit::Button& button ) {} }; } // namespace Internal