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