render_frame_gap


Description:

[ CCode ( cname = "gtk_render_frame_gap" ) ]
[ Version ( deprecated = true , deprecated_since = "3.24" , since = "3.0" ) ]
public void render_frame_gap (Context cr, double x, double y, double width, double height, PositionType gap_side, double xy0_gap, double xy1_gap)

Warning: render_frame_gap is deprecated since 3.24.

Renders a frame around the rectangle defined by (x, y, width, height), leaving a gap on one side.

Note:

Use render_frame instead. Themes can create gaps by omitting borders via CSS.

xy0_gap and xy1_gap will mean X coordinates for gtk_pos_top and gtk_pos_bottom gap sides, and Y coordinates for gtk_pos_left and gtk_pos_right.

Typical rendering of a frame with a gap:

![](frame-gap.png)

Parameters:

cr

a Context

x

X origin of the rectangle

y

Y origin of the rectangle

width

rectangle width

height

rectangle height

gap_side

side where the gap is

xy0_gap

initial coordinate (X or Y depending on gap_side) for the gap

xy1_gap

end coordinate (X or Y depending on gap_side) for the gap

context

a StyleContext