diff options
author | Thomas Lübking <thomas.luebking@gmail.com> | 2016-08-04 13:20:35 (GMT) |
---|---|---|
committer | Thomas Lübking <thomas.luebking@gmail.com> | 2016-08-06 15:09:30 (GMT) |
commit | cc80230bd85dbaf1036b4cf37259d3146229fb00 (patch) | |
tree | e990270246cf1b07bf5eb6c6ba1ebcd71c9dd8b9 /src/FbTk/Button.hh | |
parent | 59d9b0703ba8efb24893528f2eb9c84aaa8f5f83 (diff) | |
download | fluxbox-cc80230bd85dbaf1036b4cf37259d3146229fb00.zip fluxbox-cc80230bd85dbaf1036b4cf37259d3146229fb00.tar.bz2 |
expose a preferredWidth of *Button's
Diffstat (limited to 'src/FbTk/Button.hh')
-rw-r--r-- | src/FbTk/Button.hh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/FbTk/Button.hh b/src/FbTk/Button.hh index 1f65799..c3276a6 100644 --- a/src/FbTk/Button.hh +++ b/src/FbTk/Button.hh | |||
@@ -55,6 +55,8 @@ public: | |||
55 | virtual void setBackgroundColor(const Color &color); | 55 | virtual void setBackgroundColor(const Color &color); |
56 | virtual bool setOrientation(FbTk::Orientation orient) { return orient == FbTk::ROT0; } | 56 | virtual bool setOrientation(FbTk::Orientation orient) { return orient == FbTk::ROT0; } |
57 | 57 | ||
58 | virtual unsigned int preferredWidth() const { return width(); } | ||
59 | |||
58 | /** | 60 | /** |
59 | @name eventhandlers | 61 | @name eventhandlers |
60 | */ | 62 | */ |