Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
KODI::WINDOWING::GBM::CGBMUtils::CGBMDevice::CGBMSurface Class Reference

A wrapper for gbm_surface to allow OOP and RAII. More...

#include <GBMUtils.h>

Classes

class  CGBMSurfaceBuffer
 A wrapper for gbm_bo to allow OOP and RAII. More...
 

Public Member Functions

 CGBMSurface (const CGBMSurface &)=delete
 
CGBMSurfaceoperator= (const CGBMSurface &)=delete
 
 CGBMSurface (gbm_surface *surface)
 
 ~CGBMSurface ()=default
 
gbm_surface * Get () const
 Get the underlying gbm_surface.
 
CGBMSurfaceBufferLockFrontBuffer ()
 Lock the surface's current front buffer.
 

Detailed Description

A wrapper for gbm_surface to allow OOP and RAII.

Constructor & Destructor Documentation

◆ CGBMSurface() [1/2]

KODI::WINDOWING::GBM::CGBMUtils::CGBMDevice::CGBMSurface::CGBMSurface ( const CGBMSurface & )
delete

◆ CGBMSurface() [2/2]

CGBMUtils::CGBMDevice::CGBMSurface::CGBMSurface ( gbm_surface * surface)
explicit

◆ ~CGBMSurface()

KODI::WINDOWING::GBM::CGBMUtils::CGBMDevice::CGBMSurface::~CGBMSurface ( )
default

Member Function Documentation

◆ Get()

gbm_surface * KODI::WINDOWING::GBM::CGBMUtils::CGBMDevice::CGBMSurface::Get ( ) const
inline

Get the underlying gbm_surface.

Returns
gbm_surface* A pointer to the underlying gbm_surface

◆ LockFrontBuffer()

CGBMUtils::CGBMDevice::CGBMSurface::CGBMSurfaceBuffer & CGBMUtils::CGBMDevice::CGBMSurface::LockFrontBuffer ( )

Lock the surface's current front buffer.

Returns
CGBMSurfaceBuffer* A pointer to a CGBMSurfaceBuffer object

◆ operator=()

CGBMSurface & KODI::WINDOWING::GBM::CGBMUtils::CGBMDevice::CGBMSurface::operator= ( const CGBMSurface & )
delete

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