summaryrefslogtreecommitdiff
path: root/src/FbTk
diff options
context:
space:
mode:
authorrathnor <rathnor>2004-08-26 15:09:33 (GMT)
committerrathnor <rathnor>2004-08-26 15:09:33 (GMT)
commit346a6598a62350c5d234e3177de9e6c6c1963475 (patch)
tree02706013944f306c549ca627144a13d6552cd098 /src/FbTk
parent13bf2a7fddff4242581eec62243222acd49a1537 (diff)
downloadfluxbox_lack-346a6598a62350c5d234e3177de9e6c6c1963475.zip
fluxbox_lack-346a6598a62350c5d234e3177de9e6c6c1963475.tar.bz2
make arrow button's arrow size scalable by the user
Diffstat (limited to 'src/FbTk')
-rw-r--r--src/FbTk/Button.hh7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/FbTk/Button.hh b/src/FbTk/Button.hh
index 9df0bcd..791de24 100644
--- a/src/FbTk/Button.hh
+++ b/src/FbTk/Button.hh
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: Button.hh,v 1.8 2003/12/16 17:06:49 fluxgen Exp $ 22// $Id: Button.hh,v 1.9 2004/08/26 15:09:33 rathnor Exp $
23 23
24#ifndef FBTK_BUTTON_HH 24#ifndef FBTK_BUTTON_HH
25#define FBTK_BUTTON_HH 25#define FBTK_BUTTON_HH
@@ -36,6 +36,8 @@
36 36
37namespace FbTk { 37namespace FbTk {
38 38
39class Theme;
40
39class Button:public FbTk::FbWindow, public EventHandler, 41class Button:public FbTk::FbWindow, public EventHandler,
40 private NotCopyable { 42 private NotCopyable {
41public: 43public:
@@ -67,6 +69,9 @@ public:
67 virtual void exposeEvent(XExposeEvent &event); 69 virtual void exposeEvent(XExposeEvent &event);
68 //@} 70 //@}
69 71
72 // in case it cares about a theme
73 virtual void updateTheme(const FbTk::Theme &theme) {}
74
70 /// @return true if the button is pressed, else false 75 /// @return true if the button is pressed, else false
71 bool pressed() const { return m_pressed; } 76 bool pressed() const { return m_pressed; }
72 77