Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/bitmap.h')
-rw-r--r--src/ui/bitmap.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/ui/bitmap.h b/src/ui/bitmap.h
index 4838ea2..123f12c 100644
--- a/src/ui/bitmap.h
+++ b/src/ui/bitmap.h
@@ -18,18 +18,25 @@ public:
Bitmap(Widget *parent, const char *texture = 0);
~Bitmap();
- inline std::string const &texture() const {
+ inline const std::string & texture() const {
return bitmap_texture;
}
- inline math::Color const &color() const {
+ inline const math::Color & color() const {
return bitmap_color;
}
+
+ inline const bool preserve_aspect() const {
+ return bitmap_preserve_aspect;
+ }
void set_texture(const std::string & texture);
+
void set_texture(const char *texture);
void set_color(const math::Color &color);
+
+ void set_preserve_aspect(const bool preserve_aspect);
/// print bitmap description
virtual void print(const size_t indent) const;
@@ -41,6 +48,7 @@ protected:
private:
std::string bitmap_texture;
math::Color bitmap_color;
+ bool bitmap_preserve_aspect;
};
}