mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2025-12-31 06:30:52 +00:00
functional listbox
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@328 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -82,6 +82,18 @@ MWDECL void MwDrawFrameEx(MwWidget handle, MwRect* rect, MwLLColor color, int in
|
||||
*/
|
||||
MWDECL void MwDrawText(MwWidget handle, MwPoint* point, const char* text, int bold, int align, MwLLColor color);
|
||||
|
||||
/*!
|
||||
* %brief Draws a text
|
||||
* %param handle Widget
|
||||
* %param point Center point of the text
|
||||
* %param text Text
|
||||
* %param bold Bold
|
||||
* %param align Align
|
||||
* %param color Color
|
||||
* %param bgcolor Background color
|
||||
*/
|
||||
MWDECL void MwDrawTextEx(MwWidget handle, MwPoint* point, const char* text, int bold, int align, MwLLColor color, MwLLColor bgcolor);
|
||||
|
||||
/*!
|
||||
* %brief Creates a pixmap from image
|
||||
* %param handle Widget
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -18,6 +18,14 @@ extern "C" {
|
||||
*/
|
||||
MWDECL MwClass MwListBoxClass;
|
||||
|
||||
/*!
|
||||
* %brief Inserts item on the listbox
|
||||
* %param handle Widget
|
||||
* %param index Index
|
||||
* %param text Text
|
||||
*/
|
||||
MWDECL void MwListBoxInsert(MwWidget handle, int index, const char* text);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user