diff options
Diffstat (limited to 'src/Screen.hh')
-rw-r--r-- | src/Screen.hh | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/src/Screen.hh b/src/Screen.hh index ffb5df4..5201eb7 100644 --- a/src/Screen.hh +++ b/src/Screen.hh | |||
@@ -22,7 +22,7 @@ | |||
22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
23 | // DEALINGS IN THE SOFTWARE. | 23 | // DEALINGS IN THE SOFTWARE. |
24 | 24 | ||
25 | // $Id: Screen.hh,v 1.23 2002/03/18 20:20:09 fluxgen Exp $ | 25 | // $Id: Screen.hh,v 1.24 2002/03/19 14:30:42 fluxgen Exp $ |
26 | 26 | ||
27 | #ifndef SCREEN_HH | 27 | #ifndef SCREEN_HH |
28 | #define SCREEN_HH | 28 | #define SCREEN_HH |
@@ -102,6 +102,11 @@ public: | |||
102 | inline void saveSlitDirection(int d) { resource.slit_direction = d; } | 102 | inline void saveSlitDirection(int d) { resource.slit_direction = d; } |
103 | inline void saveSlitOnTop(Bool t) { resource.slit_on_top = t; } | 103 | inline void saveSlitOnTop(Bool t) { resource.slit_on_top = t; } |
104 | inline void saveSlitAutoHide(Bool t) { resource.slit_auto_hide = t; } | 104 | inline void saveSlitAutoHide(Bool t) { resource.slit_auto_hide = t; } |
105 | #ifdef XINERAMA | ||
106 | inline const unsigned int getSlitOnHead(void) const { return resource.slit_on_head; } | ||
107 | inline void saveSlitOnHead(unsigned int h) { resource.slit_on_head = h; } | ||
108 | #endif // XINERAMA | ||
109 | |||
105 | #endif // SLIT | 110 | #endif // SLIT |
106 | 111 | ||
107 | inline Toolbar *getToolbar(void) { return toolbar; } | 112 | inline Toolbar *getToolbar(void) { return toolbar; } |
@@ -125,6 +130,9 @@ public: | |||
125 | 130 | ||
126 | inline const int getNumberOfWorkspaces(void) { return *resource.workspaces; } | 131 | inline const int getNumberOfWorkspaces(void) { return *resource.workspaces; } |
127 | inline const Toolbar::Placement getToolbarPlacement(void) { return *resource.toolbar_placement; } | 132 | inline const Toolbar::Placement getToolbarPlacement(void) { return *resource.toolbar_placement; } |
133 | #ifdef XINERAMA | ||
134 | inline const int getToolbarOnHead(void) { return *resource.toolbar_on_head; } | ||
135 | #endif // XINERAMA | ||
128 | inline const int getToolbarWidthPercent(void) { return *resource.toolbar_width_percent; } | 136 | inline const int getToolbarWidthPercent(void) { return *resource.toolbar_width_percent; } |
129 | inline const int getPlacementPolicy(void) const { return resource.placement_policy; } | 137 | inline const int getPlacementPolicy(void) const { return resource.placement_policy; } |
130 | inline const int getEdgeSnapThreshold(void) { return *resource.edge_snap_threshold; } | 138 | inline const int getEdgeSnapThreshold(void) { return *resource.edge_snap_threshold; } |
@@ -145,6 +153,10 @@ public: | |||
145 | inline void saveToolbarAutoHide(bool r) { *resource.toolbar_auto_hide = r; } | 153 | inline void saveToolbarAutoHide(bool r) { *resource.toolbar_auto_hide = r; } |
146 | inline void saveToolbarWidthPercent(int w) { *resource.toolbar_width_percent = w; } | 154 | inline void saveToolbarWidthPercent(int w) { *resource.toolbar_width_percent = w; } |
147 | inline void saveToolbarPlacement(Toolbar::Placement p) { *resource.toolbar_placement = p; } | 155 | inline void saveToolbarPlacement(Toolbar::Placement p) { *resource.toolbar_placement = p; } |
156 | #ifdef XINERAMA | ||
157 | inline void saveToolbarOnHead(int head) { *resource.toolbar_on_head = head; } | ||
158 | #endif // XINERAMA | ||
159 | |||
148 | inline void savePlacementPolicy(int p) { resource.placement_policy = p; } | 160 | inline void savePlacementPolicy(int p) { resource.placement_policy = p; } |
149 | inline void saveRowPlacementDirection(int d) { resource.row_direction = d; } | 161 | inline void saveRowPlacementDirection(int d) { resource.row_direction = d; } |
150 | inline void saveColPlacementDirection(int d) { resource.col_direction = d; } | 162 | inline void saveColPlacementDirection(int d) { resource.col_direction = d; } |
@@ -294,12 +306,21 @@ private: | |||
294 | 306 | ||
295 | Resource<Tab::Placement> tab_placement; | 307 | Resource<Tab::Placement> tab_placement; |
296 | Resource<Tab::Alignment> tab_alignment; | 308 | Resource<Tab::Alignment> tab_alignment; |
309 | #ifdef XINERAMA | ||
310 | Resource<int> toolbar_on_head; | ||
311 | #endif // XINERAMA | ||
312 | |||
297 | Resource<Toolbar::Placement> toolbar_placement; | 313 | Resource<Toolbar::Placement> toolbar_placement; |
298 | 314 | ||
299 | 315 | ||
300 | #ifdef SLIT | 316 | #ifdef SLIT |
301 | Bool slit_on_top, slit_auto_hide; | 317 | Bool slit_on_top, slit_auto_hide; |
302 | int slit_placement, slit_direction; | 318 | int slit_placement, slit_direction; |
319 | |||
320 | #ifdef XINERAMA | ||
321 | unsigned int slit_on_head; | ||
322 | #endif // XINERAMA | ||
323 | |||
303 | #endif // SLIT | 324 | #endif // SLIT |
304 | 325 | ||
305 | 326 | ||