openMSX
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
ExampleAppConsole Struct Reference

Public Member Functions

 ExampleAppConsole ()
 
 ~ExampleAppConsole ()
 
void ClearLog ()
 
void AddLog (const char *fmt,...) IM_FMTARGS(2)
 
void Draw (const char *title, bool *p_open)
 
void ExecCommand (const char *command_line)
 
int TextEditCallback (ImGuiInputTextCallbackData *data)
 

Static Public Member Functions

static int Stricmp (const char *s1, const char *s2)
 
static int Strnicmp (const char *s1, const char *s2, int n)
 
static char * Strdup (const char *s)
 
static void Strtrim (char *s)
 
static int TextEditCallbackStub (ImGuiInputTextCallbackData *data)
 

Public Attributes

char InputBuf [256]
 
ImVector< char * > Items
 
ImVector< const char * > Commands
 
ImVector< char * > History
 
int HistoryPos
 
ImGuiTextFilter Filter
 
bool AutoScroll
 
bool ScrollToBottom
 

Detailed Description

Definition at line 8403 of file imgui_demo.cc.

Constructor & Destructor Documentation

◆ ExampleAppConsole()

ExampleAppConsole::ExampleAppConsole ( )
inline

◆ ~ExampleAppConsole()

ExampleAppConsole::~ExampleAppConsole ( )
inline

Definition at line 8430 of file imgui_demo.cc.

References ClearLog(), and History.

Member Function Documentation

◆ AddLog()

void ExampleAppConsole::AddLog ( const char *  fmt,
  ... 
)
inline

Definition at line 8450 of file imgui_demo.cc.

References Items, and Strdup().

Referenced by Draw(), ExampleAppConsole(), ExecCommand(), and TextEditCallback().

◆ ClearLog()

void ExampleAppConsole::ClearLog ( )
inline

Definition at line 8443 of file imgui_demo.cc.

References Items.

Referenced by Draw(), ExampleAppConsole(), ExecCommand(), and ~ExampleAppConsole().

◆ Draw()

void ExampleAppConsole::Draw ( const char *  title,
bool *  p_open 
)
inline

◆ ExecCommand()

void ExampleAppConsole::ExecCommand ( const char *  command_line)
inline

Definition at line 8603 of file imgui_demo.cc.

References AddLog(), ClearLog(), Commands, History, HistoryPos, ScrollToBottom, Strdup(), and Stricmp().

Referenced by Draw().

◆ Strdup()

static char * ExampleAppConsole::Strdup ( const char *  s)
inlinestatic

Definition at line 8440 of file imgui_demo.cc.

Referenced by AddLog(), and ExecCommand().

◆ Stricmp()

static int ExampleAppConsole::Stricmp ( const char *  s1,
const char *  s2 
)
inlinestatic

Definition at line 8438 of file imgui_demo.cc.

Referenced by ExecCommand().

◆ Strnicmp()

static int ExampleAppConsole::Strnicmp ( const char *  s1,
const char *  s2,
int  n 
)
inlinestatic

Definition at line 8439 of file imgui_demo.cc.

Referenced by TextEditCallback().

◆ Strtrim()

static void ExampleAppConsole::Strtrim ( char *  s)
inlinestatic

Definition at line 8441 of file imgui_demo.cc.

Referenced by Draw().

◆ TextEditCallback()

int ExampleAppConsole::TextEditCallback ( ImGuiInputTextCallbackData *  data)
inline

Definition at line 8652 of file imgui_demo.cc.

References AddLog(), Commands, History, HistoryPos, and Strnicmp().

Referenced by TextEditCallbackStub().

◆ TextEditCallbackStub()

static int ExampleAppConsole::TextEditCallbackStub ( ImGuiInputTextCallbackData *  data)
inlinestatic

Definition at line 8646 of file imgui_demo.cc.

References TextEditCallback().

Referenced by Draw().

Member Data Documentation

◆ AutoScroll

bool ExampleAppConsole::AutoScroll

Definition at line 8411 of file imgui_demo.cc.

Referenced by Draw(), and ExampleAppConsole().

◆ Commands

ImVector<const char*> ExampleAppConsole::Commands

Definition at line 8407 of file imgui_demo.cc.

Referenced by ExampleAppConsole(), ExecCommand(), and TextEditCallback().

◆ Filter

ImGuiTextFilter ExampleAppConsole::Filter

Definition at line 8410 of file imgui_demo.cc.

Referenced by Draw().

◆ History

ImVector<char*> ExampleAppConsole::History

Definition at line 8408 of file imgui_demo.cc.

Referenced by ExecCommand(), TextEditCallback(), and ~ExampleAppConsole().

◆ HistoryPos

int ExampleAppConsole::HistoryPos

Definition at line 8409 of file imgui_demo.cc.

Referenced by ExampleAppConsole(), ExecCommand(), and TextEditCallback().

◆ InputBuf

char ExampleAppConsole::InputBuf[256]

Definition at line 8405 of file imgui_demo.cc.

Referenced by Draw(), and ExampleAppConsole().

◆ Items

ImVector<char*> ExampleAppConsole::Items

Definition at line 8406 of file imgui_demo.cc.

Referenced by AddLog(), ClearLog(), and Draw().

◆ ScrollToBottom

bool ExampleAppConsole::ScrollToBottom

Definition at line 8412 of file imgui_demo.cc.

Referenced by Draw(), ExampleAppConsole(), and ExecCommand().


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