Loading...
Searching...
No Matches
Gfx::DesktopLayoutCanvas Class Referencefinal
Inheritance diagram for Gfx::DesktopLayoutCanvas:
Public Member Functions | |
| DesktopLayoutCanvas (QWidget *parent=nullptr) | |
| void | refreshScreens () |
| void | setWindowItems (const std::vector< OutputMapping > &mappings) |
| void | addOutput (QPoint pos, QSize size) |
| void | removeOutput (int index) |
| void | updateItem (int index, QPoint pos, QSize size) |
| void | selectItem (int index) |
| QPointF | desktopToScene (QPointF desktopPos) const |
| QPointF | sceneToDesktop (QPointF scenePos) const |
| QSizeF | desktopSizeToScene (QSize desktopSize) const |
| QSize | sceneSizeToDesktop (QSizeF sceneSize) const |
| int | detectScreen (QRect windowRect) const |
| bool | snapEnabled () const noexcept |
| void | setSnapEnabled (bool enabled) |
| QPointF | snapPosition (const DesktopLayoutItem *item, QPointF proposedPos) const |
Public Attributes | |
| std::function< void(int)> | onSelectionChanged |
| std::function< void(int)> | onItemGeometryChanged |
Protected Member Functions | |
| void | resizeEvent (QResizeEvent *event) override |
The documentation for this class was generated from the following files:
- DesktopLayout.hpp
- DesktopLayout.cpp