23 #include "wxgis/cartoui/cartoui.h"
30 wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_GIS_CTU, wxMXMAP_DRAWING_START,
wxMxMapViewUIEvent);
31 wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_GIS_CTU, wxMXMAP_DRAWING_STOP,
wxMxMapViewUIEvent);
32 wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_GIS_CTU, wxMXMAP_LAYER_ADDED,
wxMxMapViewUIEvent);
33 wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_GIS_CTU, wxMXMAP_LAYER_REMOVED,
wxMxMapViewUIEvent);
57 wxMxMapViewUIEvent(
int nWinId = 0, wxEventType eventType = wxMXMAP_ROTATED,
short nLayerId = wxNOT_FOUND,
double dAngleRad = 0) : wxEvent(nWinId, eventType)
59 m_dRotation = dAngleRad;
60 m_nLayerId = nLayerId;
64 m_dRotation =
event.m_dRotation;
65 m_nLayerId =
event.m_nLayerId;
68 void SetRotate(
double dAngleRad){m_dRotation = dAngleRad;};
69 double GetRotate(
void)
const {
return m_dRotation;};
70 void SetLayerId(
size_t nLayerId){ m_nLayerId = nLayerId; };
71 size_t GetLayerId(
void)
const {
return m_nLayerId; };
85 #define wxMxMapViewUIEventHandler(func) \
86 wxEVENT_HANDLER_CAST(wxMxMapViewUIEventFunction, func)
88 #define EVT_MXMAP_ROTATED(func) wx__DECLARE_EVT0(wxMXMAP_ROTATED, wxMxMapViewUIEventHandler(func))
89 #define EVT_MXMAP_DRAWING_START(func) wx__DECLARE_EVT0(wxMXMAP_DRAWING_START, wxMxMapViewUIEventHandler(func))
90 #define EVT_MXMAP_DRAWING_STOP(func) wx__DECLARE_EVT0(wxMXMAP_DRAWING_STOP, wxMxMapViewUIEventHandler(func))
91 #define EVT_MXMAP_LAYER_ADDED(func) wx__DECLARE_EVT0(wxMXMAP_LAYER_ADDED, wxMxMapViewUIEventHandler(func))
92 #define EVT_MXMAP_LAYER_REMOVED(func) wx__DECLARE_EVT0(wxMXMAP_LAYER_REMOVED, wxMxMapViewUIEventHandler(func))
93 #define EVT_MXMAP_CLEARED(func) wx__DECLARE_EVT0(wxMXMAP_CLEARED, wxMxMapViewUIEventHandler(func))
Definition: mxeventui.h:54