Carousel
struct Carousel {
Button left;
Button right;
Vector position;
const(Texture[]) textures;
}
A disabled default is present on this object. To use it, use one of the other constructors or a factory function.
- this
this(in Button left, in Button right, in Vector currentItemPosition, in Texture[] textures)
Create a carousel with a given set of options
- draw
int draw(ref scope Window window, in int current)
Draw a carousel with a given current index and return the new index
A rotating selection of options