ReXGlue SDK
Loading...
Searching...
No Matches
rex::NativeWindow Struct Reference

Public Types

enum class  Type : u8 {
  kNone , kWin32 , kCocoa , kWayland ,
  kX11
}

Public Attributes

Type type = Type::kNone
void * window = nullptr
void * display = nullptr
void * layer = nullptr
void * sdl = nullptr

Member Enumeration Documentation

◆ Type

enum class rex::NativeWindow::Type : u8
strong
Enumerator
kWin32 

window is an HWND.

kCocoa 

window is an NSWindow pointer and layer a CAMetalLayer pointer.

kWayland 

window is a wl_surface pointer and display a wl_display pointer.

kX11 

window is an X11 Window id stored as an integer and display a Display pointer.

Member Data Documentation

◆ display

void* rex::NativeWindow::display = nullptr

The display connection. Null on Win32 and Cocoa.

◆ layer

void* rex::NativeWindow::layer = nullptr

The CAMetalLayer on Cocoa. Created on first request and owned by the window.

◆ sdl

void* rex::NativeWindow::sdl = nullptr

The SDL_Window of an SDL backed window on every platform, otherwise null.


The documentation for this struct was generated from the following file: