RigsofRods
Soft-body Physics Simulation
Public Member Functions | Static Public Attributes | Private Member Functions | Static Private Member Functions | Private Attributes
RoR::GUI::ConsoleWindow Class Reference

#include <GUI_ConsoleWindow.h>

+ Collaboration diagram for RoR::GUI::ConsoleWindow:

Public Member Functions

 ConsoleWindow ()
 
void SetVisible (bool visible)
 
bool IsVisible () const
 
bool IsHovered () const
 
void Draw ()
 
void doCommand (std::string msg)
 

Static Public Attributes

static const size_t HISTORY_CAP = 100u
 

Private Member Functions

void TextEditCallbackProc (ImGuiTextEditCallbackData *data)
 

Static Private Member Functions

static int TextEditCallback (ImGuiTextEditCallbackData *data)
 

Private Attributes

bool m_is_visible = false
 
bool m_is_hovered = false
 
AngelScriptExamples m_angelscript_examples
 
ScriptMonitor m_script_monitor
 
ConsoleView m_console_view
 
Str< 500 > m_cmd_buffer
 
std::vector< std::string > m_cmd_history
 
int m_cmd_history_cursor = -1
 

Detailed Description

Definition at line 40 of file GUI_ConsoleWindow.h.

Constructor & Destructor Documentation

◆ ConsoleWindow()

ConsoleWindow::ConsoleWindow ( )

Definition at line 35 of file GUI_ConsoleWindow.cpp.

Member Function Documentation

◆ doCommand()

void ConsoleWindow::doCommand ( std::string  msg)

Definition at line 131 of file GUI_ConsoleWindow.cpp.

+ Here is the call graph for this function:

◆ Draw()

void ConsoleWindow::Draw ( )

Definition at line 40 of file GUI_ConsoleWindow.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsHovered()

bool RoR::GUI::ConsoleWindow::IsHovered ( ) const
inline

Definition at line 48 of file GUI_ConsoleWindow.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsVisible()

bool RoR::GUI::ConsoleWindow::IsVisible ( ) const
inline

Definition at line 47 of file GUI_ConsoleWindow.h.

+ Here is the caller graph for this function:

◆ SetVisible()

void RoR::GUI::ConsoleWindow::SetVisible ( bool  visible)
inline

Definition at line 46 of file GUI_ConsoleWindow.h.

+ Here is the caller graph for this function:

◆ TextEditCallback()

int ConsoleWindow::TextEditCallback ( ImGuiTextEditCallbackData *  data)
staticprivate

Definition at line 150 of file GUI_ConsoleWindow.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ TextEditCallbackProc()

void ConsoleWindow::TextEditCallbackProc ( ImGuiTextEditCallbackData *  data)
private

Definition at line 157 of file GUI_ConsoleWindow.cpp.

+ Here is the caller graph for this function:

Field Documentation

◆ HISTORY_CAP

const size_t RoR::GUI::ConsoleWindow::HISTORY_CAP = 100u
static

Definition at line 43 of file GUI_ConsoleWindow.h.

◆ m_angelscript_examples

AngelScriptExamples RoR::GUI::ConsoleWindow::m_angelscript_examples
private

Definition at line 63 of file GUI_ConsoleWindow.h.

◆ m_cmd_buffer

Str<500> RoR::GUI::ConsoleWindow::m_cmd_buffer
private

Definition at line 68 of file GUI_ConsoleWindow.h.

◆ m_cmd_history

std::vector<std::string> RoR::GUI::ConsoleWindow::m_cmd_history
private

Definition at line 69 of file GUI_ConsoleWindow.h.

◆ m_cmd_history_cursor

int RoR::GUI::ConsoleWindow::m_cmd_history_cursor = -1
private

Definition at line 70 of file GUI_ConsoleWindow.h.

◆ m_console_view

ConsoleView RoR::GUI::ConsoleWindow::m_console_view
private

Definition at line 67 of file GUI_ConsoleWindow.h.

◆ m_is_hovered

bool RoR::GUI::ConsoleWindow::m_is_hovered = false
private

Definition at line 60 of file GUI_ConsoleWindow.h.

◆ m_is_visible

bool RoR::GUI::ConsoleWindow::m_is_visible = false
private

Definition at line 59 of file GUI_ConsoleWindow.h.

◆ m_script_monitor

ScriptMonitor RoR::GUI::ConsoleWindow::m_script_monitor
private

Definition at line 64 of file GUI_ConsoleWindow.h.


The documentation for this class was generated from the following files: