summaryrefslogtreecommitdiff
path: root/src/gui/button.h
diff options
context:
space:
mode:
authorPhilipp Sehmisch <tmw@crushnet.org>2007-02-27 16:31:34 +0000
committerPhilipp Sehmisch <tmw@crushnet.org>2007-02-27 16:31:34 +0000
commit88a86283083800443c4f5e934fface5988c42fe8 (patch)
treefa6a26c56836d8b1f148d362eb0b6b0e0ed3ce9b /src/gui/button.h
parenta064b260e2950b5a153e51c13f579095c53a9a7a (diff)
downloadMana-88a86283083800443c4f5e934fface5988c42fe8.tar.gz
Mana-88a86283083800443c4f5e934fface5988c42fe8.tar.bz2
Mana-88a86283083800443c4f5e934fface5988c42fe8.tar.xz
Mana-88a86283083800443c4f5e934fface5988c42fe8.zip
Tabbed containers now display the button of the active tab pressed all the time.
Diffstat (limited to 'src/gui/button.h')
-rw-r--r--src/gui/button.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gui/button.h b/src/gui/button.h
index 339341ad..eb73e311 100644
--- a/src/gui/button.h
+++ b/src/gui/button.h
@@ -53,11 +53,16 @@ class Button : public gcn::Button {
*/
void draw(gcn::Graphics* graphics);
- void focusLost() {}
+ /**
+ * Enable/Disable highlighting
+ */
+ void setLogged(bool enable)
+ { mIsLogged = enable; }
private:
static ImageRect button[4]; /**< Button state graphics */
static int mInstances; /**< Number of button instances */
+ bool mIsLogged; /**< Makes the button appear pressed all the time */
};
#endif