Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QWaylandViewporterPrivate::Viewport Class Reference

#include <qwaylandviewporter_p.h>

+ Inheritance diagram for QWaylandViewporterPrivate::Viewport:
+ Collaboration diagram for QWaylandViewporterPrivate::Viewport:

Public Member Functions

 Viewport (QWaylandSurface *surface, wl_client *client, int id)
 
 ~Viewport () override
 
void checkCommittedState ()
 

Protected Member Functions

void wp_viewport_destroy_resource (Resource *resource) override
 
void wp_viewport_destroy (Resource *resource) override
 
void wp_viewport_set_source (Resource *resource, wl_fixed_t x, wl_fixed_t y, wl_fixed_t width, wl_fixed_t height) override
 
void wp_viewport_set_destination (Resource *resource, int32_t width, int32_t height) override
 

Detailed Description

Definition at line 37 of file qwaylandviewporter_p.h.

Constructor & Destructor Documentation

◆ Viewport()

QWaylandViewporterPrivate::Viewport::Viewport ( QWaylandSurface * surface,
wl_client * client,
int id )
explicit

Definition at line 89 of file qwaylandviewporter.cpp.

References Q_ASSERT.

◆ ~Viewport()

QWaylandViewporterPrivate::Viewport::~Viewport ( )
override

Definition at line 96 of file qwaylandviewporter.cpp.

References QWaylandSurfacePrivate::get(), and Q_ASSERT.

+ Here is the call graph for this function:

Member Function Documentation

◆ checkCommittedState()

void QWaylandViewporterPrivate::Viewport::checkCommittedState ( )

Definition at line 108 of file qwaylandviewporter.cpp.

References destination, QWaylandSurfacePrivate::get(), QRectF::height(), QRectF::united(), and QRectF::width().

Referenced by QWaylandSurfacePrivate::surface_commit().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ wp_viewport_destroy()

void QWaylandViewporterPrivate::Viewport::wp_viewport_destroy ( Resource * resource)
overrideprotected

Definition at line 146 of file qwaylandviewporter.cpp.

References QWaylandSurfacePrivate::get().

+ Here is the call graph for this function:

◆ wp_viewport_destroy_resource()

void QWaylandViewporterPrivate::Viewport::wp_viewport_destroy_resource ( Resource * resource)
overrideprotected

Definition at line 140 of file qwaylandviewporter.cpp.

References Q_UNUSED.

◆ wp_viewport_set_destination()

void QWaylandViewporterPrivate::Viewport::wp_viewport_set_destination ( Resource * resource,
int32_t width,
int32_t height )
overrideprotected

Definition at line 192 of file qwaylandviewporter.cpp.

References QWaylandSurfacePrivate::get(), QSize::isValid(), and Q_UNUSED.

+ Here is the call graph for this function:

◆ wp_viewport_set_source()

void QWaylandViewporterPrivate::Viewport::wp_viewport_set_source ( Resource * resource,
wl_fixed_t x,
wl_fixed_t y,
wl_fixed_t width,
wl_fixed_t height )
overrideprotected

Definition at line 156 of file qwaylandviewporter.cpp.

References QWaylandSurfacePrivate::get(), position(), and Q_UNUSED.

+ Here is the call graph for this function:

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