My Project
unity::shell::scopes::PreviewStackInterface Class Referenceabstract

A master model for previews. More...

#include <unity/shell/scopes/PreviewStackInterface.h>

Inheritance diagram for unity::shell::scopes::PreviewStackInterface:
Collaboration diagram for unity::shell::scopes::PreviewStackInterface:

Public Types

enum  Roles { RolePreviewModel }
 The roles supported by this model.
 

Public Member Functions

virtual Q_INVOKABLE unity::shell::scopes::PreviewModelInterfacegetPreviewModel (int index) const =0
 Get preview model at a particular index. More...
 

Properties

int widgetColumnCount
 Number of columns the individual previews should expose. More...
 

Detailed Description

A master model for previews.

Each item in this model represents an individual preview, where each is stacked on top of the previous one. Item on index 0 is always the one on the very bottom of the stack.

Member Function Documentation

virtual Q_INVOKABLE unity::shell::scopes::PreviewModelInterface* unity::shell::scopes::PreviewStackInterface::getPreviewModel ( int  index) const
pure virtual

Get preview model at a particular index.

Return PreviewModelInterface instance at a particular index or nullptr if the index is out of bounds.

Property Documentation

int unity::shell::scopes::PreviewStackInterface::widgetColumnCount
readwrite

Number of columns the individual previews should expose.

Previews can be laid out in a different number of columns - for example the number of desired columns can change when changing orientation of the display and therefore there's more horizontal space available.


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