OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::GUI::AboutDialogLogo Class Reference

#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/AboutDialog.hpp>

Inheritance diagram for Slic3r::GUI::AboutDialogLogo:
Collaboration diagram for Slic3r::GUI::AboutDialogLogo:

Public Member Functions

 AboutDialogLogo (wxWindow *parent)

Private Member Functions

void onRepaint (wxEvent &event)

Private Attributes

ScalableBitmap logo

Detailed Description

Constructor & Destructor Documentation

◆ 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
43 this->Bind(wxEVT_PAINT, &AboutDialogLogo::onRepaint, this);
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().

Here is the call graph for this function:

Member Function Documentation

◆ 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().

Here is the caller graph for this function:

Member Data Documentation

◆ logo

ScalableBitmap Slic3r::GUI::AboutDialogLogo::logo
private

Referenced by AboutDialogLogo(), and onRepaint().


The documentation for this class was generated from the following files: