OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::GUI::anonymous_namespace{PrintHostDialogs.cpp} Namespace Reference

Classes

class  FlashforgeSlotCard
class  FlashforgeSlotDialog
class  FlashforgeMaterialMapWidget

Functions

wxColour contrasting_text_color (const wxColour &background)
long long color_distance_sq (const wxColour &lhs, const wxColour &rhs)
static FlashforgeMaterialMapWidget * as_ff_map_widget (wxWindow *window)

Function Documentation

◆ as_ff_map_widget()

FlashforgeMaterialMapWidget * Slic3r::GUI::anonymous_namespace{PrintHostDialogs.cpp}::as_ff_map_widget ( wxWindow * window)
static
460{
461 return dynamic_cast<FlashforgeMaterialMapWidget*>(window);
462}

References as_ff_map_widget().

Referenced by as_ff_map_widget().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ color_distance_sq()

long long Slic3r::GUI::anonymous_namespace{PrintHostDialogs.cpp}::color_distance_sq ( const wxColour & lhs,
const wxColour & rhs )
102{
103 const long long dr = static_cast<long long>(lhs.Red()) - static_cast<long long>(rhs.Red());
104 const long long dg = static_cast<long long>(lhs.Green()) - static_cast<long long>(rhs.Green());
105 const long long db = static_cast<long long>(lhs.Blue()) - static_cast<long long>(rhs.Blue());
106 return dr * dr + dg * dg + db * db;
107}

References color_distance_sq().

Referenced by color_distance_sq().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ contrasting_text_color()

wxColour Slic3r::GUI::anonymous_namespace{PrintHostDialogs.cpp}::contrasting_text_color ( const wxColour & background)
97{
98 return background.GetLuminance() < 0.60 ? *wxWHITE : wxColour("#303030");
99}

References contrasting_text_color().

Referenced by contrasting_text_color(), Slic3r::GUI::anonymous_namespace{PrintHostDialogs.cpp}::FlashforgeMaterialMapWidget::on_paint(), and Slic3r::GUI::anonymous_namespace{PrintHostDialogs.cpp}::FlashforgeSlotCard::on_paint().

Here is the call graph for this function:
Here is the caller graph for this function: