rotor
Event loop friendly C++ actor micro-framework
 
Loading...
Searching...
No Matches
rotor::wx::system_context_wx_t Struct Reference

The wxWidgets system context, which holds a pointer to wxApp and root wx-supervisor. More...

#include <system_context_wx.h>

Inheritance diagram for rotor::wx::system_context_wx_t:
rotor::system_context_t

Public Types

using ptr_t = rotor::intrusive_ptr_t< system_context_wx_t >
 intrusive pointer type for wx system context
 

Public Member Functions

 system_context_wx_t (wxAppConsole *app=nullptr)
 construct the context from wx application
 
wxAppConsole * get_app () noexcept
 returns wx application
 
- Public Member Functions inherited from rotor::system_context_t
template<typename Supervisor = supervisor_t>
auto create_supervisor ()
 returns builder for root supervisor
 
supervisor_ptr_t get_supervisor () noexcept
 returns root supervisor
 
 system_context_t (const system_context_t &)=delete
 
 system_context_t (system_context_t &&)=delete
 
virtual void on_error (actor_base_t *actor, const extended_error_ptr_t &ec) noexcept
 fatal error handler
 
virtual std::string identity () noexcept
 identifies the context.
 
template<typename T >
auto & access () noexcept
 generic non-public fields accessor
 
const message_stringifier_tget_stringifier ()
 returns the default stringifier
 

Protected Attributes

wxAppConsole * app
 non-owning pointer to the wx application
 

Friends

struct supervisor_wx_t
 

Additional Inherited Members

- Protected Member Functions inherited from rotor::system_context_t
virtual message_stringifier_ptr_t make_stringifier () const noexcept
 constructs message stringifier
 

Detailed Description

The wxWidgets system context, which holds a pointer to wxApp and root wx-supervisor.

Constructor & Destructor Documentation

◆ system_context_wx_t()

rotor::wx::system_context_wx_t::system_context_wx_t ( wxAppConsole *  app = nullptr)

construct the context from wx application

If app is null, then the wx application is taken via wxTheApp macro


The documentation for this struct was generated from the following file: