class::ui::ListAttr

The list attribute stores the data needed to create and navigate a list.

Summary

ListAttr()

list_attr_size_t calc_display_items() const

list_attr_size_t calc_next_visible(

s8 dir
) const

list_attr_size_t calc_visible_offset(

void
) const

void dec_selected(

void
)

void inc_selected(

void
)

u8 scroll_animation_frames() const

list_attr_size_t selected() const

void set_scroll_animation_frames(

u8 frames
)

void set_selected(

list_attr_size_t
)

void set_visible_items(

list_attr_size_t v
)

list_attr_size_t size() const

list_attr_size_t visible_items() const

Members

ListAttr()

Construct a List Attribute object


list_attr_size_t calc_display_items() const

Calculate the number of items to display


list_attr_size_t calc_next_visible(

s8 dir
) const

Calculate the index of the next visible item in the specified direction


list_attr_size_t calc_visible_offset(

void
) const

Calculate the offset to the visible items


void dec_selected(

void
)

Decrement the currently selected value


void inc_selected(

void
)

Increment the currently selected value


u8 scroll_animation_frames() const

Access the number of animation frames used when scrolling


list_attr_size_t selected() const

Return the value of the currently selected item in the list


void set_scroll_animation_frames(

u8 frames
)

Sets the number of animation frames used when scrolling


void set_selected(

list_attr_size_t
)

Set which item in the list is currently selected


void set_visible_items(

list_attr_size_t v
)

Set the number of visible items in the list


list_attr_size_t size() const

Calculate the index of the next visible item in the specified direction


list_attr_size_t visible_items() const

Return the number of visible items in the list


X

Thanks for Coming!

Subscribe to news and updates