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