YView

These are common commands that apply to all widgets that have them injected.

Members

Functions

getYView
double[] getYView()

Get floating point values which represent the viewable portion of the text. Each element is a real fraction between 0 and 1; together they describe the vertical span that is visible in the window. For example, if the first element is .2 and the second element is .6, 20% of the entry's text is off-screen to the bottom, the middle 40% is visible in the window, and 40% of the text is off-screen to the bottom.

scrollYChars
auto scrollYChars(int numberOfChars)

Scroll the text by a specified amount of characters. Positive values scroll text to the down, negative values scroll text up.

scrollYPages
auto scrollYPages(int numberOfPages)

Scroll the text by a specified amount of pages. Positive values scroll text up, negative values scroll text down.

scrollYToChar
auto scrollYToChar(int charIndex)

Adjusts the view in the window so that the character index passed is displayed at the top edge of the window.

setYView
auto setYView(double position)

Adjusts the view in the window so that the position appears at the top edge of the window. Position must be a fraction between 0.0 (start of the text) and 1.0 (end of the text).

Meta