19 #ifndef MIR_SERVER_EXAMPLE_WINDOW_MANAGEMENT_INFO_H 20 #define MIR_SERVER_EXAMPLE_WINDOW_MANAGEMENT_INFO_H 36 std::shared_ptr <scene::Session>
const& session,
37 std::shared_ptr <scene::Surface>
const& surface,
40 bool can_be_active()
const;
44 bool must_have_parent()
const;
46 bool must_not_have_parent()
const;
48 bool is_visible()
const;
52 void constrain_resize(
53 std::shared_ptr <scene::Surface>
const& surface,
56 const bool left_resize,
57 const bool top_resize,
64 std::weak_ptr <scene::Surface>
parent;
65 std::vector <std::weak_ptr<scene::Surface>>
children;
69 bool is_titlebar =
false;
81 std::shared_ptr<scene::Session>
const& session,
82 std::shared_ptr<scene::Surface>
const& surface);
84 void paint_titlebar(
int intensity);
89 struct AllocatingPainter;
91 std::shared_ptr <StreamPainter> stream_painter;
96 std::vector<std::weak_ptr<scene::Surface>>
surfaces;
105 #endif //MIR_SERVER_EXAMPLE_WINDOW_MANAGEMENT_INFO_H
MirWindowType type
Definition: server_example_window_management_info.h:60
Definition: as_render_target.h:27
std::weak_ptr< scene::Session > session
Definition: server_example_window_management_info.h:63
mir::optional_value< shell::SurfaceAspectRatio > min_aspect
Definition: server_example_window_management_info.h:76
geometry::Height max_height
Definition: server_example_window_management_info.h:73
mir::optional_value< geometry::DeltaX > width_inc
Definition: server_example_window_management_info.h:74
std::shared_ptr< scene::Surface > titlebar
Definition: server_example_window_management_info.h:66
frontend::BufferStreamId titlebar_stream_id
Definition: server_example_window_management_info.h:68
std::vector< std::weak_ptr< scene::Surface > > surfaces
Definition: server_example_window_management_info.h:96
geometry::Width min_width
Definition: server_example_window_management_info.h:70
std::weak_ptr< scene::Surface > parent
Definition: server_example_window_management_info.h:64
mir::optional_value< shell::SurfaceAspectRatio > max_aspect
Definition: server_example_window_management_info.h:77
geometry::Rectangle tile
Definition: server_example_window_management_info.h:100
std::vector< std::weak_ptr< scene::Surface > > children
Definition: server_example_window_management_info.h:65
Definition: optional_value.h:28
mir::optional_value< geometry::DeltaY > height_inc
Definition: server_example_window_management_info.h:75
geometry::Rectangle restore_rect
Definition: server_example_window_management_info.h:62
mir::optional_value< graphics::DisplayConfigurationOutputId > output_id
Definition: server_example_window_management_info.h:78
Definition: surface_creation_parameters.h:41
Definition: rectangle.h:33
Definition: server_example_window_management_info.h:94
Definition: server_example_window_management_info.h:33
geometry::Height min_height
Definition: server_example_window_management_info.h:71
frontend::SurfaceId titlebar_id
Definition: server_example_window_management_info.h:67
geometry::Width max_width
Definition: server_example_window_management_info.h:72
MirWindowState state
Definition: server_example_window_management_info.h:61