mwcxx/src/widget/image.cc
2026-09-15 12:00:07 +09:00

46 lines
1.2 KiB
C++

#include <MwCXX/Widget/Image.h>
MwCXX::Image::Image(MwWidget widget, MwCXX::Base* parent)
: MwCXX::Base(widget, parent) {
this->RegisterHandlers();
}
MwCXX::Image::Image(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height)
: MwCXX::Base(MwImageClass, name, parent, x, y, width, height) {
this->RegisterHandlers();
}
MwLLPixmap MwCXX::Image::GetPixmap() {
return (MwLLPixmap)MwGetVoid(this->widget, MwNpixmap);
}
void MwCXX::Image::SetPixmap(MwLLPixmap value) {
MwSetVoid(this->widget, MwNpixmap, (MwLLPixmap)value);
}
int MwCXX::Image::GetHasBorder() {
return (int)MwGetInteger(this->widget, MwNhasBorder);
}
void MwCXX::Image::SetHasBorder(int value) {
MwSetInteger(this->widget, MwNhasBorder, (int)value);
}
int MwCXX::Image::GetInverted() {
return (int)MwGetInteger(this->widget, MwNinverted);
}
void MwCXX::Image::SetInverted(int value) {
MwSetInteger(this->widget, MwNinverted, (int)value);
}
int MwCXX::Image::GetFillArea() {
return (int)MwGetInteger(this->widget, MwNfillArea);
}
void MwCXX::Image::SetFillArea(int value) {
MwSetInteger(this->widget, MwNfillArea, (int)value);
}
void MwCXX::Image::RegisterHandlers() {
}