1.3 <GskBorderNode>

Class: <GskBorderNode>

It derives from <GskRenderNode>.

A render node for a border.

Procedures

Method: border-node:get-colors self ⇒ %return
Method: get-colors self ⇒ %return

Retrieves the colors of the border.

self

Passed: a <GskBorderNode>.

a <GskRenderNode> for a border

%return

Returned: a vector, each a <GdkRGBA>.

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

Method: border-node:get-outline self ⇒ %return
Method: get-outline self ⇒ %return

Retrieves the outline of the border.

self

Passed: a <GskBorderNode>.

a <GskRenderNode> for a border

%return

Returned: a <GskRoundedRect>.

the outline of the border

Method: border-node:get-widths self ⇒ %return
Method: get-widths self ⇒ %return

Retrieves the stroke widths of the border.

self

Passed: a <GskBorderNode>.

a <GskRenderNode> for a border

%return

Returned: a f32vector.

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

Procedure: border-node:new outline border-width border-color ⇒ %return

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.

outline

Passed: a <GskRoundedRect>.

a <GskRoundedRect> describing the outline of the border

border-width

Passed: a f32vector, or a list or vector, each a real number.

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

border-color

Passed: a list or vector, each a <GdkRGBA>.

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

%return

Returned: a <GskBorderNode>.

A new <GskRenderNode>