Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
Slic3r::GUI::Event< T > Struct Template Reference

#include <src/slic3r/GUI/Event.hpp>

+ Inheritance diagram for Slic3r::GUI::Event< T >:
+ Collaboration diagram for Slic3r::GUI::Event< T >:

Public Member Functions

 Event (wxEventType type, const T &data, wxObject *origin=nullptr)
 
 Event (wxEventType type, T &&data, wxObject *origin=nullptr)
 
virtual wxEvent * Clone () const
 

Public Attributes

data
 

Detailed Description

template<class T>
struct Slic3r::GUI::Event< T >

Constructor & Destructor Documentation

◆ Event() [1/2]

template<class T >
Slic3r::GUI::Event< T >::Event ( wxEventType  type,
const T &  data,
wxObject *  origin = nullptr 
)
inline
49 : wxEvent(0, type), data(std::move(data))
50 {
51 m_propagationLevel = wxEVENT_PROPAGATE_MAX;
52 SetEventObject(origin);
53 }
T data
Definition Event.hpp:46

◆ Event() [2/2]

template<class T >
Slic3r::GUI::Event< T >::Event ( wxEventType  type,
T &&  data,
wxObject *  origin = nullptr 
)
inline
56 : wxEvent(0, type), data(std::move(data))
57 {
58 m_propagationLevel = wxEVENT_PROPAGATE_MAX;
59 SetEventObject(origin);
60 }

Member Function Documentation

◆ Clone()

template<class T >
virtual wxEvent * Slic3r::GUI::Event< T >::Clone ( ) const
inlinevirtual
63 {
64 return new Event<T>(GetEventType(), data, GetEventObject());
65 }

References Slic3r::GUI::Event< T >::data.

Member Data Documentation

◆ data


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