102 Patches: Detours to the Rescue
C reference for DttR maintainers and modders.
Loading...
Searching...
No Matches
dttr_sdl.h File Reference
#include <stdbool.h>
#include <SDL3/SDL.h>

Go to the source code of this file.

Functions

bool DTTR_SDL_ShowSimpleMessageBox (SDL_MessageBoxFlags flags, const char *title, const char *message, SDL_Window *window)
bool DTTR_SDL_ShowMessageBox (const SDL_MessageBoxData *messageboxdata, int *buttonid)
void DTTR_SDL_ShowOpenFolderDialog (SDL_DialogFileCallback callback, void *userdata, SDL_Window *window, const char *default_location, bool allow_many)
void DTTR_SDL_ShowOpenFileDialog (SDL_DialogFileCallback callback, void *userdata, SDL_Window *window, const SDL_DialogFileFilter *filters, int nfilters, const char *default_location, bool allow_many)
void DTTR_SDL_PumpEvents ()
void DTTR_SDL_Delay (Uint32 ms)

Function Documentation

◆ DTTR_SDL_Delay()

void DTTR_SDL_Delay ( Uint32 ms)

Definition at line 191 of file sdl.c.

References delay, and load_sdl().

Referenced by wait_for_browse_result().

◆ DTTR_SDL_PumpEvents()

void DTTR_SDL_PumpEvents ( )

Definition at line 183 of file sdl.c.

References load_sdl(), and pump_events.

Referenced by wait_for_browse_result().

◆ DTTR_SDL_ShowMessageBox()

bool DTTR_SDL_ShowMessageBox ( const SDL_MessageBoxData * messageboxdata,
int * buttonid )

◆ DTTR_SDL_ShowOpenFileDialog()

void DTTR_SDL_ShowOpenFileDialog ( SDL_DialogFileCallback callback,
void * userdata,
SDL_Window * window,
const SDL_DialogFileFilter * filters,
int nfilters,
const char * default_location,
bool allow_many )

Definition at line 158 of file sdl.c.

References load_sdl(), report_dialog_failure(), and show_open_file_dialog.

Referenced by open_file_dialog(), and run_browse_dialog().

◆ DTTR_SDL_ShowOpenFolderDialog()

void DTTR_SDL_ShowOpenFolderDialog ( SDL_DialogFileCallback callback,
void * userdata,
SDL_Window * window,
const char * default_location,
bool allow_many )

Definition at line 143 of file sdl.c.

References load_sdl(), report_dialog_failure(), and show_open_folder_dialog.

Referenced by open_pcdogs_dir_dialog(), and run_browse_dialog().

◆ DTTR_SDL_ShowSimpleMessageBox()

bool DTTR_SDL_ShowSimpleMessageBox ( SDL_MessageBoxFlags flags,
const char * title,
const char * message,
SDL_Window * window )