_methods
- Source
- _methods.scala
Def
Parent
Parent
Returns node Parent
If this node has not been added to a scene graph, then option will be void
- Source
- _methods.scala
Mutable pseudo-class states
Mutable pseudo-class states
Adding/Removing pseudo-class states from this collection, will trigger re-application of CSS
- Source
- _methods.scala
Resize and move
Resize and move
If the node is resizable, will set its layout bounds to the specified width and height. If the node is not resizable, the resize step is skipped
Once the node has been resized (if resizable) then sets the node's layoutX and layoutY translation properties in order to relocate it to x,y in the parent's coordinate space
This method should generally only be called by parent nodes from their layoutChildren() methods. All Parent classes will automatically resize resizable children, so resizing done directly by the application will be overridden by the node's parent, unless the child is unmanaged
Parents are responsible for ensuring the width and height values fall within the resizable node's preferred range. The autosize() and relocate() methods may be used if the parent just needs to resize the node to its preferred size and permutation it
- Source
- _methods.scala
Mutable styles
Mutable styles
An index collection of Style.Class which can be used to logically group Nodes, specifically for an external style engine
This variable is analogous to the "class" attribute on an HTML element and, as such, each element of the list is a style class to which this Node belongs
- Source
- _methods.scala