aboutsummaryrefslogtreecommitdiff
path: root/src/Container.hh
diff options
context:
space:
mode:
authorsimonb <simonb>2006-03-26 04:02:30 (GMT)
committersimonb <simonb>2006-03-26 04:02:30 (GMT)
commitaf74a2284551c8511b66d77112c7bf32831c1522 (patch)
tree35a8830352f5facc1fc9c58b82c0c6dce8fc921e /src/Container.hh
parent872f6a0e1e4230f702ad69fa2d7e10a2fa78b7a3 (diff)
downloadfluxbox-af74a2284551c8511b66d77112c7bf32831c1522.zip
fluxbox-af74a2284551c8511b66d77112c7bf32831c1522.tar.bz2
rotated fonts, buttons, containers. Used for tabs for now
Diffstat (limited to 'src/Container.hh')
-rw-r--r--src/Container.hh5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Container.hh b/src/Container.hh
index 4014131..20f7048 100644
--- a/src/Container.hh
+++ b/src/Container.hh
@@ -28,6 +28,7 @@
28#include "FbTk/FbWindow.hh" 28#include "FbTk/FbWindow.hh"
29#include "FbTk/EventHandler.hh" 29#include "FbTk/EventHandler.hh"
30#include "FbTk/NotCopyable.hh" 30#include "FbTk/NotCopyable.hh"
31#include "FbTk/Text.hh" // for Orientation
31 32
32namespace FbTk { 33namespace FbTk {
33 class Button; 34 class Button;
@@ -66,6 +67,7 @@ public:
66 void setMaxSizePerClient(unsigned int size); 67 void setMaxSizePerClient(unsigned int size);
67 void setMaxTotalSize(unsigned int size); 68 void setMaxTotalSize(unsigned int size);
68 void setAlignment(Alignment a); 69 void setAlignment(Alignment a);
70 void setOrientation(FbTk::Orientation orient);
69 71
70 Item back() { return m_item_list.back(); } 72 Item back() { return m_item_list.back(); }
71 73
@@ -83,6 +85,7 @@ public:
83 85
84 /// accessors 86 /// accessors
85 inline Alignment alignment() const { return m_align; } 87 inline Alignment alignment() const { return m_align; }
88 inline FbTk::Orientation orientation() const { return m_orientation; }
86 inline int size() const { return m_item_list.size(); } 89 inline int size() const { return m_item_list.size(); }
87 inline bool empty() const { return m_item_list.empty(); } 90 inline bool empty() const { return m_item_list.empty(); }
88 inline const Item& selected() const { return m_selected; } 91 inline const Item& selected() const { return m_selected; }
@@ -103,6 +106,8 @@ public:
103private: 106private:
104 void repositionItems(); 107 void repositionItems();
105 108
109 FbTk::Orientation m_orientation;
110
106 Alignment m_align; 111 Alignment m_align;
107 unsigned int m_max_size_per_client; 112 unsigned int m_max_size_per_client;
108 unsigned int m_max_total_size; 113 unsigned int m_max_total_size;