2
3
4
5
6
7
8
9
10
11
12
13
14
15
17#ifndef MIRAL_WINDOW_INFO_H
18#define MIRAL_WINDOW_INFO_H
20#include "miral/window.h"
21#include "miral/window_specification.h"
23#include <mir/geometry/rectangles.h>
24#include <mir/optional_value.h>
56 auto name()
const -> std::string;
58 auto type()
const -> MirWindowType;
60 auto state()
const -> MirWindowState;
135 friend class BasicWindowManager;
136 void name(std::string
const& name);
137 void type(MirWindowType type);
138 void state(MirWindowState state);
139 void restore_rect(
mir::
geometry::Rectangle
const& restore_rect);
140 void parent(
Window const& parent);
141 void add_child(
Window const& child);
142 void remove_child(
Window const& child);
149 void min_aspect(AspectRatio min_aspect);
150 void max_aspect(AspectRatio max_aspect);
152 void preferred_orientation(MirOrientationMode preferred_orientation);
153 void confine_pointer(MirPointerConfinementState confinement);
154 void shell_chrome(MirShellChrome chrome);
155 void depth_layer(MirDepthLayer depth_layer);
156 void attached_edges(MirPlacementGravity edges);
158 void application_id(std::string
const& application_id);
159 void focus_mode(MirFocusMode focus_mode);
162 std::unique_ptr<Self> self;
Definition: optional_value.h:27
Handle class to manage a Mir surface. It may be null (e.g. default initialized)
Definition: window.h:36
Definition: window_specification.h:42
Basic geometry types. Types for dimensions, displacements, etc. and the operations that they support.
Definition: size.h:27
Mir Abstraction Layer.
Definition: runner.h:35
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 &
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...
void clip_area(mir::optional_value< mir::geometry::Rectangle > const &area)
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_...
void userdata(std::shared_ptr< void > userdata)
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