mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2025-12-31 06:30:52 +00:00
fancy listbox
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@369 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -41,7 +41,7 @@ enum MwALIGNMENT {
|
||||
/*!
|
||||
* %brief Directory entry type
|
||||
*/
|
||||
enum {
|
||||
enum MwDIRECTORY_TYPE {
|
||||
MwDIRECTORY_FILE = 0,
|
||||
MwDIRECTORY_DIRECTORY
|
||||
};
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#define MwNbold "Ibold"
|
||||
#define MwNmain "Imain"
|
||||
#define MwNleftPadding "IleftPadding"
|
||||
#define MwNhasHeading "IhasHeading"
|
||||
|
||||
#define MwNtitle "Stitle"
|
||||
#define MwNtext "Stext"
|
||||
|
||||
@@ -121,7 +121,7 @@ struct _MwViewport {
|
||||
};
|
||||
|
||||
struct _MwListBoxEntry {
|
||||
char* name;
|
||||
char** name;
|
||||
MwLLPixmap pixmap;
|
||||
};
|
||||
|
||||
@@ -132,6 +132,7 @@ struct _MwListBox {
|
||||
int selected;
|
||||
unsigned long click_time;
|
||||
int pressed;
|
||||
int* width;
|
||||
};
|
||||
|
||||
struct _MwSizeHints {
|
||||
|
||||
@@ -23,20 +23,39 @@ MWDECL MwClass MwListBoxClass;
|
||||
* %brief Inserts item on the listbox
|
||||
* %param handle Widget
|
||||
* %param index Index
|
||||
* %param text Text
|
||||
* %param pixmap Pixmap
|
||||
* %param ... Text
|
||||
*/
|
||||
MWDECL void MwListBoxInsert(MwWidget handle, int index, const char* text, MwLLPixmap pixmap);
|
||||
MWDECL void MwListBoxInsert(MwWidget handle, int index, MwLLPixmap pixmap, ...); /* VA_HINT:pixmap */
|
||||
|
||||
/*!
|
||||
* %brief Inserts multiple items on the listbox
|
||||
* %param handle Widget
|
||||
* %param index Index
|
||||
* %param text Text
|
||||
* %param pixmap Pixmap
|
||||
* %param count Count
|
||||
* %param pixmap Pixmap
|
||||
* %param ... Text
|
||||
*/
|
||||
MWDECL void MwListBoxInsertMultiple(MwWidget handle, int index, char** text, MwLLPixmap* pixmap, int count);
|
||||
MWDECL void MwListBoxInsertMultiple(MwWidget handle, int index, int count, MwLLPixmap* pixmap, ...); /* VA_HINT:pixmap */
|
||||
|
||||
/*!
|
||||
* %brief Inserts item on the listbox
|
||||
* %param handle Widget
|
||||
* %param index Index
|
||||
* %param pixmap Pixmap
|
||||
* %param va Text
|
||||
*/
|
||||
MWDECL void MwListBoxVaInsert(MwWidget handle, int index, MwLLPixmap pixmap, va_list va);
|
||||
|
||||
/*!
|
||||
* %brief Inserts multiple items on the listbox
|
||||
* %param handle Widget
|
||||
* %param index Index
|
||||
* %param count Count
|
||||
* %param pixmap Pixmap
|
||||
* %param va Text
|
||||
*/
|
||||
MWDECL void MwListBoxVaInsertMultiple(MwWidget handle, int index, int count, MwLLPixmap* pixmap, va_list va);
|
||||
|
||||
/*!
|
||||
* %brief Deletes item from the listbox
|
||||
@@ -53,6 +72,14 @@ MWDECL void MwListBoxDelete(MwWidget handle, int index);
|
||||
*/
|
||||
MWDECL const char* MwListBoxGet(MwWidget handle, int index);
|
||||
|
||||
/*!
|
||||
* %brief Sets an item width of the listbox
|
||||
* %param handle Widget
|
||||
* %param index Column index
|
||||
* %param width Width
|
||||
*/
|
||||
MWDECL void MwListBoxSetWidth(MwWidget handle, int index, int width);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user