]>
Dogcows Code - chaz/openbox/blob - src/frame.hh
1 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
14 #include "otk/strut.hh"
15 #include "otk/rect.hh"
16 #include "otk/screeninfo.hh"
17 #include "otk/style.hh"
23 //! Holds and decorates a frame around an OBClient (client window)
28 const OBClient
*_client
;
29 const otk::ScreenInfo
*_screen
;
31 //! The style to use for size and display the decorations
32 const otk::Style
*_style
;
34 //! The window id of the base frame window
36 //! The size of the frame on each side of the client window
39 //! Creates the base frame window
42 //! Reparents the client window from the root window onto the frame
44 //! Reparents the client window back to the root window
46 @param remap Re-map the client window when we're done reparenting?
48 void releaseClient(bool remap
);
51 //! Constructs an OBFrame object, and reparents the client to itself
53 @param client The client window which will be decorated by the new OBFrame
54 @param style The style to use to decorate the frame
56 OBFrame(const OBClient
*client
, const otk::Style
*style
);
57 //! Destroys the OBFrame object
60 //! Load a style to decorate the frame with
61 void loadStyle(const otk::Style
*style
);
63 //! Size the frame to the client
65 //! Shape the frame window to the client window
68 //! Returns the frame's most-parent window, which is a child of the root
70 inline Window
window() const { return _window
; }
This page took 0.03518 seconds and 4 git commands to generate.