|
|
Donner
C++20 SVG rendering library
|
A view containing a list of components::RenderingInstanceComponent which can be iterated over. More...
#include "donner/svg/renderer/common/RenderingInstanceView.h"
Classes | |
| struct | SavedState |
Public Types | |
| using | StorageType = entt::storage<components::RenderingInstanceComponent> |
| The type of the storage used to store the components. | |
| using | Iterator = StorageType::const_iterator |
| Iterator type. | |
Public Member Functions | |
| RenderingInstanceView (Registry ®istry) | |
| Constructor, takes a registry and creates a view over all components::RenderingInstanceComponent. | |
| ~RenderingInstanceView ()=default | |
| Destructor. | |
| RenderingInstanceView (const RenderingInstanceView &)=default | |
| Copy constructor. | |
| RenderingInstanceView (RenderingInstanceView &&)=default | |
| Move constructor. | |
| RenderingInstanceView & | operator= (const RenderingInstanceView &)=delete |
| RenderingInstanceView & | operator= (RenderingInstanceView &&)=delete |
| bool | done () const |
| Returns true if the view has no more elements. | |
| void | advance () |
| Advances the view to the next element. | |
| Entity | currentEntity () const |
| Returns the current entity. | |
| SavedState | save () const |
| Saves the current state. | |
| void | restore (const SavedState &state) |
| Restores the state. | |
| const components::RenderingInstanceComponent & | get () const |
| Returns the current component. | |
A view containing a list of components::RenderingInstanceComponent which can be iterated over.
| struct donner::svg::RenderingInstanceView::SavedState |
| Class Members | ||
|---|---|---|
| Iterator | current | |
|
inlineexplicit |
Constructor, takes a registry and creates a view over all components::RenderingInstanceComponent.
| registry | The registry to use. |
|
inline |
Advances the view to the next element.