Lomiri
Loading...
Searching...
No Matches
AvailableDesktopArea Class Reference

Used to inform qtmir/miral about the available desktop area of shell. More...

#include <plugins/WindowManager/AvailableDesktopArea.h>

Inherits QQuickItem.

Public Member Functions

 AvailableDesktopArea (QQuickItem *parent=nullptr)
 

Protected Member Functions

void itemChange (ItemChange change, const ItemChangeData &value) override
 

Detailed Description

Used to inform qtmir/miral about the available desktop area of shell.

So that qtmir/miral can take correct window management decisions.

Definition at line 27 of file AvailableDesktopArea.h.

Constructor & Destructor Documentation

◆ AvailableDesktopArea()

AvailableDesktopArea::AvailableDesktopArea ( QQuickItem *  parent = nullptr)

Definition at line 23 of file AvailableDesktopArea.cpp.

24 : QQuickItem(parent)
25{
26 connect(this, &QQuickItem::xChanged, this, &AvailableDesktopArea::updatePlatformWindowProperty);
27 connect(this, &QQuickItem::yChanged, this, &AvailableDesktopArea::updatePlatformWindowProperty);
28 connect(this, &QQuickItem::widthChanged, this, &AvailableDesktopArea::updatePlatformWindowProperty);
29 connect(this, &QQuickItem::heightChanged, this, &AvailableDesktopArea::updatePlatformWindowProperty);
30}

Member Function Documentation

◆ itemChange()

void AvailableDesktopArea::itemChange ( ItemChange  change,
const ItemChangeData &  value 
)
overrideprotected

Definition at line 45 of file AvailableDesktopArea.cpp.

46{
47 if (change == ItemSceneChange) {
48 updatePlatformWindowProperty();
49 }
50}

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