renderFrameGap

fnvoid renderFrameGap(gtk.style_context.StyleContext context, cairo.context.Context cr, double x, double y, double width, double height, gtk.types.PositionType gapSide, double xy0Gap, double xy1Gap)

Renders a frame around the rectangle defined by (x, y, width, height), leaving a gap on one side. xy0_gap and xy1_gap will mean X coordinates for [gtk.types.PositionType.Top] and [gtk.types.PositionType.Bottom] gap sides, and Y coordinates for [gtk.types.PositionType.Left] and [gtk.types.PositionType.Right].

Typical rendering of a frame with a gap:

![](frame-gap.png)

Parameters

contexta #GtkStyleContext
cra #cairo_t
xX origin of the rectangle
yY origin of the rectangle
widthrectangle width
heightrectangle height
gapSideside where the gap is
xy0Gapinitial coordinate (X or Y depending on gap_side) for the gap
xy1Gapend coordinate (X or Y depending on gap_side) for the gap

Deprecated

Use [gtk.global.renderFrame] instead. Themes can create gaps

by omitting borders via CSS.