Phosphor
Qt6 / Wayland library suite for window-management tools
 
Loading...
Searching...
No Matches
PhosphorShell::ScreenModel Class Reference

#include <phosphor-shell/include/PhosphorShell/ScreenModel.h>

Inheritance diagram for PhosphorShell::ScreenModel:
[legend]

Public Types

enum  Role {
  ScreenRole = Qt::UserRole + 1 , NameRole , WidthRole , HeightRole ,
  IsPrimaryRole
}
 

Public Member Functions

 ScreenModel (PhosphorLayer::IScreenProvider *provider, QObject *parent=nullptr)
 
 ~ScreenModel () override
 
int rowCount (const QModelIndex &parent={}) const override
 
QVariant data (const QModelIndex &index, int role) const override
 
QHash< int, QByteArray > roleNames () const override
 

Member Enumeration Documentation

◆ Role

Enumerator
ScreenRole 
NameRole 
WidthRole 
HeightRole 
IsPrimaryRole 

Constructor & Destructor Documentation

◆ ScreenModel()

PhosphorShell::ScreenModel::ScreenModel ( PhosphorLayer::IScreenProvider provider,
QObject *  parent = nullptr 
)
explicit

◆ ~ScreenModel()

PhosphorShell::ScreenModel::~ScreenModel ( )
override

Member Function Documentation

◆ data()

QVariant PhosphorShell::ScreenModel::data ( const QModelIndex &  index,
int  role 
) const
override

◆ roleNames()

QHash< int, QByteArray > PhosphorShell::ScreenModel::roleNames ( ) const
override

◆ rowCount()

int PhosphorShell::ScreenModel::rowCount ( const QModelIndex &  parent = {}) const
override

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