OrcaSlicer latest
OrcaSlicer
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 </home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/TextConfiguration.hpp>

Inheritance diagram for Slic3r::EmbossStyle:
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 
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==()

bool Slic3r::EmbossStyle::operator== ( const EmbossStyle & other) const
inline
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:

◆ serialize()

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

References name, path, prop, and type.

Member Data Documentation

◆ name

◆ path

◆ prop

◆ type

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

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