42class HIDDEN_GAL :
public GAL
45 HIDDEN_GAL( GAL_DISPLAY_OPTIONS& aOptions ) :
50 bool IsVisible()
const override {
return false; }
57 REORDER_TEST_ITEM(
int aLayer ) :
62 wxString GetClass()
const override {
return wxT(
"REORDER_TEST_ITEM" ); }
66 std::vector<int> ViewGetLayers()
const override {
return { m_layer }; }
82 view.
Hide(
nullptr,
true );
83 view.
Hide(
nullptr,
false,
true );
100 group.Add(
nullptr );
112 HIDDEN_GAL gal( options );
118 REORDER_TEST_ITEM item( 12 );
121 std::vector<VIEW::LAYER_ITEM_PAIR> found;
124 bool itemFound =
false;
128 if( pair.first == &item )
Abstract interface for drawing on a 2D-surface.
Extend VIEW_ITEM by possibility of grouping items into a single object.
An abstract base class for deriving all objects that can be added to a VIEW.
Hold a (potentially large) number of VIEW_ITEMs and renders them on a graphics device provided by the...
virtual void Add(VIEW_ITEM *aItem, int aDrawPriority=-1)
Add a VIEW_ITEM to the view.
virtual void Remove(VIEW_ITEM *aItem)
Remove a VIEW_ITEM from the view.
void SetGAL(GAL *aGal)
Assign a rendering device for the VIEW.
int Query(const BOX2I &aRect, std::vector< LAYER_ITEM_PAIR > &aResult) const
Find all visible items that touch or are within the rectangle aRect.
std::pair< VIEW_ITEM *, int > LAYER_ITEM_PAIR
void Hide(VIEW_ITEM *aItem, bool aHide=true, bool aHideOverlay=false)
Temporarily hide the item in the view (e.g.
void SetVisible(VIEW_ITEM *aItem, bool aIsVisible=true)
Set the item visibility.
void ReorderLayerData(std::unordered_map< int, int > aReorderMap)
Remap the data between layer ids without invalidating that data.
The Cairo implementation of the graphics abstraction layer.
BOOST_AUTO_TEST_CASE(HorizontalAlignment)
BOOST_AUTO_TEST_SUITE(CadstarPartParser)
BOOST_AUTO_TEST_SUITE_END()
BOOST_TEST(netlist.find("R_G1 ARM_OUT1 DIE_B R='0.001 / ((SW_STATE)") !=std::string::npos)
BOOST_AUTO_TEST_CASE(HideAndSetVisibleTolerateNullItem)
VECTOR2< int32_t > VECTOR2I