const class gfx::Pattern

sys::Obj
  gfx::Pattern : gfx::Brush

@Js
@Serializable

Source

Pattern is an brush for filling shapes with an image.

bg

const Color? bg

Source

Background color to use underneath image filling, or null for no background color.

This feature is not supported in SWT when used with Graphics (it is supported in BorderPane).

equals

virtual override Bool equals(Obj? obj)

Source

Equality is based on fields.

halign

const Halign halign := Halign.repeat

Source

Horizontal alignment, default is repeat. Fill it not supported.

Only repeat is supported in SWT.

hash

virtual override Int hash()

Source

Hash is based on fields.

image

const Image image

Source

Image to use for filling.

make

new make(Image image, |This|? f := null)

Source

Construct required image and optional with it-block

toStr

virtual override Str toStr()

Source

Return string representation (no guarantee of format)

valign

const Valign valign := Valign.repeat

Source

Vertical alignment, default is repeat. Fill it not supported.

Only repeat is supported in SWT.