Class ScrollBar
Represents a Cegui scroll bar
Inherited Members
Namespace: Slipe.Client.Gui
Assembly: SlipeClient.dll
Syntax
[DefaultElementClass(ElementType.GuiScrollBar)]
public class ScrollBar : GuiElement
Constructors
| Improve this Doc View SourceScrollBar(Vector2, Vector2, Boolean, Boolean, GuiElement)
Create a scroll bar
Declaration
public ScrollBar(Vector2 position, Vector2 dimensions, bool horizontal, bool relative = false, GuiElement parent = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | |
| Vector2 | dimensions | |
| Boolean | horizontal | |
| Boolean | relative | |
| GuiElement | parent |
Properties
| Improve this Doc View SourceScrollPosition
Get and set the position of this scroll bar (0-100)
Declaration
public float ScrollPosition { get; set; }
Property Value
| Type | Description |
|---|---|
| Single |
Events
| Improve this Doc View SourceOnScroll
Declaration
public event ScrollBar.OnScrollHandler OnScroll
Event Type
| Type | Description |
|---|---|
| ScrollBar.OnScrollHandler |