OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::GUI::Emboss::StyleManager::Style Struct Reference

All connected with one style keep temporary data and caches for style. More...

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

Inheritance diagram for Slic3r::GUI::Emboss::StyleManager::Style:
Collaboration diagram for Slic3r::GUI::Emboss::StyleManager::Style:

Public Types

enum class  Type {
  undefined = 0 , wx_win_font_descr , wx_lin_font_descr , wx_mac_font_descr ,
  file_path
}

Public Member Functions

bool operator== (const Style &other) const
bool operator== (const EmbossStyle &other) const
template<class Archive>
void serialize (Archive &ar)

Public Attributes

EmbossProjection projection
std::optional< float > distance
std::optional< float > angle
std::string truncated_name
std::optional< StyleImage > image
std::string name
std::string path
Type type { Type::undefined }
FontProp prop

Detailed Description

All connected with one style keep temporary data and caches for style.

Member Enumeration Documentation

◆ Type

enum class Slic3r::EmbossStyle::Type
stronginherited
Enumerator
undefined 
wx_win_font_descr 
wx_lin_font_descr 
wx_mac_font_descr 
file_path 
137 {
138 undefined = 0,
139
140 // wx font descriptors are platform dependent
141 // path is font descriptor generated by wxWidgets
142 wx_win_font_descr, // on Windows
143 wx_lin_font_descr, // on Linux
144 wx_mac_font_descr, // on Max OS
145
146 // TrueTypeFont file loacation on computer
147 // for privacy: only filename is stored into .3mf
148 file_path
149 };

Member Function Documentation

◆ operator==() [1/2]

bool Slic3r::EmbossStyle::operator== ( const EmbossStyle & other) const
inlineinherited
152 {
153 return
154 type == other.type &&
155 prop == other.prop &&
156 name == other.name &&
157 path == other.path
158 ;
159 }
FontProp prop
Definition TextConfiguration.hpp:131
std::string path
Definition TextConfiguration.hpp:124
Type type
Definition TextConfiguration.hpp:128
std::string name
Definition TextConfiguration.hpp:120

References name, path, prop, and type.

Referenced by Slic3r::GUI::Emboss::StyleManager::Style::operator==().

Here is the caller graph for this function:

◆ operator==() [2/2]

bool Slic3r::GUI::Emboss::StyleManager::Style::operator== ( const Style & other) const
inline
213 {
214 return EmbossStyle::operator==(other) &&
215 projection == other.projection &&
216 distance == other.distance &&
217 angle == other.angle;
218 }
bool operator==(const EmbossStyle &other) const
Definition TextConfiguration.hpp:151
std::optional< float > distance
Definition EmbossStyleManager.hpp:204
EmbossProjection projection
Definition EmbossStyleManager.hpp:199
std::optional< float > angle
Definition EmbossStyleManager.hpp:210

References angle, distance, Slic3r::EmbossStyle::operator==(), and projection.

Here is the call graph for this function:

◆ serialize()

template<class Archive>
void Slic3r::EmbossStyle::serialize ( Archive & ar)
inlineinherited
162{ ar(name, path, type, prop); }

References name, path, prop, and type.

Member Data Documentation

◆ angle

◆ distance

◆ image

std::optional<StyleImage> Slic3r::GUI::Emboss::StyleManager::Style::image

◆ name

◆ path

◆ projection

◆ prop

◆ truncated_name

std::string Slic3r::GUI::Emboss::StyleManager::Style::truncated_name

◆ type

Type Slic3r::EmbossStyle::type { Type::undefined }
inherited

The documentation for this struct was generated from the following file: