mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-06-23 04:01:49 +00:00
Change-Id: I2ff9ba91a548402d77308aa88de34976a146a571 Jira: STUDIO-8942 (cherry picked from commit 23e30c7227474adf4efe5ee93f985e1140da9b6f)
30 lines
596 B
C++
30 lines
596 B
C++
#ifndef slic3r_GUI_PopupWindow_hpp_
|
|
#define slic3r_GUI_PopupWindow_hpp_
|
|
|
|
#include <wx/popupwin.h>
|
|
|
|
class PopupWindow : public wxPopupTransientWindow
|
|
{
|
|
public:
|
|
PopupWindow() {}
|
|
|
|
~PopupWindow();
|
|
|
|
PopupWindow(wxWindow *parent, int style = wxBORDER_NONE)
|
|
{ Create(parent, style); }
|
|
|
|
bool Create(wxWindow *parent, int flags = wxBORDER_NONE);
|
|
|
|
private:
|
|
#ifdef __WXOSX__
|
|
void OnMouseEvent2(wxMouseEvent &evt);
|
|
wxEvtHandler * hovered { this };
|
|
#endif
|
|
|
|
#ifdef __WXGTK__
|
|
void topWindowActiavate(wxActivateEvent &event);
|
|
#endif
|
|
};
|
|
|
|
#endif // !slic3r_GUI_PopupWindow_hpp_
|