DeskUp 0.3
Loading...
Searching...
No Matches
DeskUpWindowBootStrap Struct Reference

This struct is a wrapper that holds a call to create a window device. More...

#include <desk_up_window_bootstrap.h>

Collaboration diagram for DeskUpWindowBootStrap:

Public Attributes

const char * name
 The name of the backend associated with the device call.
DeskUpWindowDevice(* createDevice )()
 A pointer to function that creates a Device.
bool(* isAvailable )(void)
 A pointer to function that is used to check whether if a given backend is available in the current device.

Detailed Description

This struct is a wrapper that holds a call to create a window device.

Each backend packs all of it's functions in a device, which should be the only way to access it's calls. It fills backend-specific info in the device, as well as connecting all the implementations of the generic backend calls.

See also
DeskUpWindowDevice
Author
Nicolas Serrano Garcia serra.nosp@m.noga.nosp@m.rcian.nosp@m.icol.nosp@m.as@gm.nosp@m.ail..nosp@m.com
Version
0.1.0
Date
2025

Member Data Documentation

◆ createDevice

DeskUpWindowDevice(* DeskUpWindowBootStrap::createDevice) ()

A pointer to function that creates a Device.

Returns
A pointer to a heap allocated windowDevice.
Version
0.1.0
Date
2025

◆ isAvailable

bool(* DeskUpWindowBootStrap::isAvailable) (void)

A pointer to function that is used to check whether if a given backend is available in the current device.

Returns
true if the backend is available in this device, false otherwise
Version
0.1.0
Date
2025

◆ name

const char* DeskUpWindowBootStrap::name

The name of the backend associated with the device call.

Warning
This is a raw C-string pointer. The referenced literal becomes invalid once the struct goes out of scope.
Version
0.1.0
Date
2025

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