class::ui::ListItemToggle

class ui::ListItemToggle
  : public ui::ListItem

The ListItemToggle object is for storing editing a boolean value in the application settings. The value can be changed directly in the list by selecting it.

Summary

ListItemToggle(

const char * label,
LinkedElement * parent
)

virtual Element * handle_event(

const Event & event,
const draw::DrawingAttr & attr
)

void set_enabled(

bool v
)

Members

ListItemToggle(

const char * label,
LinkedElement * parent
)


virtual Element * handle_event(

const Event & event,
const draw::DrawingAttr & attr
)

This method will toggle the value of the item and return the parent list


void set_enabled(

bool v
)

This methods will set the enabled flag as specified


X

Thanks for Coming!

Subscribe to news and updates