ScrollBarView

public class ScrollBarView : View

ScrollBarViews are views that display a 1-character scrollbar, either horizontal or vertical

The scrollbar is drawn to be a representation of the Size, assuming that the scroll position is set at position

If the region to display the scrollbar is larger than three characters, arrow indicators are drawn.

  • This event is raised when the position on the scrollbar has changed.

    Declaration

    Swift

    public var changedPosition: (_ sender: ScrollBarView, _ old: Int, _ new: Int) -> Void
  • Initializes the ScrollBarView

    • Paramter size: the size that this scrollbar represents

    Declaration

    Swift

    public init(size: Int, position: Int, isVertical: Bool)

    Parameters

    rect

    the region where the scrollbar is displayed

    position

    The position of the scrollbar within the size

    isVertical

    whether this is a vertical or horizontal scrollbar

  • The position to show the scrollbar at.

    Declaration

    Swift

    public var position: Int { get set }
  • Declaration

    Swift

    public override func redraw(region: Rect, painter paint: Painter)
  • Declaration

    Swift

    public override func mouseEvent(event: MouseEvent) -> Bool
  • Undocumented

    Declaration

    Swift

    public override var debugDescription: String { get }