#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/AboutDialog.hpp>
◆ AboutDialogLogo()
| Slic3r::GUI::AboutDialogLogo::AboutDialogLogo |
( |
wxWindow * | parent | ) |
|
37 : wxPanel(parent, wxID_ANY, wxDefaultPosition, wxDefaultSize)
38{
39 this->SetBackgroundColour(*wxWHITE);
40 this->
logo = ScalableBitmap(
this,
Slic3r::var(
"OrcaSlicer_192px.png"), wxBITMAP_TYPE_PNG);
41 this->SetMinSize(this->
logo.GetBmpSize());
42
44}
ScalableBitmap logo
Definition AboutDialog.hpp:31
void onRepaint(wxEvent &event)
Definition AboutDialog.cpp:46
std::string var(const std::string &file_name)
Definition utils.cpp:278
References logo, onRepaint(), and Slic3r::var().
◆ onRepaint()
| void Slic3r::GUI::AboutDialogLogo::onRepaint |
( |
wxEvent & | event | ) |
|
|
private |
47{
48 wxPaintDC dc(this);
49 dc.SetBackgroundMode(wxTRANSPARENT);
50
51 wxSize size = this->GetSize();
52 int logo_w = this->
logo.GetBmpWidth();
53 int logo_h = this->
logo.GetBmpHeight();
54 dc.DrawBitmap(this->
logo.bmp(), (size.GetWidth() - logo_w)/2, (size.GetHeight() - logo_h)/2,
true);
55
56 event.Skip();
57}
References logo.
Referenced by AboutDialogLogo().
◆ logo
The documentation for this class was generated from the following files: