work on viewport

git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@274 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-10-11 14:33:56 +00:00
parent 028cf2e288
commit bf78a98ac2
19 changed files with 174 additions and 13 deletions

26
oosrc/widget/viewport.cc Normal file
View File

@@ -0,0 +1,26 @@
/* $Id$ */
#include <MwOO/Widget/Viewport.h>
#include <Mw/Widget/Viewport.h>
MwOO::Viewport::Viewport(const char* widget_name, MwOO::Base* parent, int x, int y, int w, int h) : MwOO::Base(MwViewportClass, widget_name, parent, x, y, w, h){
}
MwOO::Base MwOO::Viewport::GetViewport(void){
return MwOO::Base(MwViewportGetViewport(this->widget));
}
void MwOO::Viewport::SetBackground(const char* value){
MwSetText(this->widget, MwNbackground, value);
}
const char* MwOO::Viewport::GetBackground(void){
return MwGetText(this->widget, MwNbackground);
}
void MwOO::Viewport::SetForeground(const char* value){
MwSetText(this->widget, MwNforeground, value);
}
const char* MwOO::Viewport::GetForeground(void){
return MwGetText(this->widget, MwNforeground);
}