My Project
Loading...
Searching...
No Matches
lomiri::shell::application::MirSurfaceListInterface Class Referenceabstract

Interface for a list model of MirSurfaces. More...

#include <lomiri/shell/application/MirSurfaceListInterface.h>

Inheritance diagram for lomiri::shell::application::MirSurfaceListInterface:
Collaboration diagram for lomiri::shell::application::MirSurfaceListInterface:

Public Types

enum  Roles { SurfaceRole = Qt::UserRole }
 The Roles supported by the model. More...
 

Public Member Functions

virtual Q_INVOKABLE MirSurfaceInterfaceget (int index)=0
 Returns the surface at the specified index.
 

Properties

int count
 Number of surfaces in this model.
 
lomiri::shell::application::MirSurfaceInterfacefirst
 The first (index 0) surface in this model.
 

Detailed Description

Interface for a list model of MirSurfaces.

Member Enumeration Documentation

◆ Roles

The Roles supported by the model.

SurfaceRole - A MirSurfaceInterface.

Property Documentation

◆ count

int lomiri::shell::application::MirSurfaceListInterface::count
read

Number of surfaces in this model.

This is the same as rowCount, added in order to keep compatibility with QML ListModels.

◆ first

lomiri::shell::application::MirSurfaceInterface* lomiri::shell::application::MirSurfaceListInterface::first
read

The first (index 0) surface in this model.

Will always match the result of get(0). But being a property, it's more appropriate for use in qml bindinds (JS expression gets reevaluated when it changes)


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