MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / backgroundType

Function backgroundType

src/Mod/CAM/PathSimulator/AppGL/View3DSettings.cpp:45–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43{}
44
45static View3DInventorViewer::Background backgroundType(const ParameterGrp& rGrp)
46{
47 if (rGrp.GetBool("Gradient", true)) {
48 return View3DInventorViewer::Background::LinearGradient;
49 }
50 else if (rGrp.GetBool("RadialGradient", false)) {
51 return View3DInventorViewer::Background::RadialGradient;
52 }
53 else {
54 return View3DInventorViewer::Background::NoGradient;
55 }
56}
57
58static QColor backgroundColor(const ParameterGrp& rGrp)
59{

Callers 1

backgroundColorFunction · 0.85

Calls 1

GetBoolMethod · 0.80

Tested by

no test coverage detected