SpinBoxState Class Reference

#include <Pt/Forms/SpinBoxStyler.h>

Transient visual state of a spin box. More...

Public Member Functions

 SpinBoxState ()
 Constructs an empty spin box state.
bool isEnabled () const
 Returns true if the box is currently enabled.
void setEnabled (bool value)
 Sets whether the box is enabled.
bool isHovered () const
 Returns true if the pointer is currently over the box.
void setHovered (bool value)
 Sets whether the pointer is over the box.
bool isFocused () const
 Returns true if the box currently has focus.
void setFocused (bool value)
 Sets whether the box has focus.
bool isEditable () const
 Returns true if the box currently accepts typing.
void setEditable (bool value)
 Sets whether the box currently accepts typing.
bool isUpPressed () const
 Returns true if the up control is currently pressed.
void setUpPressed (bool value)
 Sets whether the up control is pressed.
bool isUpHovered () const
 Returns true if the pointer is currently over the up control.
void setUpHovered (bool value)
 Sets whether the pointer is over the up control.
bool isDownPressed () const
 Returns true if the down control is currently pressed.
void setDownPressed (bool value)
 Sets whether the down control is pressed.
bool isDownHovered () const
 Returns true if the pointer is currently over the down control.
void setDownHovered (bool value)
 Sets whether the pointer is over the down control.

Detailed Description

SpinBoxState is the snapshot a SpinBox passes to measure, layout, and paint. It is not the application model. Enabled, hovered, focused, editable, and the up and down control flags describe the look of one paint pass.