Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
Slic3r::EmbossStyle Struct Reference

Style of embossed text (Path + Type) must define how to open font for using on different OS NOTE: OnEdit fix serializations: EmbossStylesSerializable, TextConfigurationSerialization. More...

#include <src/libslic3r/TextConfiguration.hpp>

+ Collaboration diagram for Slic3r::EmbossStyle:

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 EmbossStyle &other) const
 
template<class Archive >
void serialize (Archive &ar)
 

Public Attributes

std::string name
 
std::string path
 
Type type { Type::undefined }
 
FontProp prop
 

Detailed Description

Style of embossed text (Path + Type) must define how to open font for using on different OS NOTE: OnEdit fix serializations: EmbossStylesSerializable, TextConfigurationSerialization.

Member Enumeration Documentation

◆ Type

enum class Slic3r::EmbossStyle::Type
strong
Enumerator
undefined 
wx_win_font_descr 
wx_lin_font_descr 
wx_mac_font_descr 
file_path 
174 {
175 undefined = 0,
176
177 // wx font descriptors are platform dependent
178 // path is font descriptor generated by wxWidgets
179 wx_win_font_descr, // on Windows
180 wx_lin_font_descr, // on Linux
181 wx_mac_font_descr, // on Max OS
182
183 // TrueTypeFont file loacation on computer
184 // for privacy: only filename is stored into .3mf
186 };

Member Function Documentation

◆ operator==()

bool Slic3r::EmbossStyle::operator== ( const EmbossStyle other) const
inline
189 {
190 return
191 type == other.type &&
192 prop == other.prop &&
193 name == other.name &&
194 path == other.path
195 ;
196 }
FontProp prop
Definition TextConfiguration.hpp:168
std::string path
Definition TextConfiguration.hpp:161
Type type
Definition TextConfiguration.hpp:165
std::string name
Definition TextConfiguration.hpp:157

References name, path, prop, and type.

◆ serialize()

template<class Archive >
void Slic3r::EmbossStyle::serialize ( Archive &  ar)
inline
199 {
200 ar(name, path, type, prop);
201 }

References name, path, prop, and type.

Member Data Documentation

◆ name

◆ path

◆ prop

◆ type


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