ScrollView
public class ScrollView : View
Scrollviews are views that present a window into a virtual space where subviews are added. Similar to the iOS UIScrollView.
The subviews that are added to this Gui.ScrollView
are offset by the
`contentOffset
property. The view itself is a window into the
space represented by the contentSize
-
Declaration
Swift
public override init()
-
Undocumented
Declaration
Swift
public override func layoutSubviews()
-
Represents the contents of the data shown inside the scrolview
Declaration
Swift
public var contentSize: Size { get set }
-
Represents the top left corner coordinate that is displayed by the scrollview
Declaration
Swift
public var contentOffset: Point { get set }
-
Declaration
Swift
public override func setNeedsDisplay(_ region: Rect)
-
Adds the view to the scrollview.
Declaration
Swift
public override func addSubview(_ view: View)
-
Gets or sets the visibility for the horizontal scroll indicator
Declaration
Swift
public var showHorizontalScrollIndicator: Bool { get set }
-
Gets or sets the visibility for the vertical scroll indicator
Declaration
Swift
public var showVerticalScrollIndicator: Bool { get set }
-
Declaration
Swift
public override func positionCursor()
-
Declaration
Swift
public override func removeAllSubviews()
-
Scrolls the view up.
Declaration
Swift
public func scrollUp(lines: Int) -> Bool
Parameters
lines
the number of lines to scroll up
Return Value
true
if the it was scrolled -
Scrolls the view down.
Declaration
Swift
public func scrollDown(lines: Int) -> Bool
Parameters
lines
the number of lines to scroll down
Return Value
true
if the it was scrolled -
Scrolls the view left
Declaration
Swift
public func scrollLeft(cols: Int) -> Bool
Parameters
cols
the number of columns to scroll left
Return Value
true
if the it was scrolled -
Scrolls the view right.
Declaration
Swift
public func scrollRight(cols: Int) -> Bool
Parameters
lines
the number of columns to scroll right
Return Value
true
if the it was scrolled -
If this property is set to true, when the user reaches the end of the scrollview boundaries the event will not be processed, allowing automatically focusing the next view in the direction of the moevemnt
Declaration
Swift
public var autoNavigateToNextViewOnBoundary: Bool
-
Declaration
Swift
public override func processKey(event: KeyEvent) -> Bool
-
Undocumented
Declaration
Swift
public override var debugDescription: String { get }