mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-10 03:13:28 +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);
|
||||
}
|
||||
|
||||
@@ -6,8 +6,11 @@ MwOO::Menu::Menu(const char* widget_name, MwOO::Base* parent, int x, int y, int
|
||||
}
|
||||
|
||||
MwMenu MwOO::Menu::Add(MwMenu menu, const char* name){
|
||||
return MwMenuAdd(this->widget, menu, name);
|
||||
MwMenu ret;
|
||||
ret = MwMenuAdd(this->widget, menu, name);
|
||||
return ret;
|
||||
}
|
||||
|
||||
void MwOO::Menu::SetBackground(const char* value){
|
||||
MwSetText(this->widget, MwNbackground, value);
|
||||
}
|
||||
|
||||
@@ -8,12 +8,17 @@ MwOO::OpenGL::OpenGL(const char* widget_name, MwOO::Base* parent, int x, int y,
|
||||
void MwOO::OpenGL::MakeCurrent(void){
|
||||
MwOpenGLMakeCurrent(this->widget);
|
||||
}
|
||||
|
||||
void* MwOO::OpenGL::GetProcAddress(const char* name){
|
||||
return MwOpenGLGetProcAddress(this->widget, name);
|
||||
void* ret;
|
||||
ret = MwOpenGLGetProcAddress(this->widget, name);
|
||||
return ret;
|
||||
}
|
||||
|
||||
void MwOO::OpenGL::SwapBuffer(void){
|
||||
MwOpenGLSwapBuffer(this->widget);
|
||||
}
|
||||
|
||||
void MwOO::OpenGL::SetBackground(const char* value){
|
||||
MwSetText(this->widget, MwNbackground, value);
|
||||
}
|
||||
|
||||
@@ -6,8 +6,11 @@ MwOO::ScrollBar::ScrollBar(const char* widget_name, MwOO::Base* parent, int x, i
|
||||
}
|
||||
|
||||
int MwOO::ScrollBar::GetVisibleLength(void){
|
||||
return MwScrollBarGetVisibleLength(this->widget);
|
||||
int ret;
|
||||
ret = MwScrollBarGetVisibleLength(this->widget);
|
||||
return ret;
|
||||
}
|
||||
|
||||
void MwOO::ScrollBar::SetAreaShown(int value){
|
||||
MwSetInteger(this->widget, MwNareaShown, value);
|
||||
}
|
||||
|
||||
@@ -8,6 +8,7 @@ MwOO::SubMenu::SubMenu(const char* widget_name, MwOO::Base* parent, int x, int y
|
||||
void MwOO::SubMenu::Appear(MwMenu menu, MwPoint* point){
|
||||
MwSubMenuAppear(this->widget, menu, point);
|
||||
}
|
||||
|
||||
void MwOO::SubMenu::SetBackground(const char* value){
|
||||
MwSetText(this->widget, MwNbackground, value);
|
||||
}
|
||||
|
||||
@@ -6,11 +6,15 @@ MwOO::Viewport::Viewport(const char* widget_name, MwOO::Base* parent, int x, int
|
||||
}
|
||||
|
||||
MwOO::Base MwOO::Viewport::GetViewport(void){
|
||||
return MwOO::Base(MwViewportGetViewport(this->widget));
|
||||
MwOO::Base ret;
|
||||
ret = MwOO::Base(MwViewportGetViewport(this->widget));
|
||||
return ret;
|
||||
}
|
||||
|
||||
void MwOO::Viewport::SetSize(int w, int h){
|
||||
MwViewportSetSize(this->widget, w, h);
|
||||
}
|
||||
|
||||
void MwOO::Viewport::SetBackground(const char* value){
|
||||
MwSetText(this->widget, MwNbackground, value);
|
||||
}
|
||||
|
||||
@@ -8,18 +8,27 @@ MwOO::Vulkan::Vulkan(const char* widget_name, MwOO::Base* parent, int x, int y,
|
||||
void MwOO::Vulkan::EnableExtension(void){
|
||||
MwVulkanEnableExtension(this->widget);
|
||||
}
|
||||
|
||||
void MwOO::Vulkan::EnableLayer(void){
|
||||
MwVulkanEnableLayer(this->widget);
|
||||
}
|
||||
|
||||
void MwOO::Vulkan::Configure(void){
|
||||
MwVulkanConfigure(this->widget);
|
||||
}
|
||||
|
||||
void* MwOO::Vulkan::GetField(MwVulkanField field, MwErrorEnum* out){
|
||||
return MwVulkanGetField(this->widget, field, out);
|
||||
void* ret;
|
||||
ret = MwVulkanGetField(this->widget, field, out);
|
||||
return ret;
|
||||
}
|
||||
|
||||
VkBool32 MwOO::Vulkan::Supported(void){
|
||||
return MwVulkanSupported(this->widget);
|
||||
VkBool32 ret;
|
||||
ret = MwVulkanSupported(this->widget);
|
||||
return ret;
|
||||
}
|
||||
|
||||
void MwOO::Vulkan::SetBackground(const char* value){
|
||||
MwSetText(this->widget, MwNbackground, value);
|
||||
}
|
||||
|
||||
@@ -8,6 +8,7 @@ MwOO::Window::Window(const char* widget_name, MwOO::Base* parent, int x, int y,
|
||||
void MwOO::Window::MakeBorderless(int toggle){
|
||||
MwWindowMakeBorderless(this->widget, toggle);
|
||||
}
|
||||
|
||||
void MwOO::Window::SetTitle(const char* value){
|
||||
MwSetText(this->widget, MwNtitle, value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user