VirtualList
A list of items that scrolls, with rows of rowHeight pixels that row builds; only the rows in view, and overscan rows around them, exist as elements, so that long lists are as quick as short ones. Spacers above and below the rows keep the height of the whole list, the list scrolls as if all rows were there. Style the list with a height and the rows with the class virtual-row. It scrolls with the wheel and draws its background like a Div.
Constructors
Types
Properties
true when the rows of items that stay slide to their new places when the items change, like when sorted
the attributes of the element, which attribute selectors like [label="OK"] select, see setAttribute
builds the menu that opens when the element is clicked with the right button, null for none
The radius of the corners of this in pixels, of its org.openrndr.panel.style.borderRadius: in pixels, or a percentage of its shorter side; at most half of it
what the element does in drag and drop, see DragAndDrop
the history of the control manager of this element, null when it is not in one
an offset of the element from where it is laid out, while it moves there, see org.openrndr.panel.animateMoveFrom
false for elements that place their children themselves, like the spans of RichText
The largest scrollLeft: how far the content of the element extends beyond its right side, as found by the last layout.
The largest scrollTop: how far the content of the element extends beyond its bottom, as found by the last layout.
The transform of the element itself, in the coordinates of the window, around its transform origin; null when it has none
The area the element draws in, on the screen: its box and what is drawn around it, like knobs, focus rings and outlines. Only the areas of the elements that changed are drawn again, a control that draws further than this gives a larger area.
True when the rows can be dragged to other places in the list, reordered tells where to; the list does not change its items itself
the transform of the element by its own transform and those of its ancestors, null when there are none
how far the content of an element that scrolls is scrolled to the left, in pixels
where the content is scrolled to: the end of smooth scrolling, or the scroll position
Where text is typed in this element while it has the focus: the line of the caret, in the coordinates of the window, with the caret from its left edge. The control manager gives it to the window, so that input methods place their candidates and on-screen keyboards next to the caret; null for elements that do not take text.
the bindings of values of the element, checked every frame, see org.openrndr.panel.binding.bindValue
Functions
Moves the element from from, a point of the window where its top-left corner was, to where it is laid out in the next frame, like when it moved to another place in a list
Binds the value of this element to get and set: when changed happens, elementValue is set with set, and when get changes, setElementValue shows it in the element
true when the point position of the window is in the box of the element as it is drawn, transformed
sets the menu that opens when this element is clicked with the right button, see Element.contextMenu
the height of the content of the element when it is width wide, for content that wraps; null when it has none
the styles of this element and its descendants are computed again before the next redraw
position, a point of the window, in the coordinates of the element before its transforms
a NodeEditor, init adds its nodes and wires
adds a NumberField
The layout is computed again before the next redraw, of the element and its descendants, and of the elements around it as far as its size can change theirs, see org.openrndr.panel.document.Document.layoutRequests
Draws the element again, what it shows changed. The layout is computed again when the size hints of the element changed; changes to the children, the classes, states and styles of elements and to scrolling lay out again by themselves, other changes that move or size elements call Element.requestLayout.
Scrolls the elements that scroll this element so that it is in view, with margin pixels around it, each by its StyleSheet.scrollBehavior
Applies the provided styling function to the element's stylesheet. If the element does not already have a stylesheet, a new one is created and the function is applied to it.
Creates a Div element with the provided classes, and runs builder to populate the Div any time watchObject changes.