mirror of
https://github.com/DerKoun/bsnes-hd.git
synced 2025-04-02 10:52:49 -04:00
27 lines
588 B
C++
27 lines
588 B
C++
#if defined(Hiro_Console)
|
|
|
|
namespace hiro {
|
|
|
|
struct pConsole : pWidget {
|
|
Declare(Console, Widget)
|
|
|
|
auto print(const string& text) -> void;
|
|
auto reset() -> void;
|
|
auto setBackgroundColor(Color color) -> void;
|
|
auto setForegroundColor(Color color) -> void;
|
|
auto setPrompt(const string& prompt) -> void;
|
|
|
|
auto _keyPress(uint scancode, uint mask) -> bool;
|
|
auto _seekToEnd() -> void;
|
|
auto _seekToMark() -> void;
|
|
|
|
GtkWidget* subWidget = nullptr;
|
|
GtkTextBuffer* textBuffer = nullptr;
|
|
string previousPrompt;
|
|
vector<string> history;
|
|
uint historyOffset = 0;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|