mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-23 17:43:04 +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:
@@ -5,18 +5,42 @@
|
||||
MwOO::ListBox::ListBox(const char* widget_name, MwOO::Base* parent, int x, int y, int w, int h) : MwOO::Base(MwListBoxClass, widget_name, parent, x, y, w, h){
|
||||
}
|
||||
|
||||
void MwOO::ListBox::Insert(int index, const char* text, MwLLPixmap pixmap){
|
||||
MwListBoxInsert(this->widget, index, text, pixmap);
|
||||
void MwOO::ListBox::Insert(int index, MwLLPixmap pixmap, ...){
|
||||
va_list va;
|
||||
va_start(va, pixmap);
|
||||
MwListBoxVaInsert(this->widget, index, pixmap, va);
|
||||
va_end(va);
|
||||
}
|
||||
void MwOO::ListBox::InsertMultiple(int index, char** text, MwLLPixmap* pixmap, int count){
|
||||
MwListBoxInsertMultiple(this->widget, index, text, pixmap, count);
|
||||
|
||||
void MwOO::ListBox::InsertMultiple(int index, int count, MwLLPixmap* pixmap, ...){
|
||||
va_list va;
|
||||
va_start(va, pixmap);
|
||||
MwListBoxVaInsertMultiple(this->widget, index, count, pixmap, va);
|
||||
va_end(va);
|
||||
}
|
||||
|
||||
void MwOO::ListBox::VaInsert(int index, MwLLPixmap pixmap, va_list va){
|
||||
MwListBoxVaInsert(this->widget, index, pixmap, va);
|
||||
}
|
||||
|
||||
void MwOO::ListBox::VaInsertMultiple(int index, int count, MwLLPixmap* pixmap, va_list va){
|
||||
MwListBoxVaInsertMultiple(this->widget, index, count, pixmap, va);
|
||||
}
|
||||
|
||||
void MwOO::ListBox::Delete(int index){
|
||||
MwListBoxDelete(this->widget, index);
|
||||
}
|
||||
|
||||
const char* MwOO::ListBox::Get(int index){
|
||||
return MwListBoxGet(this->widget, index);
|
||||
const char* ret;
|
||||
ret = MwListBoxGet(this->widget, index);
|
||||
return ret;
|
||||
}
|
||||
|
||||
void MwOO::ListBox::SetWidth(int index, int width){
|
||||
MwListBoxSetWidth(this->widget, index, width);
|
||||
}
|
||||
|
||||
void MwOO::ListBox::SetLeftPadding(int value){
|
||||
MwSetInteger(this->widget, MwNleftPadding, value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user