Ream v0.1.0-1
C++ graphics library for Linux
Loading...
Searching...
No Matches
Public Member Functions | List of all members
RPlatformHandle Class Reference

Abstract handle to the underlying windowing/display platform. More...

#include <RPlatformHandle.h>

+ Inheritance diagram for RPlatformHandle:

Public Member Functions

RPlatform platform () const noexcept
 Returns the platform this handle belongs to.
 
RWLPlatformHandleasWL () noexcept
 Casts this handle to a Wayland platform handle.
 
RDRMPlatformHandleasDRM () noexcept
 Casts this handle to a DRM platform handle.
 
- Public Member Functions inherited from RObject
 RObject ()=default
 Constructs a default RObject.
 

Detailed Description

Abstract handle to the underlying windowing/display platform.

Base class for platform-specific handles (Wayland, DRM, offscreen). It exposes the platform kind and safe down-casts to the concrete handle types.

Member Function Documentation

◆ platform()

RPlatform platform ( ) const
inlinenoexcept

Returns the platform this handle belongs to.

Returns
The platform kind.

◆ asWL()

RWLPlatformHandle * asWL ( )
inlinenoexcept

Casts this handle to a Wayland platform handle.

Returns
A pointer to the RWLPlatformHandle, or nullptr if this is not a Wayland handle.

◆ asDRM()

RDRMPlatformHandle * asDRM ( )
inlinenoexcept

Casts this handle to a DRM platform handle.

Returns
A pointer to the RDRMPlatformHandle, or nullptr if this is not a DRM handle.