BorderNode#

class BorderNode(*args, **kwargs)#

Superclasses: RenderNode

A render node for a border.

Constructors#

class BorderNode
classmethod new(outline: RoundedRect, border_width: list[float], border_color: list[RGBA]) BorderNode#

Creates a GskRenderNode that will stroke a border rectangle inside the given outline.

The 4 sides of the border can have different widths and colors.

Parameters:
  • outline – a GskRoundedRect describing the outline of the border

  • border_width – the stroke width of the border on the top, right, bottom and left side respectively.

  • border_color – the color used on the top, right, bottom and left side.

Methods#

class BorderNode
get_colors() RGBA#

Retrieves the colors of the border.

get_outline() RoundedRect#

Retrieves the outline of the border.

get_widths() list[float]#

Retrieves the stroke widths of the border.