render_frame_gap


Description:

[ Version ( deprecated_since = "vala-0.16" , deprecated = true , replacement = "StyleContext.render_frame_gap" ) ]
public void render_frame_gap (StyleContext context, 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 "vala-0.16". Use Gtk.StyleContext.render_frame_gap.

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:

context

a StyleContext

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


Namespace: Gtk
Package: gtk+-3.0