StyleContext.renderFrameGap

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_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:

More...
class StyleContext
static
void
renderFrameGap
(,,
double x
,
double y
,
double width
,
double height
,,
double xy0Gap
,
double xy1Gap
)

Parameters

context StyleContext
cr Context
x double

X origin of the rectangle

y double

Y origin of the rectangle

width double

rectangle width

height double

rectangle height

gapSide GtkPositionType

side where the gap is

xy0Gap double

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

xy1Gap double

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

Detailed Description

Deprecated: Use gtk_render_frame() instead. Themes can create gaps by omitting borders via CSS.

Meta