numberentry
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@246 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
parent
4a23bf61b3
commit
9fc580eeb2
13 changed files with 189 additions and 40 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
26
include/Mw/Widget/NumberEntry.h
Normal file
26
include/Mw/Widget/NumberEntry.h
Normal 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
|
||||
20
include/MwOO/Widget/NumberEntry.h
Normal file
20
include/MwOO/Widget/NumberEntry.h
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
/* $Id$ */
|
||||
#ifndef __MWOO_WIDGET_NUMBERENTRY_H__
|
||||
#define __MWOO_WIDGET_NUMBERENTRY_H__
|
||||
|
||||
#include <MwOO/Base.h>
|
||||
|
||||
namespace MwOO {
|
||||
class NumberEntry : public MwOO::Base {
|
||||
public:
|
||||
NumberEntry(const char* widget_name, MwOO::Base* parent, int x, int y, int w, int h);
|
||||
void SetText(const char* value);
|
||||
const char* GetText(void);
|
||||
void SetBackground(const char* value);
|
||||
const char* GetBackground(void);
|
||||
void SetForeground(const char* value);
|
||||
const char* GetForeground(void);
|
||||
};
|
||||
} // namespace MwOO
|
||||
|
||||
#endif
|
||||
|
|
@ -11,7 +11,6 @@ class OpenGL : public MwOO::Base {
|
|||
void MakeCurrent(void);
|
||||
void* GetProcAddress(const char* name);
|
||||
void SwapBuffer(void);
|
||||
void SetColor(MwLLColor color);
|
||||
void SetBackground(const char* value);
|
||||
const char* GetBackground(void);
|
||||
void SetForeground(const char* value);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue