Lomiri
|
A slightly higher concept than MirSurface. More...
#include <plugins/WindowManager/Window.h>
Inherits QObject.
Public Slots | |
void | requestState (Mir::State state) |
Requests a change to the specified state. | |
void | close () |
Sends a close request. | |
void | activate () |
Focuses and raises the window. | |
Signals | |
void | closeRequested () |
void | emptyWindowActivated () |
void | positionChanged (QPoint position) |
void | requestedPositionChanged (QPoint position) |
void | stateChanged (Mir::State value) |
void | focusedChanged (bool value) |
void | confinesMousePointerChanged (bool value) |
void | surfaceChanged (lomiri::shell::application::MirSurfaceInterface *surface) |
void | allowClientResizeChanged (bool value) |
void | liveChanged (bool value) |
void | focusRequested () |
Emitted when focus for this window is requested by an external party. | |
Public Member Functions | |
Window (int id, QObject *parent=nullptr) | |
QPoint | position () const |
QPoint | requestedPosition () const |
void | setRequestedPosition (const QPoint &) |
Mir::State | state () const |
bool | focused () const |
bool | confinesMousePointer () const |
int | id () const |
lomiri::shell::application::MirSurfaceInterface * | surface () const |
void | setSurface (lomiri::shell::application::MirSurfaceInterface *surface) |
void | setFocused (bool value) |
bool | allowClientResize () const |
void | setAllowClientResize (bool) |
QString | toString () const |
Properties | |
QPoint | position |
Position of the current surface buffer, in pixels. | |
QPoint | requestedPosition |
Requested position of the current surface buffer, in pixels. | |
Mir::State | state |
State of the surface. | |
bool | focused |
Whether the surface is focused. | |
bool | confinesMousePointer |
Whether the surface wants to confine the mouse pointer within its boundaries. | |
int | id |
A unique identifier for this window. Useful for telling windows apart in a list model as they get moved around. | |
lomiri::shell::application::MirSurfaceInterface * | surface |
Surface backing up this window It might be null if a surface hasn't been created yet (application is starting up) or if the corresponding application has been killed (but can still get restarted to continue from where it left) | |
bool | allowClientResize |
Whether to comply to resize requests coming from the client side. | |
A slightly higher concept than MirSurface.
A Window exists before its MirSurface gets created (for splashscreen purposes) and might also hang around after the backing surface is gone (In case the application was killed to free up memory, as it should still remain in the window list since the user did not explicitly close it).
Window::Window | ( | int | id, |
QObject * | parent = nullptr |
||
) |
Definition at line 32 of file Window.cpp.
|
virtual |
Definition at line 40 of file Window.cpp.
|
slot |
Focuses and raises the window.
Definition at line 137 of file Window.cpp.
bool Window::allowClientResize | ( | ) | const |
Definition at line 71 of file Window.cpp.
|
slot |
Sends a close request.
Definition at line 128 of file Window.cpp.
bool Window::confinesMousePointer | ( | ) | const |
Definition at line 98 of file Window.cpp.
bool Window::focused | ( | ) | const |
Definition at line 93 of file Window.cpp.
int Window::id | ( | ) | const |
Definition at line 107 of file Window.cpp.
QPoint Window::position | ( | ) | const |
Definition at line 45 of file Window.cpp.
QPoint Window::requestedPosition | ( | ) | const |
Definition at line 50 of file Window.cpp.
|
slot |
Requests a change to the specified state.
Definition at line 117 of file Window.cpp.
void Window::setAllowClientResize | ( | bool | value | ) |
Definition at line 76 of file Window.cpp.
void Window::setFocused | ( | bool | value | ) |
Definition at line 238 of file Window.cpp.
void Window::setRequestedPosition | ( | const QPoint & | value | ) |
Definition at line 55 of file Window.cpp.
void Window::setSurface | ( | lomiri::shell::application::MirSurfaceInterface * | surface | ) |
Definition at line 147 of file Window.cpp.
Mir::State Window::state | ( | ) | const |
Definition at line 88 of file Window.cpp.
lomiriapi::MirSurfaceInterface * Window::surface | ( | ) | const |
Definition at line 112 of file Window.cpp.
QString Window::toString | ( | ) | const |
Definition at line 249 of file Window.cpp.
|
readwrite |
|
read |
|
read |
|
read |
|
read |
|
readwrite |
|
read |