LineEditState Class Reference

#include <Pt/Forms/LineEditStyler.h>

Transient visual state of a line edit. More...

Public Member Functions

 LineEditState ()
 Constructs an empty line edit state.
 
bool isEnabled () const
 Returns true if the field is currently enabled.
 
void setEnabled (bool value)
 Sets whether the field is enabled.
 
bool isFocused () const
 Returns true if the field currently has focus.
 
void setFocused (bool value)
 Sets whether the field has focus.
 
bool isHighlighted () const
 Returns true if the pointer is currently over the field.
 
void setHighlighted (bool value)
 Sets whether the pointer is over the field.
 
bool isEditable () const
 Returns true if the field currently accepts editing.
 
void setEditable (bool value)
 Sets whether the field currently accepts editing.
 
bool isPlaceholder () const
 Returns true if the field currently shows placeholder text.
 
void setPlaceholder (bool value)
 Sets whether the field currently shows placeholder text.
 

Detailed Description

LineEditState is the snapshot a LineEdit passes to measure, layout, and paint. It is not the application model. Enabled, focused, highlighted, editable, and placeholder describe the look of one paint pass.