// Copyright (c) 2012-2023 Wojciech Figat. All rights reserved. namespace FlaxEngine.GUI { /// /// Vertical scroll bar control. /// /// [HideInEditor] public class VScrollBar : ScrollBar { /// /// Initializes a new instance of the class. /// /// The parent control. /// The x position. /// The height. /// The width. public VScrollBar(ContainerControl parent, float x, float height, float width = DefaultSize) : base(Orientation.Vertical) { AnchorPreset = AnchorPresets.VerticalStretchRight; Parent = parent; Bounds = new Rectangle(x, 0, width, height); } /// protected override float TrackSize => Height; } }