diff options
Diffstat (limited to 'src/Container.hh')
-rw-r--r-- | src/Container.hh | 5 |
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 | ||
77 | private: | 78 | private: |