Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
hrydgard
GitHub Repository: hrydgard/ppsspp
Path: blob/master/UI/ImDebugger/ImConsole.h
4779 views
1
#pragma once
2
3
#include <cstdlib>
4
#include <locale>
5
6
#include "ext/imgui/imgui.h"
7
8
struct ImConfig;
9
10
// Adapted from the ImGui demo.
11
class ImConsole {
12
public:
13
ImConsole();
14
~ImConsole();
15
16
void Draw(ImConfig &cfg);
17
void ExecCommand(const char* command_line);
18
19
int TextEditCallback(ImGuiInputTextCallbackData* data);
20
21
private:
22
char InputBuf[256];
23
ImVector<const char*> Commands;
24
ImVector<char*> History;
25
int HistoryPos; // -1: new line, 0..History.Size-1 browsing history.
26
ImGuiTextFilter Filter;
27
bool AutoScroll;
28
bool ScrollToBottom;
29
};
30
31