summaryrefslogtreecommitdiff
path: root/src/interface/Appearance.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/interface/Appearance.cpp')
-rw-r--r--src/interface/Appearance.cpp26
1 files changed, 25 insertions, 1 deletions
diff --git a/src/interface/Appearance.cpp b/src/interface/Appearance.cpp
index 2922722..b504d02 100644
--- a/src/interface/Appearance.cpp
+++ b/src/interface/Appearance.cpp
@@ -28,6 +28,30 @@ namespace ui
BorderActive(255, 255, 255),
Margin(1, 4),
- icon(NoIcon)
+ icon(NoIcon),
+
+ texture(NULL)
{};
+
+ VideoBuffer * Appearance::GetTexture()
+ {
+ return texture;
+ }
+
+ void Appearance::SetTexture(VideoBuffer * texture)
+ {
+ if(this->texture)
+ delete this->texture;
+ if(texture)
+ this->texture = new VideoBuffer(texture);
+ else
+ this->texture = NULL;
+ }
+
+ Appearance::~Appearance()
+ {
+ if(texture)
+ delete texture;
+ }
+
}