|
Mir
|
The interface through which the window management policy is determined. More...
#include <window_management_policy.h>
Public Member Functions | |
| virtual void | advise_begin () |
| before any related calls begin More... | |
| virtual void | advise_end () |
| after any related calls end More... | |
| virtual auto | place_new_window (ApplicationInfo const &app_info, WindowSpecification const &requested_specification) -> WindowSpecification=0 |
| Customize initial window placement. More... | |
| virtual auto | confirm_inherited_move (WindowInfo const &window_info, Displacement movement) -> Rectangle=0 |
| Confirm (and optionally adjust) the motion of a child window when the parent is moved. More... | |
| virtual | ~WindowManagementPolicy ()=default |
| WindowManagementPolicy ()=default | |
| WindowManagementPolicy (WindowManagementPolicy const &)=delete | |
| WindowManagementPolicy & | operator= (WindowManagementPolicy const &)=delete |
handle events originating from the client | |
The policy is expected to update the model as appropriate | |
| virtual void | handle_window_ready (WindowInfo &window_info)=0 |
| notification that the first buffer has been posted More... | |
| virtual void | handle_modify_window (WindowInfo &window_info, WindowSpecification const &modifications)=0 |
| request from client to modify the window specification. More... | |
| virtual void | handle_raise_window (WindowInfo &window_info)=0 |
| request from client to raise the window More... | |
handle events originating from user | |
The policy is expected to interpret (and optionally consume) the event | |
| virtual bool | handle_keyboard_event (MirKeyboardEvent const *event)=0 |
| keyboard event handler More... | |
| virtual bool | handle_touch_event (MirTouchEvent const *event)=0 |
| touch event handler More... | |
| virtual bool | handle_pointer_event (MirPointerEvent const *event)=0 |
| pointer event handler More... | |
notification of WM events that the policy may need to track. | |
| |
| virtual void | advise_new_app (ApplicationInfo &application) |
| Notification that a new application has connected. More... | |
| virtual void | advise_delete_app (ApplicationInfo const &application) |
| Notification that an application has disconnected. More... | |
| virtual void | advise_new_window (WindowInfo const &window_info) |
| Notification that a window has been created. More... | |
| virtual void | advise_focus_lost (WindowInfo const &window_info) |
| Notification that a window has lost focus. More... | |
| virtual void | advise_focus_gained (WindowInfo const &window_info) |
| Notification that a window has gained focus. More... | |
| virtual void | advise_state_change (WindowInfo const &window_info, MirWindowState state) |
| Notification that a window is about to change state. More... | |
| virtual void | advise_move_to (WindowInfo const &window_info, Point top_left) |
| Notification that a window is about to move. More... | |
| virtual void | advise_resize (WindowInfo const &window_info, Size const &new_size) |
| Notification that a window is about to resize. More... | |
| virtual void | advise_delete_window (WindowInfo const &window_info) |
| Notification that a window is about to be destroyed. More... | |
| virtual void | advise_raise (std::vector< Window > const &windows) |
| Notification that windows are being raised to the top. More... | |
The interface through which the window management policy is determined.
|
virtualdefault |
|
default |
|
delete |
|
virtual |
before any related calls begin
|
virtual |
Notification that an application has disconnected.
| application | the application |
Reimplemented in TilingWindowManagerPolicy.
|
virtual |
Notification that a window is about to be destroyed.
| window_info | the window |
Reimplemented in FloatingWindowManagerPolicy.
|
virtual |
after any related calls end
Reimplemented in TilingWindowManagerPolicy.
|
virtual |
Notification that a window has gained focus.
| window_info | the window |
Reimplemented in FloatingWindowManagerPolicy, TilingWindowManagerPolicy, miral::CanonicalWindowManagerPolicy, and KioskWindowManagerPolicy.
|
virtual |
Notification that a window has lost focus.
| window_info | the window |
Reimplemented in FloatingWindowManagerPolicy.
|
virtual |
Notification that a window is about to move.
| window_info | the window |
| top_left | the new position |
|
virtual |
Notification that a new application has connected.
| application | the application |
Reimplemented in TilingWindowManagerPolicy.
|
virtual |
Notification that a window has been created.
| window_info | the window |
Reimplemented in TilingWindowManagerPolicy, and FloatingWindowManagerPolicy.
|
virtual |
Notification that windows are being raised to the top.
These windows are ordered with parents before children, and form a single tree rooted at the first element.
| windows | the windows |
|
virtual |
Notification that a window is about to resize.
| window_info | the window |
| new_size | the new size |
Reimplemented in FloatingWindowManagerPolicy.
|
virtual |
Notification that a window is about to change state.
| window_info | the window |
| state | the new state |
Reimplemented in FloatingWindowManagerPolicy.
|
pure virtual |
Confirm (and optionally adjust) the motion of a child window when the parent is moved.
| window_info | the window |
| movement | the movement of the parent |
Implemented in TilingWindowManagerPolicy, and miral::CanonicalWindowManagerPolicy.
|
pure virtual |
keyboard event handler
| event | the event |
Implemented in FloatingWindowManagerPolicy, TilingWindowManagerPolicy, KioskWindowManagerPolicy, and mir_test_framework::CanonicalWindowManagerPolicy.
|
pure virtual |
request from client to modify the window specification.
| window_info | the window |
| modifications | the requested changes |
Implemented in FloatingWindowManagerPolicy, TilingWindowManagerPolicy, miral::CanonicalWindowManagerPolicy, and KioskWindowManagerPolicy.
|
pure virtual |
pointer event handler
| event | the event |
Implemented in TilingWindowManagerPolicy, FloatingWindowManagerPolicy, KioskWindowManagerPolicy, and mir_test_framework::CanonicalWindowManagerPolicy.
|
pure virtual |
request from client to raise the window
| window_info | the window |
Implemented in TilingWindowManagerPolicy, and miral::CanonicalWindowManagerPolicy.
|
pure virtual |
touch event handler
| event | the event |
Implemented in TilingWindowManagerPolicy, FloatingWindowManagerPolicy, KioskWindowManagerPolicy, and mir_test_framework::CanonicalWindowManagerPolicy.
|
pure virtual |
notification that the first buffer has been posted
| window_info | the window |
Implemented in FloatingWindowManagerPolicy, TilingWindowManagerPolicy, and miral::CanonicalWindowManagerPolicy.
|
delete |
|
pure virtual |
Customize initial window placement.
| app_info | the application requesting a new window |
| requested_specification | the requested specification (updated with default placement) |
Implemented in TilingWindowManagerPolicy, FloatingWindowManagerPolicy, mir_test_framework::DeclarativePlacementWindowManagerPolicy, miral::CanonicalWindowManagerPolicy, and KioskWindowManagerPolicy.
Copyright © 2012-2017
Canonical Ltd.
Generated on Wed Oct 11 15:14:10 UTC 2017