102 Patches: Detours to the Rescue
C reference for DttR maintainers and modders.
Loading...
Searching...
No Matches
gui_tabs.c File Reference
#include "gui_internal.h"

Go to the source code of this file.

Data Structures

struct  config_tab_spec

Typedefs

typedef void(* config_tab_draw_fn) (const DTTR_ImGuiDialogContext *ctx, config_ui_state *state)

Functions

bool begin_tab_settings_table (const DTTR_ImGuiDialogContext *ctx, const char *id, float input_width)
void draw_tabs (const DTTR_ImGuiDialogContext *ctx, config_ui_state *state)

Variables

static const config_tab_spec CONFIG_TABS []

Typedef Documentation

◆ config_tab_draw_fn

typedef void(* config_tab_draw_fn) (const DTTR_ImGuiDialogContext *ctx, config_ui_state *state)

Definition at line 3 of file gui_tabs.c.

Function Documentation

◆ begin_tab_settings_table()

bool begin_tab_settings_table ( const DTTR_ImGuiDialogContext * ctx,
const char * id,
float input_width )

◆ draw_tabs()

void draw_tabs ( const DTTR_ImGuiDialogContext * ctx,
config_ui_state * state )

Definition at line 31 of file gui_tabs.c.

References CONFIG_TABS, ctx, config_tab_spec::draw, config_tab_spec::label, NULL, and state.

Referenced by draw_ui().

Variable Documentation

◆ CONFIG_TABS

const config_tab_spec CONFIG_TABS[]
static
Initial value:
= {
{"General", draw_general_tab},
{"Graphics", draw_graphics_tab},
{"Audio", draw_audio_tab},
{"Gamepad", draw_gamepad_tab},
}
void draw_general_tab(const DTTR_ImGuiDialogContext *ctx, config_ui_state *state)
void draw_audio_tab(const DTTR_ImGuiDialogContext *ctx, config_ui_state *state)
void draw_gamepad_tab(const DTTR_ImGuiDialogContext *ctx, config_ui_state *state)
void draw_graphics_tab(const DTTR_ImGuiDialogContext *ctx, config_ui_state *state)

Definition at line 21 of file gui_tabs.c.

Referenced by draw_tabs().