17#ifndef MIRAL_WINDOW_INFO_H
18#define MIRAL_WINDOW_INFO_H
141 void add_child(
Window const& child);
142 void remove_child(
Window const& child);
162 std::unique_ptr<Self> self;
Definition: dimensions.h:34
Handle class to manage a Mir surface. It may be null (e.g. default initialized)
Definition: window.h:36
Definition: window_specification.h:42
MirFocusMode
Focus mode controls how a surface gains and loses focus.
Definition: common.h:423
MirPointerConfinementState
Pointer Confinement.
Definition: common.h:385
MirWindowType
Definition: common.h:56
MirShellChrome
Shell chrome.
Definition: common.h:376
MirWindowState
Definition: common.h:71
MirPlacementGravity
Reference point for aligning a surface relative to a rectangle.
Definition: common.h:236
MirDepthLayer
Depth layer controls Z ordering of surfaces.
Definition: common.h:410
MirOrientationMode
Definition: common.h:209
Definition: splash_session.h:22
Mir Abstraction Layer.
Definition: floating_window_manager.h:29
void swap(miral::WindowInfo &lhs, miral::WindowInfo &rhs)
Definition: window_info.h:168
Definition: rectangle.h:31
Definition: window_info.h:31
auto min_height() const -> mir::geometry::Height
auto name() const -> std::string
bool can_be_active() const
auto type() const -> MirWindowType
static bool needs_titlebar(MirWindowType type)
auto depth_layer() const -> MirDepthLayer
void swap(WindowInfo &rhs)
Definition: window_info.h:107
auto height_inc() const -> mir::geometry::DeltaY
auto shell_chrome() const -> MirShellChrome
bool can_morph_to(MirWindowType new_type) const
auto userdata() const -> std::shared_ptr< void >
This can be used by client code to store window manager specific information.
bool must_not_have_parent() const
auto confine_pointer() const -> MirPointerConfinementState
bool has_output_id() const
auto output_id() const -> int
auto state() const -> MirWindowState
auto parent() const -> Window
auto max_width() const -> mir::geometry::Width
auto restore_rect() const -> mir::geometry::Rectangle
auto width_inc() const -> mir::geometry::DeltaX
These control the size increments of the window. This is used in cases like a terminal that can only ...
auto clip_area() const -> mir::optional_value< mir::geometry::Rectangle >
Mir will not render anything outside this rectangle.
auto min_width() const -> mir::geometry::Width
These constrain the sizes a window may be resized to (both interactively and pragmatically)....
auto window() const -> Window &
void constrain_resize(mir::geometry::Point &requested_pos, mir::geometry::Size &requested_size) const
WindowInfo(WindowInfo const &that)
auto children() const -> std::vector< Window > const &
friend class BasicWindowManager
Definition: window_info.h:135
WindowInfo & operator=(WindowInfo const &that)
auto min_aspect() const -> AspectRatio
These constrain the possible aspect ratio of the window. Current Wayland protocols to not support thi...
auto focus_mode() const -> MirFocusMode
How the window should gain and lose focus.
auto exclusive_rect() const -> mir::optional_value< mir::geometry::Rectangle >
Mir will try to avoid occluding the area covered by this rectangle (relative to the window) (only mea...
auto max_aspect() const -> AspectRatio
WindowInfo(Window const &window, WindowSpecification const ¶ms)
bool must_have_parent() const
auto max_height() const -> mir::geometry::Height
auto attached_edges() const -> MirPlacementGravity
Get the edges of the output that the window is attached to (only meaningful for windows in state mir_...
auto application_id() const -> std::string
The D-bus service name and basename of the app's .desktop file See http://standards....
auto preferred_orientation() const -> MirOrientationMode
Definition: window_specification.h:50