2020-05-21 20:37:25 +00:00
|
|
|
#ifndef console_window_h
|
|
|
|
#define console_window_h
|
|
|
|
|
|
|
|
#include <gtk/gtk.h>
|
|
|
|
#include <Core/gb.h>
|
2021-01-07 13:36:46 +00:00
|
|
|
#include <stdbool.h>
|
2020-05-21 20:37:25 +00:00
|
|
|
|
|
|
|
#define CONSOLE_WINDOW_TYPE (console_window_get_type())
|
|
|
|
G_DECLARE_FINAL_TYPE(ConsoleWindow, console_window, SAMEBOY, CONSOLE_WINDOW, GtkWindow)
|
|
|
|
|
2021-01-02 15:05:14 +00:00
|
|
|
ConsoleWindow *console_window_new(GB_gameboy_t *gb);
|
2021-01-07 21:35:41 +00:00
|
|
|
char *console_window_get_async_input(ConsoleWindow *self, GB_gameboy_t *gb);
|
|
|
|
char *console_window_get_sync_input(ConsoleWindow *self, GB_gameboy_t *gb);
|
|
|
|
void console_window_log(ConsoleWindow *self, const char *message, GB_log_attributes attributes);
|
|
|
|
void console_window_clear(ConsoleWindow *self);
|
|
|
|
void console_window_focus(ConsoleWindow *self);
|
|
|
|
void console_window_break_debugger(ConsoleWindow *self, bool forced);
|
|
|
|
void console_window_abort_debugger(ConsoleWindow *self);
|
|
|
|
void console_window_set_developer_mode(ConsoleWindow *self, bool value);
|
2020-05-21 20:37:25 +00:00
|
|
|
#endif
|