]> Dogcows Code - chaz/openbox/blobdiff - src/Screen.h
Added a runtime option for hiding the toolbar totally. Will be cleaner
[chaz/openbox] / src / Screen.h
index 06a0c15c9a5be8a4aa293053d08b548eebb7116b..14dbff2140cc3936634a1b4cac9d7273c7bd281c 100644 (file)
@@ -102,7 +102,7 @@ private:
   Pixmap geom_pixmap;
   Window geom_window;
 
-  Openbox *openbox;
+  Openbox &openbox;
   BImageControl *image_control;
   Configmenu *configmenu;
   Iconmenu *iconmenu;
@@ -133,7 +133,7 @@ private:
 
     Bool toolbar_on_top, toolbar_auto_hide, sloppy_focus, auto_raise,
       auto_edge_balance, image_dither, ordered_dither, opaque_move, full_max,
-      focus_new, focus_last;
+      focus_new, focus_last, toolbar_total_hide;
     BColor border_color;
     obResource styleconfig;
 
@@ -175,13 +175,15 @@ protected:
 
 
 public:
-  BScreen(Openbox *, int);
+  BScreen(Openbox &, int);
   ~BScreen(void);
 
   inline const Bool &isToolbarOnTop(void) const
   { return resource.toolbar_on_top; }
   inline const Bool &doToolbarAutoHide(void) const
   { return resource.toolbar_auto_hide; }
+  inline const Bool &doToolbarHide(void) const
+    {return resource.toolbar_total_hide;}
   inline const Bool &isSloppyFocus(void) const
   { return resource.sloppy_focus; }
   inline const Bool &isRootColormapInstalled(void) const
@@ -199,7 +201,7 @@ public:
 
   inline const GC &getOpGC() const { return opGC; }
 
-  inline Openbox *getOpenbox(void) { return openbox; }
+  inline Openbox &getOpenbox(void) { return openbox; }
   inline BColor *getBorderColor(void) { return &resource.border_color; }
   inline BImageControl *getImageControl(void) { return image_control; }
   inline Rootmenu *getRootmenu(void) { return rootmenu; }
@@ -289,7 +291,6 @@ public:
   inline void saveFocusNew(Bool f) { resource.focus_new = f; }
   inline void saveFocusLast(Bool f) { resource.focus_last = f; }
   inline void iconUpdate(void) { iconmenu->update(); }
-
 #ifdef    HAVE_STRFTIME
   inline char *getStrftimeFormat(void) { return resource.strftime_format; }
   void saveStrftimeFormat(const char *);
@@ -328,7 +329,7 @@ public:
   void showPosition(int, int);
   void showGeometry(unsigned int, unsigned int);
   void hideGeometry(void);
-
+  void saveToolbarHide( Bool b);
   void updateNetizenCurrentWorkspace(void);
   void updateNetizenWorkspaceCount(void);
   void updateNetizenWindowFocus(void);
This page took 0.026 seconds and 4 git commands to generate.