aboutsummaryrefslogtreecommitdiff
path: root/src/Container.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/Container.hh')
-rw-r--r--src/Container.hh12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/Container.hh b/src/Container.hh
index 474e55b..ffa7d93 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.1 2003/08/11 15:28:33 fluxgen Exp $ 23// $Id: Container.hh,v 1.2 2003/08/13 09:39:16 fluxgen Exp $
24 24
25#ifndef CONTAINER_HH 25#ifndef CONTAINER_HH
26#define CONTAINER_HH 26#define CONTAINER_HH
@@ -31,15 +31,9 @@
31 31
32#include <list> 32#include <list>
33 33
34class ContainerTheme;
35
36namespace FbTk {
37class Button;
38};
39
40class Container:public FbTk::FbWindow, public FbTk::EventHandler, private FbTk::NotCopyable { 34class Container:public FbTk::FbWindow, public FbTk::EventHandler, private FbTk::NotCopyable {
41public: 35public:
42 typedef FbTk::Button * Item; 36 typedef FbTk::FbWindow * Item;
43 typedef std::list<Item> ItemList; 37 typedef std::list<Item> ItemList;
44 38
45 explicit Container(const FbTk::FbWindow &parent); 39 explicit Container(const FbTk::FbWindow &parent);
@@ -65,7 +59,7 @@ public:
65 int size() const { return m_item_list.size(); } 59 int size() const { return m_item_list.size(); }
66 const Item selected() const { return m_selected; } 60 const Item selected() const { return m_selected; }
67 Item selected() { return m_selected; } 61 Item selected() { return m_selected; }
68 unsigned int maxWidthPerClient() const { return (size() == 0 ? width() : width()/size()); } 62 unsigned int maxWidthPerClient() const;
69 unsigned int maxHeightPerClient() const { return (size() == 0 ? height() : height()/size()); } 63 unsigned int maxHeightPerClient() const { return (size() == 0 ? height() : height()/size()); }
70private: 64private:
71 void repositionItems(); 65 void repositionItems();