ButtonState Class Reference

#include <Pt/Forms/ButtonStyle.h>

Stores the widget-local visual state for a push button. More...

Public Member Functions

 ButtonState ()
 Constructs an empty button state.
 
bool isEnabled () const
 Returns true if the button is currently enabled.
 
void setEnabled (bool value)
 Sets whether the button is enabled.
 
bool isHovered () const
 Returns true if the pointer is currently hovering the button.
 
void setHovered (bool value)
 Sets whether the pointer is currently hovering the button.
 
bool isFocused () const
 Returns true if the button currently has focus.
 
void setFocused (bool value)
 Sets whether the button has focus.
 
bool isPressed () const
 Returns true if the button is currently pressed.
 
void setPressed (bool value)
 Sets whether the button is pressed.
 
bool isFlat () const
 Returns true if the button uses flat rendering.
 
void setFlat (bool value)
 Sets whether the button uses flat rendering.
 

Detailed Description

Carries only the transient interaction state that render and icon hooks may observe directly.