:right-sidebar: True BorderNode =================================================================== .. currentmodule:: gi.repository.Gsk .. class:: BorderNode(*args, **kwargs) :no-contents-entry: Superclasses: :class:`~gi.repository.Gsk.RenderNode` A render node for a border. Constructors ------------ .. rst-class:: interim-class .. class:: BorderNode :no-index: .. classmethod:: new(outline: ~gi.repository.Gsk.RoundedRect, border_width: list[float], border_color: list[~gi.repository.Gdk.RGBA]) -> ~gi.repository.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. :param outline: a ``GskRoundedRect`` describing the outline of the border :param border_width: the stroke width of the border on the top, right, bottom and left side respectively. :param border_color: the color used on the top, right, bottom and left side. Methods ------- .. rst-class:: interim-class .. class:: BorderNode :no-index: .. method:: get_colors() -> ~gi.repository.Gdk.RGBA Retrieves the colors of the border. .. method:: get_outline() -> ~gi.repository.Gsk.RoundedRect Retrieves the outline of the border. .. method:: get_widths() -> list[float] Retrieves the stroke widths of the border.