Gsk.BorderNode

g Gsk.BorderNode Gsk.BorderNode Gsk.RenderNode Gsk.RenderNode Gsk.RenderNode->Gsk.BorderNode

Subclasses:

None

Methods

Inherited:

Gsk.RenderNode (8)

class

new (outline, border_width, border_color)

get_colors ()

get_outline ()

get_widths ()

Virtual Methods

None

Fields

None

Class Details

class Gsk.BorderNode
Bases:

Gsk.RenderNode

Abstract:

No

A render node for a border.

classmethod new(outline, border_width, border_color)
Parameters:
  • outline (Gsk.RoundedRect) – a GskRoundedRect describing the outline of the border

  • border_width ([float]) – the stroke width of the border on the top, right, bottom and left side respectively.

  • border_color ([Gdk.RGBA]) – the color used on the top, right, bottom and left side.

Returns:

A new GskRenderNode

Return type:

Gsk.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.

get_colors()
Returns:

an array of 4 GdkRGBA structs for the top, right, bottom and left color of the border

Return type:

Gdk.RGBA

Retrieves the colors of the border.

get_outline()
Returns:

the outline of the border

Return type:

Gsk.RoundedRect

Retrieves the outline of the border.

get_widths()
Returns:

an array of 4 floats for the top, right, bottom and left stroke width of the border, respectively

Return type:

[float]

Retrieves the stroke widths of the border.