class::ui::ListItem

class ui::ListItem
  : public ui::LinkedElement

A ListItem represents an item in a List.

Summary

ListItem(

const var::ConstString & label,
LinkedElement * parent,
LinkedElement * child
)

virtual void draw_to_scale(

const draw::DrawingScaledAttr & attr
)

virtual Element * handle_event(

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

draw::IconAttr & icon()

draw::IconAttr & icon_attr()

const draw::IconAttr & icon_attr_const() const

const draw::IconAttr & icon_const() const

draw::TextAttr & text()

draw::TextAttr & text_attr()

const draw::TextAttr & text_const() const

Members

ListItem(

const var::ConstString & label,
LinkedElement * parent,
LinkedElement * child
)

Construct a new list item


virtual void draw_to_scale(

const draw::DrawingScaledAttr & attr
)

This methods draws the drawing on the specified attributes.

Parameters

  • attr Specifies the bitmap, point and area to draw the drawing

virtual Element * handle_event(

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

Handles an event sent by the event loop.

Parameters

  • event The event that should be handled

  • attr The draw::DrawingAttr to use to update the display based on the event.


draw::IconAttr & icon()

This methods gives read/write access to the icon attributes


draw::IconAttr & icon_attr()

const draw::IconAttr & icon_attr_const() const

const draw::IconAttr & icon_const() const

This methods gives read only access to the icon attributes


draw::TextAttr & text()

This methods gives read/write access to the text label attributes


draw::TextAttr & text_attr()

const draw::TextAttr & text_const() const

X

Thanks for Coming!

Subscribe to news and updates