QWaylandQuickShellSurfaceItem Class

The QWaylandQuickShellSurfaceItem class provides a Qt Quick item that represents a QWaylandShellSurface . 更多...

頭: #include <QWaylandQuickShellSurfaceItem>
CMake: find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor)
target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor)
qmake: QT += waylandcompositor
實例化: ShellSurfaceItem
繼承: QWaylandQuickItem

特性

公共函數

QWaylandQuickShellSurfaceItem (QQuickItem * parent = nullptr)
bool autoCreatePopupItems ()
QQuickItem * moveItem () const
void setAutoCreatePopupItems (bool enabled )
void setMoveItem (QQuickItem * moveItem )
void setShellSurface (QWaylandShellSurface * shellSurface )
void setStaysOnBottom (bool on )
void setStaysOnTop (bool on )
QWaylandShellSurface * shellSurface () const
bool staysOnBottom () const
bool staysOnTop () const

信號

void autoCreatePopupItemsChanged ()
void moveItemChanged ()
void shellSurfaceChanged ()
void staysOnBottomChanged ()
void staysOnTopChanged ()

詳細描述

This class is used to render wl_shell , xdg_shell or ivi_application surfaces as part of a Qt Quick scene. It handles moving and resizing triggered by clicking on the window decorations.

另請參閱 QWaylandQuickItem , QWaylandWlShellSurface ,和 QWaylandIviSurface .

特性文檔編製

autoCreatePopupItems : bool

This property holds whether QWaylandQuickShellSurfaceItems for popups parented to the shell surface managed by this item should automatically be created.

訪問函數:

bool autoCreatePopupItems ()
void setAutoCreatePopupItems (bool enabled )

通知程序信號:

void autoCreatePopupItemsChanged ()

moveItem : QQuickItem *

This property holds the move item for this QWaylandQuickShellSurfaceItem . This is the item that will be moved when the clients request the QWaylandShellSurface to be moved, maximized, resized etc. This property is useful when implementing server-side decorations.

訪問函數:

QQuickItem * moveItem () const
void setMoveItem (QQuickItem * moveItem )

通知程序信號:

void moveItemChanged ()

shellSurface : QWaylandShellSurface *

此特性保持 QWaylandShellSurface rendered by this QWaylandQuickShellSurfaceItem . It may either be a QWaylandXdgSurfaceV5, QWaylandWlShellSurface or QWaylandIviSurface depending on which shell protocol is in use.

訪問函數:

QWaylandShellSurface * shellSurface () const
void setShellSurface (QWaylandShellSurface * shellSurface )

通知程序信號:

void shellSurfaceChanged ()

staysOnBottom : bool

Keep this item above other Wayland surfaces

訪問函數:

bool staysOnBottom () const
void setStaysOnBottom (bool on )

通知程序信號:

void staysOnBottomChanged ()

staysOnTop : bool

Keep this item above other Wayland surfaces

訪問函數:

bool staysOnTop () const
void setStaysOnTop (bool on )

通知程序信號:

void staysOnTopChanged ()

成員函數文檔編製

QWaylandQuickShellSurfaceItem:: QWaylandQuickShellSurfaceItem ( QQuickItem * parent = nullptr)

Constructs a QWaylandQuickWlShellSurfaceItem with the given parent .