]> Dogcows Code - chaz/openbox/blobdiff - src/frame.hh
manages windows that exist before running.
[chaz/openbox] / src / frame.hh
index 7814ed3563e608862680549b8142bbecbbdd4f34..0c3a93f2a8d885dcc4d713857f6dfee23c3e7594 100644 (file)
@@ -9,14 +9,14 @@ extern "C" {
 #include <X11/Xlib.h>
 }
 
-#include <string>
-
 #include "client.hh"
 #include "otk/strut.hh"
 #include "otk/rect.hh"
 #include "otk/screeninfo.hh"
 #include "otk/style.hh"
 
+#include <string>
+
 namespace ob {
 
 //! Holds and decorates a frame around an OBClient (client window)
@@ -24,7 +24,7 @@ namespace ob {
 */
 class OBFrame {
 private:
-  const OBClient *_client;
+  OBClient *_client;
   const otk::ScreenInfo *_screen;
 
   //! The style to use for size and display the decorations
@@ -89,7 +89,7 @@ public:
     @param client The client window which will be decorated by the new OBFrame
     @param style The style to use to decorate the frame
   */
-  OBFrame(const OBClient *client, const otk::Style *style);
+  OBFrame(OBClient *client, const otk::Style *style);
   //! Destroys the OBFrame object
   virtual ~OBFrame();
 
@@ -104,6 +104,16 @@ public:
   //! Returns the frame's most-parent window, which is a child of the root
   //! window
   inline Window window() const { return _window; }
+
+  inline Window titlebar() const { return _titlebar; }
+  inline Window label() const { return _label; }
+  inline Window buttonIconify() const { return _button_iconify; }
+  inline Window buttonMax() const { return _button_max; }
+  inline Window buttonStick() const { return _button_stick; }
+  inline Window buttonClose() const { return _button_close; }
+  inline Window handle() const { return _handle; }
+  inline Window gripLeft() const { return _grip_left; }
+  inline Window gripRight() const { return _grip_right; }
 };
 
 }
This page took 0.022538 seconds and 4 git commands to generate.