Gsk.BorderNode¶
- Subclasses:
None
Methods¶
- Inherited:
class |
|
|
|
|
|
|
Virtual Methods¶
None
Fields¶
None
Class Details¶
- class Gsk.BorderNode¶
- Bases:
- Abstract:
No
A render node for a border.
- classmethod new(outline, border_width, border_color)¶
- Parameters:
outline (
Gsk.RoundedRect
) – aGskRoundedRect
describing the outline of the borderborder_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:
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:
Retrieves the colors of the border.
- get_outline()¶
- Returns:
the outline of the border
- Return type:
Retrieves the outline of the border.