summaryrefslogtreecommitdiff
path: root/src/resources/theme.h
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-04-22 17:47:52 +0200
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-08-04 21:24:44 +0200
commitf94d3280c2f2520a80e9099e0dd4d6d9491e18a5 (patch)
treebd546ac39f2f2739b8d10ed6ac9385534d38b256 /src/resources/theme.h
parent3d1aa110349c2f74bfd10451edba10e2a4d485d6 (diff)
downloadmana-f94d3280c2f2520a80e9099e0dd4d6d9491e18a5.tar.gz
mana-f94d3280c2f2520a80e9099e0dd4d6d9491e18a5.tar.bz2
mana-f94d3280c2f2520a80e9099e0dd4d6d9491e18a5.tar.xz
mana-f94d3280c2f2520a80e9099e0dd4d6d9491e18a5.zip
Removed unused Skin::mName and Skin::mFilePath
Diffstat (limited to 'src/resources/theme.h')
-rw-r--r--src/resources/theme.h20
1 files changed, 2 insertions, 18 deletions
diff --git a/src/resources/theme.h b/src/resources/theme.h
index 434bd6d8..7edae416 100644
--- a/src/resources/theme.h
+++ b/src/resources/theme.h
@@ -40,25 +40,11 @@ class ProgressBar;
class Skin
{
public:
- Skin(ImageRect skin, Image *close, Image *stickyUp, Image *stickyDown,
- const std::string &filePath,
- const std::string &name = std::string());
+ Skin(ImageRect skin, Image *close, Image *stickyUp, Image *stickyDown);
~Skin();
/**
- * Returns the skin's name. Useful for giving a human friendly skin
- * name if a dialog for skin selection for a specific window type is
- * done.
- */
- const std::string &getName() const { return mName; }
-
- /**
- * Returns the skin's xml file path.
- */
- const std::string &getFilePath() const { return mFilePath; }
-
- /**
* Returns the background skin.
*/
const ImageRect &getBorder() const { return mBorder; }
@@ -89,11 +75,9 @@ class Skin
*/
void updateAlpha(float minimumOpacityAllowed = 0.0f);
- int instances;
+ int instances = 0;
private:
- std::string mFilePath; /**< File name path for the skin */
- std::string mName; /**< Name of the skin to use */
ImageRect mBorder; /**< The window border and background */
Image *mCloseImage; /**< Close Button Image */
Image *mStickyImageUp; /**< Sticky Button Image */