My Project
unity::shell::application::MirFocusControllerInterface Class Reference

Defines which MirSurface has focus. More...

#include <unity/shell/application/MirFocusControllerInterface.h>

Inheritance diagram for unity::shell::application::MirFocusControllerInterface:
Collaboration diagram for unity::shell::application::MirFocusControllerInterface:

Properties

unity::shell::application::MirSurfaceInterface focusedSurface
 The MirSurface which currently has focus, if any. More...
 

Detailed Description

Defines which MirSurface has focus.

Even though QQuickWindow::activeFocusItem is who ultimately defines the focused MirSurface in the QML scene, the two might not necessarily match all the time. And also this is a cleaner way of keeping tabs on the focused MirSurface as it doesn't involve unrelated QML items.

Property Documentation

unity::shell::application::MirSurfaceInterface unity::shell::application::MirFocusControllerInterface::focusedSurface
readwrite

The MirSurface which currently has focus, if any.

Shell provides this information.

But it can also be changed by the implementation. When a MirSurfaceItem gets active focus from the QML scene, it will also call MirFocusController::setFocusedSurface for the MirSurface it holds.


The documentation for this class was generated from the following file: