55 virtual unsigned int GetSize()
const;
85 virtual void ViewDraw(
int aLayer,
VIEW* aView )
const override;
93 virtual void ViewGetLayers(
int aLayers[],
int& aCount )
const override;
118 #endif // VIEW_GROUP_H_ The Cairo implementation of the graphics abstraction layer.
VIEW_GROUP(VIEW *aView=nullptr)
virtual void Clear()
Remove all the stored items from the group.
An abstract base class for deriving all objects that can be added to a VIEW.
virtual VIEW_ITEM * GetItem(unsigned int aIdx) const
virtual void ViewDraw(int aLayer, VIEW *aView) const override
Draw all the stored items in the group on the given layer.
virtual unsigned int GetSize() const
Return the number of stored items.
virtual const BOX2I ViewBBox() const override
Return the bounding box for all stored items covering all its layers.
void FreeItems()
Free all the items that were added to the group.
Extend VIEW_ITEM by possibility of grouping items into a single object.
virtual void Remove(VIEW_ITEM *aItem)
Remove an item from the group.
std::vector< VIEW_ITEM * > m_groupItems
virtual void Add(VIEW_ITEM *aItem)
Add an item to the group.
virtual void SetLayer(int aLayer)
Set layer used to draw the group.
virtual const std::vector< VIEW_ITEM * > updateDrawList() const
virtual void ViewGetLayers(int aLayers[], int &aCount) const override
Return all the layers used by the stored items.
Hold a (potentially large) number of VIEW_ITEMs and renders them on a graphics device provided by the...