diff options
author | fluxgen <fluxgen> | 2003-08-13 09:39:16 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2003-08-13 09:39:16 (GMT) |
commit | 87c97a966801bd1bdd38e11304061bdbe5248d2e (patch) | |
tree | 52ddd7e948c2f84a15e2caa0dc53c721ba6f94a2 /src/Container.hh | |
parent | 86016331b02ae9480d48404701d81d4e28c2d8a4 (diff) | |
download | fluxbox_pavel-87c97a966801bd1bdd38e11304061bdbe5248d2e.zip fluxbox_pavel-87c97a966801bd1bdd38e11304061bdbe5248d2e.tar.bz2 |
since Button changed to a FbWindow we can change the container to hold fbwindows
Diffstat (limited to 'src/Container.hh')
-rw-r--r-- | src/Container.hh | 12 |
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 | ||
34 | class ContainerTheme; | ||
35 | |||
36 | namespace FbTk { | ||
37 | class Button; | ||
38 | }; | ||
39 | |||
40 | class Container:public FbTk::FbWindow, public FbTk::EventHandler, private FbTk::NotCopyable { | 34 | class Container:public FbTk::FbWindow, public FbTk::EventHandler, private FbTk::NotCopyable { |
41 | public: | 35 | public: |
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()); } |
70 | private: | 64 | private: |
71 | void repositionItems(); | 65 | void repositionItems(); |