17 #ifndef MIRAL_SHELL_TILING_WINDOW_MANAGER_H
18 #define MIRAL_SHELL_TILING_WINDOW_MANAGER_H
53 auto place_new_window(
60 bool handle_keyboard_event(MirKeyboardEvent
const* event)
override;
61 bool handle_touch_event(MirTouchEvent
const* event)
override;
62 bool handle_pointer_event(MirPointerEvent
const* event)
override;
65 void advise_end()
override;
73 void handle_request_move(
miral::WindowInfo& window_info, MirInputEvent
const* input_event)
override;
82 void advise_application_zone_create(
miral::Zone const& zone)
override;
84 void advise_application_zone_delete(
miral::Zone const& zone)
override;
86 static const int modifier_mask =
93 void click(
Point cursor);
94 void resize(
Point cursor);
95 void drag(
Point cursor);
111 std::shared_ptr<SplashSession> spinner;
115 bool dirty_tiles =
false;
121 void push(std::shared_ptr<void>
const& tile);
122 void erase(std::shared_ptr<void>
const& tile);
124 using Enumerator = std::function<void(std::shared_ptr<void>
const& tile)>;
126 void enumerate(Enumerator
const& enumerator)
const;
127 auto count() ->
size_t {
return tiles.size(); }
130 std::vector<std::shared_ptr<void>> tiles;
Definition: tiling_window_manager.h:48
A collection of rectangles (with possible duplicates).
Definition: rectangles.h:33
Definition: internal_client.h:58
Handle class to manage a Mir surface. It may be null (e.g. default initialized)
Definition: window.h:36
The interface through which the window management policy is determined.
Definition: window_management_policy.h:50
Definition: window_specification.h:42
A rectangular area of the display. Not tied to a specific output.
Definition: zone.h:34
MirResizeEdge
Hints for resizing a window.
Definition: common.h:331
MirWindowState
Definition: common.h:71
@ mir_input_event_modifier_ctrl
Definition: enums.h:67
@ mir_input_event_modifier_meta
Definition: enums.h:70
@ mir_input_event_modifier_alt
Definition: enums.h:59
@ mir_input_event_modifier_shift
Definition: enums.h:62
@ mir_input_event_modifier_sym
Definition: enums.h:65
Basic geometry types. Types for dimensions, displacements, etc. and the operations that they support.
Definition: dimensions.h:29
std::shared_ptr< mir::scene::Session > Application
Definition: application.h:32
Definition: displacement.h:30
Definition: rectangle.h:31
Definition: application_info.h:30
Definition: window_info.h:31