aboutsummaryrefslogtreecommitdiff
path: root/src/Container.hh
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2004-01-21 13:34:40 (GMT)
committerfluxgen <fluxgen>2004-01-21 13:34:40 (GMT)
commit5685dc91951477ee0e0a280d1f30ec737cc95550 (patch)
treeb1db59e8ec8cdef6da04bdfe060f9a9ac4a92e60 /src/Container.hh
parent11a7029b22d1e4a25cbabb7e6af8ee3e69994d1f (diff)
downloadfluxbox_pavel-5685dc91951477ee0e0a280d1f30ec737cc95550.zip
fluxbox_pavel-5685dc91951477ee0e0a280d1f30ec737cc95550.tar.bz2
empty accessor
Diffstat (limited to 'src/Container.hh')
-rw-r--r--src/Container.hh5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Container.hh b/src/Container.hh
index 6880aa3..158e034 100644
--- a/src/Container.hh
+++ b/src/Container.hh
@@ -20,7 +20,7 @@
20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21// DEALINGS IN THE SOFTWARE. 21// DEALINGS IN THE SOFTWARE.
22 22
23// $Id: Container.hh,v 1.5 2003/12/23 01:55:07 rathnor Exp $ 23// $Id: Container.hh,v 1.6 2004/01/21 13:34:40 fluxgen Exp $
24 24
25#ifndef CONTAINER_HH 25#ifndef CONTAINER_HH
26#define CONTAINER_HH 26#define CONTAINER_HH
@@ -68,10 +68,11 @@ public:
68 /// accessors 68 /// accessors
69 inline Alignment alignment() const { return m_align; } 69 inline Alignment alignment() const { return m_align; }
70 inline int size() const { return m_item_list.size(); } 70 inline int size() const { return m_item_list.size(); }
71 inline bool empty() const { return m_item_list.empty(); }
71 inline const Item selected() const { return m_selected; } 72 inline const Item selected() const { return m_selected; }
72 inline Item selected() { return m_selected; } 73 inline Item selected() { return m_selected; }
73 unsigned int maxWidthPerClient() const; 74 unsigned int maxWidthPerClient() const;
74 inline unsigned int maxHeightPerClient() const { return (size() == 0 ? height() : height()/size()); } 75 inline unsigned int maxHeightPerClient() const { return (empty() ? height() : height()/size()); }
75 inline bool updateLock() const { return m_update_lock; } 76 inline bool updateLock() const { return m_update_lock; }
76 77
77private: 78private: