2025-10-14 14:39:40 +00:00
|
|
|
/* $Id$ */
|
|
|
|
|
/*!
|
|
|
|
|
* %file Mw/Widget/ListBox.h
|
|
|
|
|
* %brief ListBox widget
|
2025-10-15 19:05:32 +00:00
|
|
|
* %prop MwNleftPadding
|
2025-10-14 14:39:40 +00:00
|
|
|
*/
|
|
|
|
|
#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;
|
|
|
|
|
|
2025-10-14 16:41:38 +00:00
|
|
|
/*!
|
|
|
|
|
* %brief Inserts item on the listbox
|
|
|
|
|
* %param handle Widget
|
|
|
|
|
* %param index Index
|
2025-10-16 10:38:37 +00:00
|
|
|
* %param pixmap Pixmap
|
2025-10-16 16:47:41 +00:00
|
|
|
* %param ... Text
|
2025-10-14 16:41:38 +00:00
|
|
|
*/
|
2025-10-16 16:47:41 +00:00
|
|
|
MWDECL void MwListBoxInsert(MwWidget handle, int index, MwLLPixmap pixmap, ...); /* VA_HINT:pixmap */
|
2025-10-14 16:41:38 +00:00
|
|
|
|
2025-10-14 18:48:06 +00:00
|
|
|
/*!
|
|
|
|
|
* %brief Inserts multiple items on the listbox
|
|
|
|
|
* %param handle Widget
|
|
|
|
|
* %param index Index
|
2025-10-16 16:47:41 +00:00
|
|
|
* %param count Count
|
|
|
|
|
* %param pixmap Pixmap
|
|
|
|
|
* %param ... Text
|
|
|
|
|
*/
|
|
|
|
|
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
|
2025-10-16 10:38:37 +00:00
|
|
|
* %param pixmap Pixmap
|
2025-10-16 16:47:41 +00:00
|
|
|
* %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
|
2025-10-14 18:48:06 +00:00
|
|
|
* %param count Count
|
2025-10-16 16:47:41 +00:00
|
|
|
* %param pixmap Pixmap
|
|
|
|
|
* %param va Text
|
2025-10-14 18:48:06 +00:00
|
|
|
*/
|
2025-10-16 16:47:41 +00:00
|
|
|
MWDECL void MwListBoxVaInsertMultiple(MwWidget handle, int index, int count, MwLLPixmap* pixmap, va_list va);
|
2025-10-14 18:48:06 +00:00
|
|
|
|
2025-10-14 17:09:48 +00:00
|
|
|
/*!
|
|
|
|
|
* %brief Deletes item from the listbox
|
|
|
|
|
* %param handle Widget
|
|
|
|
|
* %param index Index
|
|
|
|
|
*/
|
|
|
|
|
MWDECL void MwListBoxDelete(MwWidget handle, int index);
|
|
|
|
|
|
2025-10-14 18:36:31 +00:00
|
|
|
/*!
|
|
|
|
|
* %brief Gets item from the listbox
|
|
|
|
|
* %param handle Widget
|
|
|
|
|
* %param index Index
|
|
|
|
|
* %return Item
|
|
|
|
|
*/
|
|
|
|
|
MWDECL const char* MwListBoxGet(MwWidget handle, int index);
|
|
|
|
|
|
2025-10-16 16:47:41 +00:00
|
|
|
/*!
|
|
|
|
|
* %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);
|
|
|
|
|
|
2025-10-16 18:45:45 +00:00
|
|
|
/*!
|
|
|
|
|
* %brief Resets the listbox
|
|
|
|
|
* %param handle Widget
|
|
|
|
|
*/
|
|
|
|
|
MWDECL void MwListBoxReset(MwWidget handle);
|
|
|
|
|
|
2025-10-14 14:39:40 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#endif
|