| Linderdaum Engine: iFlowProvider Class Reference | ![]() |
Data source for the FlowUI (a.k.a. model in the MVC) More...
#include <FlowUI.h>
Public Member Functions | |
| iFlowProvider () | |
| virtual size_t | GetNumElements () const |
| Total number of elements in the stream. | |
| virtual float | GetAverageWidth () const |
| Get the average length of a single element. | |
| virtual float | GetWidth (int i) const |
| The width of the element. | |
| virtual float | GetHeight (int i) const |
| The height of the element. | |
| virtual float | GetAspect (int Idx) const |
| Aspect ratio of the element. | |
| virtual iTexture * | GetTextureForElement (int i) const =0 |
| The current element's texture. Active element may require some custom processing. | |
| virtual void | Update (float dt) |
| Custom update. | |
Data source for the FlowUI (a.k.a. model in the MVC)
Provides access to the elements
"Selected" element can be different and even provide some user interface
| iFlowProvider::iFlowProvider | ( | ) | [inline] |
Aspect ratio of the element.
| virtual float iFlowProvider::GetAverageWidth | ( | ) | const [inline, virtual] |
Get the average length of a single element.
| virtual size_t iFlowProvider::GetNumElements | ( | ) | const [inline, virtual] |
Total number of elements in the stream.
Reimplemented in clImageListFlowProvider.
The current element's texture. Active element may require some custom processing.
Implemented in clImageListFlowProvider.
| virtual void iFlowProvider::Update | ( | float | dt | ) | [inline, virtual] |
Custom update.