Tech ENABLE_COLOR_CLASSES - 1st installment -> Introduction of classes ColorRGB and ColorRGBA to unify color data definition and manipulation
This commit is contained in:
parent
48098fbaff
commit
cd4094743e
53 changed files with 1810 additions and 60 deletions
|
@ -10,9 +10,14 @@
|
|||
|
||||
#include "libslic3r/Point.hpp"
|
||||
|
||||
namespace Slic3r {namespace Search {
|
||||
namespace Slic3r {
|
||||
#if ENABLE_COLOR_CLASSES
|
||||
class ColorRGBA;
|
||||
#endif // ENABLE_COLOR_CLASSES
|
||||
namespace Search {
|
||||
struct OptionViewParameters;
|
||||
}}
|
||||
} // namespace Search
|
||||
} // namespace Slic3r
|
||||
|
||||
class wxString;
|
||||
class wxMouseEvent;
|
||||
|
@ -134,6 +139,13 @@ public:
|
|||
void reset_requires_extra_frame() { m_requires_extra_frame = false; }
|
||||
#endif // ENABLE_ENHANCED_IMGUI_SLIDER_FLOAT
|
||||
|
||||
#if ENABLE_COLOR_CLASSES
|
||||
static ImU32 to_ImU32(const ColorRGBA& color);
|
||||
static ImVec4 to_ImVec4(const ColorRGBA& color);
|
||||
static ColorRGBA from_ImU32(const ImU32& color);
|
||||
static ColorRGBA from_ImVec4(const ImVec4& color);
|
||||
#endif // ENABLE_COLOR_CLASSES
|
||||
|
||||
static const ImVec4 COL_GREY_DARK;
|
||||
static const ImVec4 COL_GREY_LIGHT;
|
||||
static const ImVec4 COL_ORANGE_DARK;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue