carb::simplegui::ListClipper

Defined in carb/simplegui/SimpleGuiTypes.h

struct ListClipper

Helper: Manually clip large list of items.

If you are submitting lots of evenly spaced items and you have a random access to the list, you can perform coarse clipping based on visibility to save yourself from processing those items at all. The clipper calculates the range of visible items and advance the cursor to compensate for the non-visible items we have skipped.

Public Members

float startPosY

Start Y coordinate position;.

float itemsHeight

Height of items.

int32_t itemsCount

Number of items.

int32_t stepNo

Stepping.

int32_t displayStart

Display start index.

int32_t displayEnd

Display end index.