C4 Engine
C4 Engine API Documentation

Widget::GetLastSprocket

Defined in:  C4Widgets.h
Returns the last sprocket for a widget.
Prototype

Sprocket *GetLastSprocket(voidconst;

Description
The GetLastSprocket function returns the last sprocket attached to a widget. The entire list of sprockets can be iterated by calling the ListElement::GetPreviousListElement function on the returned object. If a widget has no sprockets, then the GetLastSprocket returns nullptr.
See Also

Widget::GetFirstSprocket

Widget::AddSprocket

Widget::RemoveSprocket

Sprocket