#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/Widgets/RoundedRectangle.hpp>
◆ RoundedRectangle()
| RoundedRectangle::RoundedRectangle |
( |
wxWindow * | parent, |
|
|
wxColour | col, |
|
|
wxPoint | pos, |
|
|
wxSize | size, |
|
|
double | radius, |
|
|
int | type = 0 ) |
16 : wxWindow(parent, wxID_ANY, pos, size, wxBORDER_NONE)
17{
18 SetBackgroundColour(wxColour(255,255,255));
22}
int m_type
Definition RoundedRectangle.hpp:17
double m_radius
Definition RoundedRectangle.hpp:16
wxColour m_color
Definition RoundedRectangle.hpp:18
References RoundedRectangle(), m_color, m_radius, and m_type.
Referenced by RoundedRectangle().
◆ ~RoundedRectangle()
| RoundedRectangle::~RoundedRectangle |
( |
| ) |
|
|
inline |
◆ OnPaint()
| void RoundedRectangle::OnPaint |
( |
wxPaintEvent & | evt | ) |
|
25{
26
28 wxPaintDC dc(this);
29 dc.SetPen(*wxTRANSPARENT_PEN);
31 dc.DrawRoundedRectangle(0, 0, GetSize().GetWidth(), GetSize().GetHeight(),
m_radius);
32 }
33
34
36 wxPaintDC dc(this);
38 dc.SetBrush(wxBrush(*wxTRANSPARENT_BRUSH));
39 dc.DrawRoundedRectangle(0, 0, GetSize().GetWidth(), GetSize().GetHeight(),
m_radius);
40 }
41}
References m_color, m_radius, and m_type.
◆ m_color
| wxColour RoundedRectangle::m_color |
|
private |
◆ m_radius
| double RoundedRectangle::m_radius |
|
private |
◆ m_type
| int RoundedRectangle::m_type |
|
private |
The documentation for this class was generated from the following files: