- Button( const Button& button );
-
- /**
- * @brief Assignment operator.
- */
- Button& operator=( const Button& button );
-
- /**
- * @brief Downcast an Object handle to Button.
- *
- * If handle points to a Button the downcast produces valid
- * handle. If not the returned handle is left uninitialized.
- *
- * @param[in] handle Handle to an object
- * @return handle to a Button or an uninitialized handle
- */
- static Button DownCast( BaseHandle handle );
-
- /**
- * @brief Destructor
- *
- * This is non-virtual since derived Handle types must not contain data or virtual methods.
- */
- ~Button();
-
- /**
- * @brief Sets the button as \e disabled.
- *
- * No signals are emitted when the \e disabled property is set.
- *
- * @param[in] disabled property.
- */
- void SetDisabled( bool disabled );
-
- /**
- * @return \e true if the button is \e disabled.
- */
- bool IsDisabled() const;
-
- /**
- * @brief Sets the \e autorepeating property.
- *
- * If the \e autorepeating property is set to \e true, then the \e togglable property is set to false
- * but no signal is emitted.
- *
- * @param[in] autoRepeating \e autorepeating property.
- */
- void SetAutoRepeating( bool autoRepeating );
-
- /**
- * @return \e true if the \e autorepeating property is set.
- */
- bool IsAutoRepeating() const;
-
- /**
- * @brief Sets the initial autorepeating delay.
- *
- * By default this value is set to 0.15 seconds.
- *
- * @pre initialAutoRepeatingDelay must be greater than zero.
- * @param[in] initialAutoRepeatingDelay in seconds.
- */
- void SetInitialAutoRepeatingDelay( float initialAutoRepeatingDelay );
-
- /**
- * @return the initial autorepeating delay in seconds.
- */
- float GetInitialAutoRepeatingDelay() const;
-
- /**
- * @brief Sets the next autorepeating delay.
- *
- * By default this value is set to 0.05 seconds.
- *
- * @pre nextAutoRepeatingDelay must be greater than zero.
- * @param[in] nextAutoRepeatingDelay in seconds.
- */
- void SetNextAutoRepeatingDelay( float nextAutoRepeatingDelay );
-
- /**
- * @return the next autorepeating delay in seconds.
- */
- float GetNextAutoRepeatingDelay() const;
-
- /**
- * @brief Sets the \e togglable property.
- *
- * If the \e togglable property is set to \e true, then the \e autorepeating property is set to false.
- *
- * @param[in] togglable property.
- */
- void SetTogglableButton( bool togglable );
-
- /**
- * @return \e true if the \e togglable property is set.
- */
- bool IsTogglableButton() const;
-
- /**
- * Sets the button as selected or unselected.
- *
- * \e togglable property must be set to \e true.
- *
- * Emits a Button::StateChangedSignal() signal.
- *
- * @param[in] selected property.
- */
- void SetSelected( bool selected );
-
- /**
- * @return \e true if the \e selected property is set and the button is togglable.
- */
- bool IsSelected() const;
-
- /**
- * @brief Sets the animation time.
- *
- * @param[in] animationTime The animation time in seconds.
- */
- void SetAnimationTime( float animationTime );
-
- /**
- * @brief Retrieves button's animation time.
- *
- * @return The animation time in seconds.
- */
- float GetAnimationTime() const;
-
- /**
- * @brief Sets the button's label.
- *
- * @param[in] label The label text.
- */
- void SetLabelText( const std::string& label );
-
- /**
- * @brief Gets the label.
- *
- * @return The label text.
- */
- std::string GetLabelText() const;
-
- /**
- * @brief Sets the unselected button image.
- *
- * @param[in] filename The button image.
- */
- void SetUnselectedImage( const std::string& filename );
-
- /**
- * @brief Sets the background image.
- *
- * @param[in] filename The background image.
- */
- void SetBackgroundImage( const std::string& filename );
-
- /**
- * @brief Sets the selected image.
- *
- * @param[in] filename The selected image.
- */
- void SetSelectedImage( const std::string& filename );
-
- /**
- * @brief Sets the selected background image.
- *
- * @param[in] filename The selected background image.
- */
- void SetSelectedBackgroundImage( const std::string& filename );
-
- /**
- * @brief Sets the disabled background image.
- *
- * @param[in] filename The disabled background image.
- */
- void SetDisabledBackgroundImage( const std::string& filename );
-
- /**
- * @brief Sets the disabled button image.
- *
- * @param[in] filename The disabled button image.
- */
- void SetDisabledImage( const std::string& filename );
-
- /**
- * @brief Sets the disabled selected button image.
- *
- * @param[in] filename The disabled selected button image.
- */
- void SetDisabledSelectedImage( const std::string& filename );
-
- // Deprecated API