Dock
Panels in groups, of which each shows one panel at a time under the tabs of all, and in splits of groups next to and above each other. A panel is added with panel; dragging its tab onto another group docks it there: in the middle as a tab, at a side next to the group. A panel dragged out of the window, or of which the tab is double clicked, goes into a window of its own, and back into the dock when that window is closed.
The groups are dock-groups with a dock-tab-bar of dock-tabs, the tab of the panel that shows is :selected; the content of a panel is a dock-content.
Properties
the attributes of the element, which attribute selectors like [label="OK"] select, see setAttribute
the panels that are closed, see close
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
the panels that are taken out into windows of their own
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.
a panel was closed, see close
a panel that was closed was opened again, see open
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
the color of the windows that panels are taken out into, under the panels
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
Closes panel when it is DockPanel.closable: takes it out of its group, and the group out of the layout when it is empty, or out of its window, which closes. The panel and its content are kept, neither laid out nor drawn, until open brings it back where it was.
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 group that panel is docked in, null when it is not docked
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
the layout as it is now: the groups and splits, the tabs that show and the windows of panels taken out
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
Called in every frame before the styles are computed, by the control manager, so that the element can change its children for what is in view, like a VirtualList
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.
Arranges the panels as layout has them, found by their titles; panels that it does not have are added to the last group, and the panels that it has in windows of their own go there once the dock is in a control manager. The closable panels that it has closed are closed, and open again where they were added.
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.