ListItemState Class Reference

#include <Pt/Forms/ListBoxStyler.h>

Transient visual state of a list item. More...

Public Member Functions

 ListItemState ()
 Constructs an empty list item state.
 
bool isEnabled () const
 Returns true if the item is currently enabled.
 
void setEnabled (bool value)
 Sets whether the item is enabled.
 
bool isHighlighted () const
 Returns true if the pointer is currently over the item.
 
void setHighlighted (bool value)
 Sets whether the pointer is over the item.
 
bool isFocused () const
 Returns true if the item currently has focus.
 
void setFocused (bool value)
 Sets whether the item has focus.
 
bool isSelected () const
 Returns true if the item is currently selected.
 
void setSelected (bool value)
 Sets whether the item is selected.
 

Detailed Description

ListItemState is the snapshot a ListBoxItem passes to measure, layout, and paint. It is not the application model. Enabled, highlighted, focused, and selected describe the look of one paint pass.