class::ui::LinkedElement

class ui::LinkedElement
  : public ui::Element

The Linked Element class uses links elements together to create navigation options between the elements.

Members

LinkedElement()
LinkedElement(

LinkedElement * parent,
LinkedElement * child
)

virtual LinkedElement * child() const
virtual Element * handle_event(

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

LinkedElement * parent() const
void set_child(

LinkedElement * c
)

void set_parent(

LinkedElement * p
)

Details

LinkedElement()

Constructs a Linked Element with parent and child set to zero.


LinkedElement(

LinkedElement * parent,
LinkedElement * child
)

Constructs a linked element.

Parameters

  • parent The parent of the element

  • child The child of the element


virtual LinkedElement * child() const

Accesses the element’s child (0 if there is no child).


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.


LinkedElement * parent() const

Accesses the parent element.


void set_child(

LinkedElement * c
)

Sets the element’s child.


void set_parent(

LinkedElement * p
)

Sets the element’s parent.


X

Thanks for Coming!

Subscribe to news and updates