more methods

git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@332 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-10-14 18:36:31 +00:00
parent 8bbfeb5959
commit 5834771c75
11 changed files with 52 additions and 0 deletions

View File

@@ -211,3 +211,12 @@ void MwListBoxDelete(MwWidget handle, int index) {
MwForceRender(lb->frame);
}
}
const char* MwListBoxGet(MwWidget handle, int index) {
MwListBox lb = handle->internal;
if(index < 0) return NULL;
if(index >= arrlen(lb->list)) return NULL;
return lb->list[index];
}