|
MirAL
|
The interface through which the window management policy is determined. More...
#include <miral/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_surface (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 &info) |
| Notification that a window has lost focus. More... | |
| virtual void | advise_focus_gained (WindowInfo const &info) |
| Notification that a window has gained focus. More... | |
| virtual void | advise_state_change (WindowInfo const &window_info, MirSurfaceState 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 |
|
virtual |
Notification that a window is about to be destroyed.
| window_info | the window |
|
virtual |
after any related calls end
|
virtual |
Notification that a window has gained focus.
| window_info | the window |
Reimplemented in miral::CanonicalWindowManagerPolicy.
|
virtual |
Notification that a window has lost focus.
| window_info | the window |
|
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 |
|
virtual |
Notification that a window has been created.
| window_info | the window |
|
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 |
|
virtual |
Notification that a window is about to change state.
| window_info | the window |
| state | the new state |
|
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 miral::CanonicalWindowManagerPolicy.
|
pure virtual |
keyboard event handler
| event | the event |
|
pure virtual |
request from client to modify the window specification.
| window_info | the window |
| modifications | the requested changes |
Implemented in miral::CanonicalWindowManagerPolicy.
|
pure virtual |
pointer event handler
| event | the event |
|
pure virtual |
request from client to raise the window
| window_info | the window |
Implemented in miral::CanonicalWindowManagerPolicy.
|
pure virtual |
touch event handler
| event | the event |
|
pure virtual |
notification that the first buffer has been posted
| window_info | the window |
Implemented in miral::CanonicalWindowManagerPolicy.
|
delete |
|
pure virtual |
Customize initial window placement.
| app_info | the application requesting a new surface |
| requested_specification | the requested specification (updated with default placement) |
Implemented in miral::CanonicalWindowManagerPolicy.
Copyright © 2016 Canonical Ltd.
Generated on Tue Dec 20 16:03:55 UTC 2016