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;
Extend VIEW_ITEM by possibility of grouping items into a single object.
virtual void Clear()
Remove all the stored items from the group.
virtual unsigned int GetSize() const
Return the number of stored items.
virtual void ViewDraw(int aLayer, VIEW *aView) const override
Draw all the stored items in the group on the given layer.
virtual VIEW_ITEM * GetItem(unsigned int aIdx) const
void FreeItems()
Free all the items that were added to the group.
virtual void ViewGetLayers(int aLayers[], int &aCount) const override
Return all the layers used by the stored items.
std::vector< VIEW_ITEM * > m_groupItems
virtual void Remove(VIEW_ITEM *aItem)
Remove an item from the group.
virtual void SetLayer(int aLayer)
Set layer used to draw the group.
virtual void Add(VIEW_ITEM *aItem)
Add an item to the group.
virtual const std::vector< VIEW_ITEM * > updateDrawList() const
virtual const BOX2I ViewBBox() const override
Return the bounding box for all stored items covering all its layers.
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...
The Cairo implementation of the graphics abstraction layer.