4#include <SDL3/SDL_guid.h>
5#include "SDL3pp_stdinc.h"
48 constexpr GUID(SDL_GUID guid)
69 : SDL_GUID(SDL_StringToGUID(pchGUID))
86 std::string result(32,
' ');
87 SDL_GUIDToString(*
this, result.data(), 33);
107 return SDL_GUIDToString(guid, pszGUID, cbGUID);
128 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:126
void GUIDToString(SDL_GUID guid, char *pszGUID, int cbGUID)
Get an ASCII string representation for a given SDL_GUID.
Definition SDL3pp_guid.h:105
the main namespace where all SDL3pp public functions and types live
Definition SDL3pp_assert.h:7
A GUID is a 128-bit identifier for an input device that identifies that device across runs of SDL pro...
Definition SDL3pp_guid.h:41
constexpr GUID(SDL_GUID guid)
Constructor from underling type.
Definition SDL3pp_guid.h:48
GUID(StringParam pchGUID)
Convert a GUID string into a GUID structure.
Definition SDL3pp_guid.h:68
std::string ToString() const
Get an ASCII string representation for a given GUID.
Definition SDL3pp_guid.h:84