Region

open class Region : Node

A Region adds a Border, and padding compared to a regular Node.

Theme DSL

 {

    background( color : Color )
    background( color : String )

    borderSize( value : Edges )
    borderSize( size : Number )
    borderSize( topBottom : Number, leftRight : Number )
    borderSize( top : Number, right : Number, bottom : Number, left : Number )

    border( value : Border )

    plainBorder( color : Color )
    plainBorder( color : String )

    ninePatchBorder( value : NinePatch )

    padding( value : Edges )
    padding( size : Number )
    padding( topBottom : Number, leftRight : Number )
    padding( top : Number, right : Number, bottom : Number, left : Number )
}

Region inherits all the features of Node.

Inheritors

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun Region.borderSize(topBottom: Number, leftRight: Number)
fun Region.borderSize(top: Number, right: Number, bottom: Number, left: Number)
Link copied to clipboard

Sets [Region.background to NoBackground

Link copied to clipboard
Link copied to clipboard
open override fun nodePrefHeight(): Float

Each subclass of node can determine its preferred height. As most nodes are composed of smaller nodes, this is typically calculated using evalPrefWidth of the child nodes, with extra added for spacing, padding and borders.

Link copied to clipboard
open override fun nodePrefWidth(): Float

Each subclass of node can determine its preferred width. As most nodes are composed of smaller nodes, this is typically calculated using evalPrefWidth of the child nodes, with extra added for spacing, padding and borders.

Link copied to clipboard
fun Region.padding(size: Number)
fun Region.padding(topBottom: Number, leftRight: Number)
fun Region.padding(top: Number, right: Number, bottom: Number, left: Number)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun Region.roundedBackground(color: String, radius: Number)
fun Region.roundedBackground(color: Color, radius: Number)
Link copied to clipboard
fun Region.roundedBorder(color: String, radius: Number)
fun Region.roundedBorder(color: Color, radius: Number)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard