XdgToplevel QML Type

XdgToplevel represents the toplevel window specific parts of an xdg surface. 更多...

import 语句: import QtWayland.Compositor.XdgShell
实例化: QWaylandXdgToplevel

特性

方法

详细描述

This type is part of the XdgShell extension and provides a way to extend the functionality of an XdgSurface with features specific to desktop-style windows.

It corresponds to the Wayland interface xdg_toplevel .

特性文档编制

[read-only] activated : bool

This property holds whether toplevel is drawing itself as having input focus.


[read-only] appId : string

This property holds the app id of the XdgToplevel .


[read-only] decorationMode : enumeration

This property holds the current window decoration mode for this toplevel.

可能的值包括:

常量 描述
XdgToplevel.ServerSideDecoration The compositor should draw window decorations.
XdgToplevel.ClientSideDecoration The client should draw window decorations.

另请参阅 XdgDecorationManagerV1 .


[read-only] fullscreen : bool

This property holds whether the client has acknowledged that it should be fullscreen.


[read-only] maxSize : size

This property holds the maximum size of the XdgToplevel as requested by the client.

The compositor is free to ignore this value and request a larger size.


[read-only] maximized : bool

This property holds whether the client has acknowledged that it should be maximized.


[read-only] minSize : size

This property holds the minimum size of the XdgToplevel as requested by the client.

The compositor is free to ignore this value and request a smaller size.


[read-only] parentToplevel : XdgToplevel

此特性保持 XdgToplevel parent of this XdgToplevel .


[read-only] resizing : bool

This property holds whether the client has acknowledged that it is being resized.


[read-only] title : string

This property holds the title of the XdgToplevel .


[read-only] xdgSurface : XdgSurface

此特性保持 XdgSurface for this XdgToplevel .


方法文档编制

void sendClose ()

Sends a close event to the client. The client may choose to ignore the event.


int sendConfigure ( size size , list < int > 状态 )

Sends a configure event to the client. size contains the pixel size of the surface. A size of zero means the client is free to decide the size. Known states are enumerated in XdgToplevel::State.


void sendFullscreen ( size size )

Convenience for sending a configure event with the fullscreen state set, and maximized and resizing removed. The activated state is left in its current state.

size is the new size of the window.

另请参阅 sendUnmaximized .


void sendMaximized ( size size )

Convenience for sending a configure event with the maximized state set, and fullscreen and resizing removed. The activated state is left in its current state.

size is the new size of the window.


void sendResizing ( size maxSize )

Convenience for sending a configure event with the resizing state set, and maximized and fullscreen removed. The activated state is left in its current state.

maxSize is the new size of the window.


void sendUnmaximized ( size size )

Convenience for sending a configure event with the maximized, fullscreen and resizing states removed, and fullscreen and resizing removed. The activated state is left in its current state.

size is the new size of the window. If size is zero, the client decides the size.


size sizeForResize ( size size , point delta , uint edges )

Convenience for computing the new size given the current sizedelta ,和 edges active in the drag.