4#include <SDL3/SDL_guid.h>
5#include "SDL3pp_stdinc.h"
49 constexpr GUID(SDL_GUID guid)
70 : SDL_GUID(SDL_StringToGUID(pchGUID))
87 std::string result(32,
' ');
88 SDL_GUIDToString(*
this, result.data(), 33);
108 return SDL_GUIDToString(guid, pszGUID, cbGUID);
129 return SDL_StringToGUID(pchGUID);
Helpers to use C++ strings parameters.
Definition SDL3pp_strings.h:43
SDL_GUID StringToGUID(StringParam pchGUID)
Convert a GUID string into a SDL_GUID structure.
Definition SDL3pp_guid.h:127
void GUIDToString(SDL_GUID guid, char *pszGUID, int cbGUID)
Get an ASCII string representation for a given SDL_GUID.
Definition SDL3pp_guid.h:106
the main namespace where all SDL3pp public functions and types live
Definition SDL3pp_assert.h:7
An GUID is a 128-bit identifier for an input device that identifies that device across runs of SDL pr...
Definition SDL3pp_guid.h:42
constexpr GUID(SDL_GUID guid)
Constructor from underling type.
Definition SDL3pp_guid.h:49
GUID(StringParam pchGUID)
Convert a GUID string into a GUID structure.
Definition SDL3pp_guid.h:69
std::string ToString() const
Get an ASCII string representation for a given GUID.
Definition SDL3pp_guid.h:85