work on listbox

git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@327 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-10-14 14:39:40 +00:00
parent e07b752f6f
commit c6e267a2b7
22 changed files with 183 additions and 117 deletions

View File

@@ -33,5 +33,6 @@
#include <Mw/Widget/ScrollBar.h>
#include <Mw/Widget/NumberEntry.h>
#include <Mw/Widget/Viewport.h>
#include <Mw/Widget/ListBox.h>
#endif

View File

@@ -19,6 +19,7 @@ typedef struct _MwFont MwFont;
typedef struct _MwMenu* MwMenu;
typedef struct _MwCursor MwCursor;
typedef struct _MwEntry* MwEntry;
typedef struct _MwViewport* MwViewport;
typedef struct _MwSizeHints MwSizeHints;
#ifdef _MILSKO
typedef struct _MwWidget* MwWidget;
@@ -110,6 +111,13 @@ struct _MwEntry {
MwPoint mouse;
};
struct _MwViewport {
MwWidget vscroll;
MwWidget hscroll;
MwWidget frame;
MwWidget inframe;
};
struct _MwSizeHints {
int min_width;
int min_height;

View File

@@ -0,0 +1,25 @@
/* $Id$ */
/*!
* %file Mw/Widget/ListBox.h
* %brief ListBox widget
*/
#ifndef __MW_WIDGET_LISTBOX_H__
#define __MW_WIDGET_LISTBOX_H__
#include <Mw/MachDep.h>
#include <Mw/TypeDefs.h>
#ifdef __cplusplus
extern "C" {
#endif
/*!
* %brief ListBox widget class
*/
MWDECL MwClass MwListBoxClass;
#ifdef __cplusplus
}
#endif
#endif