This commit is contained in:
Nishi 2026-04-18 01:05:20 +09:00
commit 933f276e1a
Signed by: nishi
GPG key ID: 27EF69B208EB9343
73 changed files with 1350 additions and 306 deletions

44
src/widget/image.cc Normal file
View file

@ -0,0 +1,44 @@
#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() {
}