functional listbox

git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@328 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-10-14 16:41:38 +00:00
parent c6e267a2b7
commit c30431f166
8 changed files with 237 additions and 34 deletions

View File

@@ -16,10 +16,11 @@ typedef struct _MwTextKeyValue MwTextKeyValue;
typedef struct _MwUserHandlerKeyValue MwUserHandlerKeyValue;
typedef struct _MwVoidKeyValue MwVoidKeyValue;
typedef struct _MwFont MwFont;
typedef struct _MwMenu* MwMenu;
typedef struct _MwCursor MwCursor;
typedef struct _MwMenu* MwMenu;
typedef struct _MwEntry* MwEntry;
typedef struct _MwViewport* MwViewport;
typedef struct _MwListBox* MwListBox;
typedef struct _MwSizeHints MwSizeHints;
#ifdef _MILSKO
typedef struct _MwWidget* MwWidget;
@@ -88,6 +89,7 @@ struct _MwWidget {
void* internal;
void* opaque;
void (*draw_inject)(MwWidget handle);
MwIntegerKeyValue* integer;
MwTextKeyValue* text;
@@ -118,6 +120,13 @@ struct _MwViewport {
MwWidget inframe;
};
struct _MwListBox {
MwWidget vscroll;
MwWidget frame;
char** list;
int selected;
};
struct _MwSizeHints {
int min_width;
int min_height;