things
This commit is contained in:
parent
bbc8b871bb
commit
933f276e1a
73 changed files with 1350 additions and 306 deletions
44
src/widget/image.cc
Normal file
44
src/widget/image.cc
Normal 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() {
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue