rotor
Event loop friendly C++ actor micro-framework
 
Loading...
Searching...
No Matches
system_context_wx.h
1#pragma once
2
3//
4// Copyright (c) 2019-2022 Ivan Baidakou (basiliscos) (the dot dmol at gmail dot com)
5//
6// Distributed under the MIT Software License
7//
8
9#include "rotor/arc.hpp"
10#include "rotor/wx/export.h"
11#include "rotor/wx/supervisor_config_wx.h"
12#include "rotor/system_context.h"
13#include <wx/app.h>
14
15namespace rotor {
16namespace wx {
17
18struct supervisor_wx_t;
19
22
28struct ROTOR_WX_API system_context_wx_t : public system_context_t {
31
37 system_context_wx_t(wxAppConsole *app = nullptr);
38
40 inline wxAppConsole *get_app() noexcept { return app; }
41
42 protected:
43 friend struct supervisor_wx_t;
44
46 wxAppConsole *app;
47};
48
51
52} // namespace wx
53} // namespace rotor
intrusive_ptr_t< supervisor_wx_t > supervisor_ptr_t
intrusive pointer for wx supervisor
Definition system_context_wx.h:21
typename system_context_wx_t::ptr_t system_context_ptr_t
intrusive pointer type for wx system context
Definition system_context_wx.h:50
Basic namespace for all rotor functionalities.
Definition rotor.hpp:21
boost::intrusive_ptr< T > intrusive_ptr_t
alias for intrusive pointer
Definition arc.hpp:27
The system context holds root supervisor_t (intrusive pointer) and may be loop-related details in der...
Definition system_context.h:32
delivers rotor-messages on top of wx event
Definition supervisor_wx.h:42
The wxWidgets system context, which holds a pointer to wxApp and root wx-supervisor.
Definition system_context_wx.h:28
wxAppConsole * app
non-owning pointer to the wx application
Definition system_context_wx.h:46
system_context_wx_t(wxAppConsole *app=nullptr)
construct the context from wx application
rotor::intrusive_ptr_t< system_context_wx_t > ptr_t
intrusive pointer type for wx system context
Definition system_context_wx.h:30
wxAppConsole * get_app() noexcept
returns wx application
Definition system_context_wx.h:40