numberentry

git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@246 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-10-10 06:08:19 +00:00
parent 4a23bf61b3
commit 9fc580eeb2
13 changed files with 189 additions and 40 deletions

View File

@@ -29,5 +29,6 @@
#include <Mw/Widget/Image.h>
#include <Mw/Widget/Entry.h>
#include <Mw/Widget/ScrollBar.h>
#include <Mw/Widget/NumberEntry.h>
#endif

View File

@@ -18,6 +18,7 @@ typedef struct _MwVoidKeyValue MwVoidKeyValue;
typedef struct _MwFont MwFont;
typedef struct _MwMenu* MwMenu;
typedef struct _MwCursor MwCursor;
typedef struct _MwEntry* MwEntry;
#ifdef _MILSKO
typedef struct _MwWidget* MwWidget;
#else
@@ -100,6 +101,10 @@ struct _MwMenu {
MwMenu* sub;
};
struct _MwEntry {
int cursor;
};
#define MwCursorDataHeight 16
struct _MwCursor {
int width;

View File

@@ -0,0 +1,26 @@
/* $Id$ */
/*!
* %file Mw/Widget/NumberEntry.h
* %brief NumberEntry widget
* %prop MwNtext
*/
#ifndef __MW_WIDGET_NUMBERENTRY_H__
#define __MW_WIDGET_NUMBERENTRY_H__
#include <Mw/MachDep.h>
#include <Mw/TypeDefs.h>
#ifdef __cplusplus
extern "C" {
#endif
/*!
* %brief NumberEntry widget class
*/
MWDECL MwClass MwNumberEntryClass;
#ifdef __cplusplus
}
#endif
#endif