neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
i_console_client.hpp
Go to the documentation of this file.
1// i_console_client.hpp
2/*
3 neoGFX Design Studio
4 Copyright(C) 2022 Leigh Johnston
5
6 This program is free software: you can redistribute it and / or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#pragma once
21
22#include <neogfx/neogfx.hpp>
24
26{
28 {
29 public:
31 public:
32 declare_event(output, std::string const&)
33 public:
34 virtual ~i_console_client() = default;
35 public:
36 virtual void start() = 0;
37 virtual void resize_window(std::uint16_t aWidth, std::uint16_t aHeight) = 0;
38 virtual void input(std::string const& aText) = 0;
39 };
40
42 {
43 public:
45 public:
46 declare_event(start_console_client_session, i_terminal&, i_string const&, i_ref_ptr<i_console_client>&)
47 public:
48 static uuid const& iid() { static uuid const sIid{ 0x1a38eb2c, 0x220a, 0x437c, 0x9c85, { 0xaf, 0x83, 0x23, 0x78, 0x3c, 0xd4 } }; return sIid; }
49 };
50}
declare_event(start_console_client_session, i_terminal &, i_string const &, i_ref_ptr< i_console_client > &) public
virtual void resize_window(std::uint16_t aWidth, std::uint16_t aHeight)=0
virtual void input(std::string const &aText)=0
#define declare_event(declName,...)
Definition i_event.hpp:305