2025-10-14 14:39:40 +00:00
|
|
|
/* $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);
|
2025-10-16 16:47:41 +00:00
|
|
|
void Insert(int index, MwLLPixmap pixmap, ...);
|
|
|
|
|
void InsertMultiple(int index, int count, MwLLPixmap* pixmap, ...);
|
|
|
|
|
void VaInsert(int index, MwLLPixmap pixmap, va_list va);
|
|
|
|
|
void VaInsertMultiple(int index, int count, MwLLPixmap* pixmap, va_list va);
|
2025-10-14 17:09:48 +00:00
|
|
|
void Delete(int index);
|
2025-10-14 18:36:31 +00:00
|
|
|
const char* Get(int index);
|
2025-10-16 16:47:41 +00:00
|
|
|
void SetWidth(int index, int width);
|
2025-10-19 06:06:16 +00:00
|
|
|
void Reset(void);
|
2025-10-15 19:05:32 +00:00
|
|
|
void SetLeftPadding(int value);
|
|
|
|
|
int GetLeftPadding(void);
|
2025-10-14 14:39:40 +00:00
|
|
|
void SetBackground(const char* value);
|
|
|
|
|
const char* GetBackground(void);
|
|
|
|
|
void SetForeground(const char* value);
|
|
|
|
|
const char* GetForeground(void);
|
|
|
|
|
};
|
|
|
|
|
} // namespace MwOO
|
|
|
|
|
|
|
|
|
|
#endif
|