KWin
Loading...
Searching...
No Matches
Public Types | Signals | Public Member Functions | Protected Member Functions | List of all members
KWin::Test::XdgToplevel Class Reference

#include <kwin_wayland_test.h>

Inheritance diagram for KWin::Test::XdgToplevel:

Public Types

enum class  State { Maximized = 1 << 0 , Fullscreen = 1 << 1 , Resizing = 1 << 2 , Activated = 1 << 3 }
 

Signals

void configureRequested (const QSize &size, KWin::Test::XdgToplevel::States states)
 
void closeRequested ()
 

Public Member Functions

 XdgToplevel (XdgSurface *surface, QObject *parent=nullptr)
 
 ~XdgToplevel () override
 
XdgSurfacexdgSurface () const
 

Protected Member Functions

void xdg_toplevel_configure (int32_t width, int32_t height, wl_array *states) override
 
void xdg_toplevel_close () override
 

Detailed Description

The XdgToplevel class represents an xdg_toplevel surface. Note that the XdgToplevel surface takes the ownership of the underlying XdgSurface object.

Definition at line 212 of file kwin_wayland_test.h.

Member Enumeration Documentation

◆ State

enum class KWin::Test::XdgToplevel::State
strong
Enumerator
Maximized 
Fullscreen 
Resizing 
Activated 

Definition at line 217 of file kwin_wayland_test.h.

Constructor & Destructor Documentation

◆ XdgToplevel()

KWin::Test::XdgToplevel::XdgToplevel ( XdgSurface * surface,
QObject * parent = nullptr )
explicit

Definition at line 109 of file test_helpers.cpp.

◆ ~XdgToplevel()

KWin::Test::XdgToplevel::~XdgToplevel ( )
override

Definition at line 116 of file test_helpers.cpp.

Member Function Documentation

◆ closeRequested

void KWin::Test::XdgToplevel::closeRequested ( )
signal

◆ configureRequested

void KWin::Test::XdgToplevel::configureRequested ( const QSize & size,
KWin::Test::XdgToplevel::States states )
signal

◆ xdg_toplevel_close()

void KWin::Test::XdgToplevel::xdg_toplevel_close ( )
overrideprotected

Definition at line 153 of file test_helpers.cpp.

◆ xdg_toplevel_configure()

void KWin::Test::XdgToplevel::xdg_toplevel_configure ( int32_t width,
int32_t height,
wl_array * states )
overrideprotected

Definition at line 126 of file test_helpers.cpp.

◆ xdgSurface()

XdgSurface * KWin::Test::XdgToplevel::xdgSurface ( ) const

Definition at line 121 of file test_helpers.cpp.


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