mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-30 06:32:42 +00:00
Added jlistbox_get_items_count() function.
This commit is contained in:
parent
d19321981d
commit
051577f725
@ -145,6 +145,11 @@ void jlistbox_select_index(JWidget widget, int index)
|
||||
jlistbox_select_child(widget, child);
|
||||
}
|
||||
|
||||
int jlistbox_get_items_count(JWidget widget)
|
||||
{
|
||||
return jlist_length(widget->children);
|
||||
}
|
||||
|
||||
/* setup the scroll to center the selected item in the viewport */
|
||||
void jlistbox_center_scroll(JWidget widget)
|
||||
{
|
||||
|
@ -42,6 +42,8 @@ int jlistbox_get_selected_index(JWidget listbox);
|
||||
void jlistbox_select_child(JWidget listbox, JWidget listitem);
|
||||
void jlistbox_select_index(JWidget listbox, int index);
|
||||
|
||||
int jlistbox_get_items_count(JWidget listbox);
|
||||
|
||||
void jlistbox_center_scroll(JWidget listbox);
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user