work on listbox
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@327 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
parent
e07b752f6f
commit
c6e267a2b7
22 changed files with 183 additions and 117 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
25
include/Mw/Widget/ListBox.h
Normal file
25
include/Mw/Widget/ListBox.h
Normal 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
|
||||
|
|
@ -30,17 +30,6 @@ class Base {
|
|||
int GetWidth(void);
|
||||
int GetHeight(void);
|
||||
/* BEGIN AUTOGENERATE */
|
||||
virtual void OnActivate(void*) {};
|
||||
virtual void OnResize(void*) {};
|
||||
virtual void OnTick(void*) {};
|
||||
virtual void OnMenu(void*) {};
|
||||
virtual void OnMouseDownHandler(void*) {};
|
||||
virtual void OnMouseUpHandler(void*) {};
|
||||
virtual void OnMouseMoveHandler(void*) {};
|
||||
virtual void OnChangedHandler(void*) {};
|
||||
virtual void OnKeyHandler(void*) {};
|
||||
virtual void OnKeyReleaseHandler(void*) {};
|
||||
virtual void OnCloseHandler(void*) {};
|
||||
|
||||
/* END AUTOGENERATE */
|
||||
|
||||
|
|
|
|||
18
include/MwOO/Widget/ListBox.h
Normal file
18
include/MwOO/Widget/ListBox.h
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
/* $Id$ */
|
||||
#ifndef __MWOO_WIDGET_LISTBOX_H__
|
||||
#define __MWOO_WIDGET_LISTBOX_H__
|
||||
|
||||
#include <MwOO/Base.h>
|
||||
|
||||
namespace MwOO {
|
||||
class ListBox : public MwOO::Base {
|
||||
public:
|
||||
ListBox(const char* widget_name, MwOO::Base* parent, int x, int y, int w, int h);
|
||||
void SetBackground(const char* value);
|
||||
const char* GetBackground(void);
|
||||
void SetForeground(const char* value);
|
||||
const char* GetForeground(void);
|
||||
};
|
||||
} // namespace MwOO
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue