added image.src property
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user