added image.src property

This commit is contained in:
MihailRis
2024-05-22 22:37:17 +03:00
parent 66476ee642
commit fad9dc85ad
3 changed files with 25 additions and 0 deletions
+8
View File
@@ -33,3 +33,11 @@ void Image::setAutoResize(bool flag) {
bool Image::isAutoResize() const {
return autoresize;
}
const std::string& Image::getTexture() const {
return texture;
}
void Image::setTexture(const std::string& name) {
texture = name;
}
+2
View File
@@ -15,6 +15,8 @@ namespace gui {
virtual void setAutoResize(bool flag);
virtual bool isAutoResize() const;
virtual const std::string& getTexture() const;
virtual void setTexture(const std::string& name);
};
}