OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
DPIAwarePlugin Class Reference

#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/Utils/wxInspectorPlugins/DPIAwarePlugin.hpp>

Inheritance diagram for DPIAwarePlugin:
Collaboration diagram for DPIAwarePlugin:

Public Member Functions

wxString GetName () const override
bool CanProvideProperties (wxClassInfo *info) override
wxVector< wxInspector::PropertyDef > GetProperties (wxInspector::InspectableObject &obj) override

Detailed Description

Member Function Documentation

◆ CanProvideProperties()

bool DPIAwarePlugin::CanProvideProperties ( wxClassInfo * info)
override
71{
72 return info->IsKindOf(CLASSINFO(wxWindow));
73}

◆ GetName()

wxString DPIAwarePlugin::GetName ( ) const
override
66{
67 return "OrcaDPIAware";
68}

◆ GetProperties()

wxVector< wxInspector::PropertyDef > DPIAwarePlugin::GetProperties ( wxInspector::InspectableObject & obj)
override
77{
78 wxVector<wxInspector::PropertyDef> props;
79 wxWindow* win = obj.AsWindow();
80 if (!win) return props;
81
82 if (auto* frame = dynamic_cast<Slic3r::GUI::DPIFrame*>(win)) {
83 addDPIProps(frame, props);
84 } else if (auto* dlg = dynamic_cast<Slic3r::GUI::DPIDialog*>(win)) {
85 addDPIProps(dlg, props);
86 }
87
88 return props;
89}
DPIAware< wxFrame > DPIFrame
Definition GUI_Utils.hpp:298
void addDPIProps(T *dpi, wxVector< wxInspector::PropertyDef > &props)
Definition DPIAwarePlugin.cpp:18

The documentation for this class was generated from the following files:
  • /home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/Utils/wxInspectorPlugins/DPIAwarePlugin.hpp
  • /home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/Utils/wxInspectorPlugins/DPIAwarePlugin.cpp