OpenCPN Partial API docs
|
Custom event class for OpenCPN's notification system. More...
#include <ocpn_plugin.h>
Public Member Functions | |
ObservedEvt (wxEventType commandType=obsNOTIFY, int id=0) | |
Constructor. | |
ObservedEvt (const ObservedEvt &event) | |
wxEvent * | Clone () const |
Creates a cloned copy of this event. | |
std::shared_ptr< const void > | GetSharedPtr () const |
Gets the event's payload data. | |
void | SetSharedPtr (std::shared_ptr< const void > p) |
Sets the event's payload data. | |
ObservedEvt (wxEventType commandType=obsNOTIFY, int id=0) | |
ObservedEvt (const ObservedEvt &event) | |
wxEvent * | Clone () const override |
std::shared_ptr< const void > | GetSharedPtr () const |
void | SetSharedPtr (const std::shared_ptr< const void > p) |
Custom event class for OpenCPN's notification system.
Adds a std::shared<void> element to wxCommandEvent.
This class extends wxCommandEvent to add support for passing shared pointer payloads between event producers and consumers. It's used by the notification/listening system to deliver messages and data between plugins and the core application.
Key features:
Definition at line 6095 of file ocpn_plugin.h.
|
inline |
Constructor.
commandType | Event type ID, defaults to obsNOTIFY |
id | Window identifier, defaults to 0 |
Definition at line 6103 of file ocpn_plugin.h.
|
inline |
Definition at line 6105 of file ocpn_plugin.h.
|
inlineexplicit |
Definition at line 44 of file observable_evt.h.
|
inline |
Definition at line 47 of file observable_evt.h.
|
inline |
Creates a cloned copy of this event.
Required by wxWidgets event system for event propagation.
Definition at line 6116 of file ocpn_plugin.h.
|
inlineoverride |
Definition at line 51 of file observable_evt.h.
|
inline |
Gets the event's payload data.
Definition at line 6123 of file ocpn_plugin.h.
|
inline |
Definition at line 53 of file observable_evt.h.
|
inline |
Definition at line 55 of file observable_evt.h.
|
inline |
Sets the event's payload data.
p | Shared pointer to payload data |
Definition at line 6130 of file ocpn_plugin.h.