|
KiCad PCB EDA Suite
|
Go to the source code of this file.
Classes | |
| struct | PCB_TEXTBOX_FIXTURE |
Functions | |
| BOOST_AUTO_TEST_CASE (GetMinSizeReturnsHeightOnly) | |
| Verify that GetMinSize() returns height-only constraint for non-empty text. | |
| BOOST_AUTO_TEST_CASE (GetMinSizeGrowsWithMoreText) | |
| Verify that GetMinSize() height grows when more text is added. | |
| BOOST_AUTO_TEST_CASE (GetMinSizeIncludesMargins) | |
| Verify that GetMinSize() height grows when vertical margins are increased. | |
| BOOST_AUTO_TEST_CASE (GetMinSizeHeightAtLeastTextHeight) | |
| Verify that GetMinSize() height is at least the text height for a single line of text. | |
| BOOST_AUTO_TEST_CASE (GetMinSizeEmptyText) | |
| Verify that GetMinSize() returns zero for both axes with empty text. | |
| BOOST_AUTO_TEST_CASE (GetMinSizeRotated90) | |
| Verify that GetMinSize() swaps the constrained axis for 90-degree rotation. | |
| BOOST_AUTO_TEST_CASE (GetMinSizeAllowsWidthReduction) | |
| Verify that width is always unconstrained regardless of text content. | |
| BOOST_AUTO_TEST_CASE | ( | GetMinSizeAllowsWidthReduction | ) |
Verify that width is always unconstrained regardless of text content.
Definition at line 165 of file test_pcb_textbox.cpp.
References BOOST_CHECK_EQUAL(), and minSize.
| BOOST_AUTO_TEST_CASE | ( | GetMinSizeEmptyText | ) |
Verify that GetMinSize() returns zero for both axes with empty text.
Definition at line 124 of file test_pcb_textbox.cpp.
References BOOST_CHECK_EQUAL(), and minSize.
| BOOST_AUTO_TEST_CASE | ( | GetMinSizeGrowsWithMoreText | ) |
Verify that GetMinSize() height grows when more text is added.
Definition at line 65 of file test_pcb_textbox.cpp.
References VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | GetMinSizeHeightAtLeastTextHeight | ) |
Verify that GetMinSize() height is at least the text height for a single line of text.
Definition at line 110 of file test_pcb_textbox.cpp.
References minSize.
| BOOST_AUTO_TEST_CASE | ( | GetMinSizeIncludesMargins | ) |
Verify that GetMinSize() height grows when vertical margins are increased.
Definition at line 81 of file test_pcb_textbox.cpp.
References BOOST_CHECK_EQUAL(), pcbIUScale, VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | GetMinSizeReturnsHeightOnly | ) |
Verify that GetMinSize() returns height-only constraint for non-empty text.
Width should be 0 (unconstrained) so text can rewrap freely.
Definition at line 53 of file test_pcb_textbox.cpp.
References BOOST_AUTO_TEST_CASE(), BOOST_CHECK_EQUAL(), and minSize.
| BOOST_AUTO_TEST_CASE | ( | GetMinSizeRotated90 | ) |
Verify that GetMinSize() swaps the constrained axis for 90-degree rotation.
At 0 degrees the height constraint is on y. At 90 degrees it moves to x.
Definition at line 141 of file test_pcb_textbox.cpp.
References BOOST_CHECK_EQUAL(), DEGREES_T, VECTOR2< T >::x, and VECTOR2< T >::y.