- //! Gets the window id of the frame's "plate" subelement
- inline Window plate() const { return _plate.window(); }
- //! Gets the window id of the frame's "titlebar" subelement
- inline Window titlebar() const { return _titlebar.window(); }
- //! Gets the window id of the frame's "label" subelement
- inline Window label() const { return _label.window(); }
- //! Gets the window id of the frame's "close button" subelement
- inline Window button_close() const { return _button_close.window(); }
- //! Gets the window id of the frame's "iconify button" subelement
- inline Window button_iconify() const { return _button_iconify.window(); }
- //! Gets the window id of the frame's "maximize button" subelement
- inline Window button_max() const { return _button_max.window(); }
- //! Gets the window id of the frame's "all desktops button" subelement
- inline Window button_alldesk() const { return _button_alldesk.window(); }
- //! Gets the window id of the frame's "handle" subelement
- inline Window handle() const { return _handle.window(); }
- //! Gets the window id of the frame's "left grip" subelement
- inline Window grip_left() const { return _grip_left.window(); }
- //! Gets the window id of the frame's "right grip" subelement
- inline Window grip_right() const { return _grip_right.window(); }
+ //! The position and size of the frame window
+ inline const otk::Rect& area() const { return _area; }
+
+ //! Returns if the frame is visible
+ inline bool visible() const { return _visible; }
+
+ //! Shows the frame
+ void show();
+ //! Hides the frame
+ void hide();
+
+ //! Returns the MouseContext for the given window id
+ /*!
+ Returns '-1' if no valid mouse context exists in the frame for the given
+ id.
+ */
+ ob::MouseContext::MC mouseContext(Window win) const;
+
+ //! Gets the window id of the frame's base top-level parent
+ inline Window window() const { return _frame; }
+ //! Gets the window id of the client's parent window
+ inline Window plate() const { return _plate; }