Files
QIDISlicer/src/slic3r/GUI/Widgets/RoundedRectangle.hpp

29 lines
575 B
C++
Raw Normal View History

2023-08-25 09:36:16 +08:00
#ifndef slic3r_GUI_ROUNDEDRECTANGLE_hpp_
#define slic3r_GUI_ROUNDEDRECTANGLE_hpp_
#include "../wxExtensions.hpp"
2023-09-11 11:10:12 +08:00
//B35
#if defined __linux__
#include <wx/panel.h>
#include <wx/wx.h>
#endif
2023-08-25 09:36:16 +08:00
class RoundedRectangle : public wxWindow
{
public:
RoundedRectangle(wxWindow *parent, wxColour col, wxPoint pos, wxSize size, double radius, int type = 0);
~RoundedRectangle(){};
private:
double m_radius;
int m_type;
wxColour m_color;
public:
void OnPaint(wxPaintEvent &evt);
DECLARE_EVENT_TABLE()
};
#endif // !slic3r_GUI_RoundedRectangle_hpp_