73 BOOST_CHECK_MESSAGE( color.
a > 0.0,
74 "Color for POINT layer should not be transparent (alpha was "
75 + std::to_string( color.
a ) +
")" );
77 BOOST_CHECK_MESSAGE( color == m_colorSettings.GetColor(
LAYER_POINTS ),
78 "POINT layer color should match LAYER_POINTS color" );
99 BOOST_CHECK_MESSAGE( color == expectedColor,
100 "POINT layer for " + std::to_string( boardLayer )
101 +
" should have LAYER_POINTS color" );
virtual void SetLayer(PCB_LAYER_ID aLayer)
Set the layer this item is on.
Color settings are a bit different than most of the settings objects in that there can be more than o...
A color representation with 4 components: red, green, blue, alpha.
PCB specific render settings.
A PCB_POINT is a 0-dimensional point that is used to mark a position on a PCB, or more usually a foot...
COLOR_SETTINGS m_colorSettings
KIGFX::PCB_RENDER_SETTINGS m_settings
TEST_PCB_RENDER_SETTINGS_FIXTURE()
#define POINT_LAYER_FOR(boardLayer)
@ LAYER_POINTS
PCB reference/manual snap points visibility.
PCB_LAYER_ID
A quick note on layer IDs:
BOOST_AUTO_TEST_CASE(HorizontalAlignment)
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_CASE(PointLayerColorIsVisible)
Test that PCB_RENDER_SETTINGS::GetColor returns a visible color for POINT layers.