Viewport QML Type
The visible portion of a larger Scene. More...
Import Statement: | import Bacon2D 1.0 |
Properties
- animationDuration : int
- xOffset : float
- yOffset : float
Methods
Detailed Description
The Viewport is the visible area of a larger Scene and can be scrolled horizontally or vertically showing different parts of the larger Scene.
Property Documentation
Viewport scrolling uses an animation, the animationDuration property sets the duration in milliseconds of that animation. You can change this duration for smooth panning of the Viewport. The default is 100ms.
This property holds the horizontal offset of the Viewport's x property from the Scene's x property.
This property holds the vertical offset of the Viewport's y property from the Scene's y property.