BackgroundComponent

Methods
4
Fields
None

Getting one

BackgroundComponent.new()

Methods

MethodReturnsDescription
setBackgroundColor(Color?)()setBackgroundColor(color).
setRectangle(Rectangle?)()setRectangle(rectangle): what to fill.
setFill(boolean)()setFill(fill): false draws the border only.
new()BackgroundComponent() -> BackgroundComponent: BackgroundComponent.new(): the standard colour, an empty rectangle, filled.
new(Color?, Rectangle?, boolean)BackgroundComponent

Returned by

MethodReturnsDescription
BackgroundComponentClass.newBackgroundComponent() -> BackgroundComponent: BackgroundComponent.new(): the standard colour, an empty rectangle, filled.

Method details

new

new: (() -> BackgroundComponent) & ((Color?, Rectangle?, boolean) -> BackgroundComponent)

() -> BackgroundComponent: BackgroundComponent.new(): the standard colour, an empty rectangle, filled.

(Color?, Rectangle?, boolean) -> BackgroundComponent: BackgroundComponent.new(backgroundColor, rectangle, fill).