2025-10-07 11:02:38 +00:00
|
|
|
/* $Id$ */
|
|
|
|
|
#include <MwOO/Widget/Window.h>
|
|
|
|
|
#include <Mw/Widget/Window.h>
|
|
|
|
|
|
2025-10-07 14:20:45 +00:00
|
|
|
MwOO::Window::Window(const char* widget_name, MwOO::Base* parent, int x, int y, int w, int h) : MwOO::Base(MwWindowClass, widget_name, parent, x, y, w, h){
|
2025-10-07 11:02:38 +00:00
|
|
|
}
|
2025-10-07 15:10:46 +00:00
|
|
|
|
2025-10-13 06:30:36 +00:00
|
|
|
void MwOO::Window::MakeBorderless(int toggle){
|
|
|
|
|
MwWindowMakeBorderless(this->widget, toggle);
|
|
|
|
|
}
|
2025-10-16 16:47:41 +00:00
|
|
|
|
2025-10-08 10:09:10 +00:00
|
|
|
void MwOO::Window::SetTitle(const char* value){
|
|
|
|
|
MwSetText(this->widget, MwNtitle, value);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const char* MwOO::Window::GetTitle(void){
|
|
|
|
|
return MwGetText(this->widget, MwNtitle);
|
|
|
|
|
}
|
|
|
|
|
|
2025-10-15 19:05:32 +00:00
|
|
|
void MwOO::Window::SetMain(int value){
|
|
|
|
|
MwSetInteger(this->widget, MwNmain, value);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int MwOO::Window::GetMain(void){
|
|
|
|
|
return MwGetInteger(this->widget, MwNmain);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void MwOO::Window::SetIconPixmap(void* value){
|
|
|
|
|
MwSetVoid(this->widget, MwNiconPixmap, value);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void* MwOO::Window::GetIconPixmap(void){
|
|
|
|
|
return MwGetVoid(this->widget, MwNiconPixmap);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void MwOO::Window::SetSizeHints(void* value){
|
|
|
|
|
MwSetVoid(this->widget, MwNsizeHints, value);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void* MwOO::Window::GetSizeHints(void){
|
|
|
|
|
return MwGetVoid(this->widget, MwNsizeHints);
|
|
|
|
|
}
|
|
|
|
|
|
2025-10-08 17:34:14 +00:00
|
|
|
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);
|
|
|
|
|
}
|
|
|
|
|
|