mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-08 02:13:29 +00:00
add cursor
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@230 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -21,3 +21,19 @@ const char* MwOO::Button::GetText(void){
|
||||
return MwGetText(this->widget, MwNtext);
|
||||
}
|
||||
|
||||
void MwOO::Button::SetBackground(const char* value){
|
||||
MwSetText(this->widget, MwNbackground, value);
|
||||
}
|
||||
|
||||
const char* MwOO::Button::GetBackground(void){
|
||||
return MwGetText(this->widget, MwNbackground);
|
||||
}
|
||||
|
||||
void MwOO::Button::SetForeground(const char* value){
|
||||
MwSetText(this->widget, MwNforeground, value);
|
||||
}
|
||||
|
||||
const char* MwOO::Button::GetForeground(void){
|
||||
return MwGetText(this->widget, MwNforeground);
|
||||
}
|
||||
|
||||
|
||||
@@ -13,3 +13,19 @@ int MwOO::CheckBox::GetChecked(void){
|
||||
return MwGetInteger(this->widget, MwNchecked);
|
||||
}
|
||||
|
||||
void MwOO::CheckBox::SetBackground(const char* value){
|
||||
MwSetText(this->widget, MwNbackground, value);
|
||||
}
|
||||
|
||||
const char* MwOO::CheckBox::GetBackground(void){
|
||||
return MwGetText(this->widget, MwNbackground);
|
||||
}
|
||||
|
||||
void MwOO::CheckBox::SetForeground(const char* value){
|
||||
MwSetText(this->widget, MwNforeground, value);
|
||||
}
|
||||
|
||||
const char* MwOO::CheckBox::GetForeground(void){
|
||||
return MwGetText(this->widget, MwNforeground);
|
||||
}
|
||||
|
||||
|
||||
@@ -5,3 +5,19 @@
|
||||
MwOO::Frame::Frame(const char* widget_name, MwOO::Base* parent, int x, int y, int w, int h) : MwOO::Base(MwFrameClass, widget_name, parent, x, y, w, h){
|
||||
}
|
||||
|
||||
void MwOO::Frame::SetBackground(const char* value){
|
||||
MwSetText(this->widget, MwNbackground, value);
|
||||
}
|
||||
|
||||
const char* MwOO::Frame::GetBackground(void){
|
||||
return MwGetText(this->widget, MwNbackground);
|
||||
}
|
||||
|
||||
void MwOO::Frame::SetForeground(const char* value){
|
||||
MwSetText(this->widget, MwNforeground, value);
|
||||
}
|
||||
|
||||
const char* MwOO::Frame::GetForeground(void){
|
||||
return MwGetText(this->widget, MwNforeground);
|
||||
}
|
||||
|
||||
|
||||
@@ -13,3 +13,19 @@ void* MwOO::Image::GetPixmap(void){
|
||||
return MwGetVoid(this->widget, MwNpixmap);
|
||||
}
|
||||
|
||||
void MwOO::Image::SetBackground(const char* value){
|
||||
MwSetText(this->widget, MwNbackground, value);
|
||||
}
|
||||
|
||||
const char* MwOO::Image::GetBackground(void){
|
||||
return MwGetText(this->widget, MwNbackground);
|
||||
}
|
||||
|
||||
void MwOO::Image::SetForeground(const char* value){
|
||||
MwSetText(this->widget, MwNforeground, value);
|
||||
}
|
||||
|
||||
const char* MwOO::Image::GetForeground(void){
|
||||
return MwGetText(this->widget, MwNforeground);
|
||||
}
|
||||
|
||||
|
||||
@@ -21,3 +21,19 @@ int MwOO::Label::GetAlignment(void){
|
||||
return MwGetInteger(this->widget, MwNalignment);
|
||||
}
|
||||
|
||||
void MwOO::Label::SetBackground(const char* value){
|
||||
MwSetText(this->widget, MwNbackground, value);
|
||||
}
|
||||
|
||||
const char* MwOO::Label::GetBackground(void){
|
||||
return MwGetText(this->widget, MwNbackground);
|
||||
}
|
||||
|
||||
void MwOO::Label::SetForeground(const char* value){
|
||||
MwSetText(this->widget, MwNforeground, value);
|
||||
}
|
||||
|
||||
const char* MwOO::Label::GetForeground(void){
|
||||
return MwGetText(this->widget, MwNforeground);
|
||||
}
|
||||
|
||||
|
||||
@@ -8,3 +8,19 @@ 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);
|
||||
}
|
||||
void MwOO::Menu::SetBackground(const char* value){
|
||||
MwSetText(this->widget, MwNbackground, value);
|
||||
}
|
||||
|
||||
const char* MwOO::Menu::GetBackground(void){
|
||||
return MwGetText(this->widget, MwNbackground);
|
||||
}
|
||||
|
||||
void MwOO::Menu::SetForeground(const char* value){
|
||||
MwSetText(this->widget, MwNforeground, value);
|
||||
}
|
||||
|
||||
const char* MwOO::Menu::GetForeground(void){
|
||||
return MwGetText(this->widget, MwNforeground);
|
||||
}
|
||||
|
||||
|
||||
@@ -14,3 +14,19 @@ void* MwOO::OpenGL::GetProcAddress(const char* name){
|
||||
void MwOO::OpenGL::SwapBuffer(void){
|
||||
MwOpenGLSwapBuffer(this->widget);
|
||||
}
|
||||
void MwOO::OpenGL::SetBackground(const char* value){
|
||||
MwSetText(this->widget, MwNbackground, value);
|
||||
}
|
||||
|
||||
const char* MwOO::OpenGL::GetBackground(void){
|
||||
return MwGetText(this->widget, MwNbackground);
|
||||
}
|
||||
|
||||
void MwOO::OpenGL::SetForeground(const char* value){
|
||||
MwSetText(this->widget, MwNforeground, value);
|
||||
}
|
||||
|
||||
const char* MwOO::OpenGL::GetForeground(void){
|
||||
return MwGetText(this->widget, MwNforeground);
|
||||
}
|
||||
|
||||
|
||||
@@ -48,3 +48,19 @@ int MwOO::ScrollBar::GetOrientation(void){
|
||||
return MwGetInteger(this->widget, MwNorientation);
|
||||
}
|
||||
|
||||
void MwOO::ScrollBar::SetBackground(const char* value){
|
||||
MwSetText(this->widget, MwNbackground, value);
|
||||
}
|
||||
|
||||
const char* MwOO::ScrollBar::GetBackground(void){
|
||||
return MwGetText(this->widget, MwNbackground);
|
||||
}
|
||||
|
||||
void MwOO::ScrollBar::SetForeground(const char* value){
|
||||
MwSetText(this->widget, MwNforeground, value);
|
||||
}
|
||||
|
||||
const char* MwOO::ScrollBar::GetForeground(void){
|
||||
return MwGetText(this->widget, MwNforeground);
|
||||
}
|
||||
|
||||
|
||||
@@ -8,3 +8,19 @@ 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);
|
||||
}
|
||||
|
||||
const char* MwOO::SubMenu::GetBackground(void){
|
||||
return MwGetText(this->widget, MwNbackground);
|
||||
}
|
||||
|
||||
void MwOO::SubMenu::SetForeground(const char* value){
|
||||
MwSetText(this->widget, MwNforeground, value);
|
||||
}
|
||||
|
||||
const char* MwOO::SubMenu::GetForeground(void){
|
||||
return MwGetText(this->widget, MwNforeground);
|
||||
}
|
||||
|
||||
|
||||
@@ -13,3 +13,19 @@ int MwOO::Text::GetChecked(void){
|
||||
return MwGetInteger(this->widget, MwNchecked);
|
||||
}
|
||||
|
||||
void MwOO::Text::SetBackground(const char* value){
|
||||
MwSetText(this->widget, MwNbackground, value);
|
||||
}
|
||||
|
||||
const char* MwOO::Text::GetBackground(void){
|
||||
return MwGetText(this->widget, MwNbackground);
|
||||
}
|
||||
|
||||
void MwOO::Text::SetForeground(const char* value){
|
||||
MwSetText(this->widget, MwNforeground, value);
|
||||
}
|
||||
|
||||
const char* MwOO::Text::GetForeground(void){
|
||||
return MwGetText(this->widget, MwNforeground);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,3 +20,19 @@ void* MwOO::Vulkan::GetField(MwVulkanField field, MwErrorEnum* out){
|
||||
VkBool32 MwOO::Vulkan::Supported(void){
|
||||
return MwVulkanSupported(this->widget);
|
||||
}
|
||||
void MwOO::Vulkan::SetBackground(const char* value){
|
||||
MwSetText(this->widget, MwNbackground, value);
|
||||
}
|
||||
|
||||
const char* MwOO::Vulkan::GetBackground(void){
|
||||
return MwGetText(this->widget, MwNbackground);
|
||||
}
|
||||
|
||||
void MwOO::Vulkan::SetForeground(const char* value){
|
||||
MwSetText(this->widget, MwNforeground, value);
|
||||
}
|
||||
|
||||
const char* MwOO::Vulkan::GetForeground(void){
|
||||
return MwGetText(this->widget, MwNforeground);
|
||||
}
|
||||
|
||||
|
||||
@@ -13,3 +13,19 @@ const char* MwOO::Window::GetTitle(void){
|
||||
return MwGetText(this->widget, MwNtitle);
|
||||
}
|
||||
|
||||
void MwOO::Window::SetBackground(const char* value){
|
||||
MwSetText(this->widget, MwNbackground, value);
|
||||
}
|
||||
|
||||
const char* MwOO::Window::GetBackground(void){
|
||||
return MwGetText(this->widget, MwNbackground);
|
||||
}
|
||||
|
||||
void MwOO::Window::SetForeground(const char* value){
|
||||
MwSetText(this->widget, MwNforeground, value);
|
||||
}
|
||||
|
||||
const char* MwOO::Window::GetForeground(void){
|
||||
return MwGetText(this->widget, MwNforeground);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user