1// Aseprite
2// Copyright (C) 2018-2022 Igara Studio S.A.
3// Copyright (C) 2001-2017 David Capello
4//
5// This program is distributed under the terms of
6// the End-User License Agreement for Aseprite.
7
8#ifndef APP_CONSOLE_H_INCLUDED
9#define APP_CONSOLE_H_INCLUDED
10#pragma once
11
12#include <exception>
13
14namespace app {
15 class Context;
16
17 class Console {
18 public:
19 Console(Context* ctx = nullptr);
20 ~Console();
21
22 void printf(const char *format, ...);
23
24 static void showException(const std::exception& e);
25 static void notifyNewDisplayConfiguration();
26
27 private:
28 class ConsoleWindow;
29
30 bool m_withUI;
31 static ConsoleWindow* m_console;
32 };
33
34} // namespace app
35
36#endif
37