Function
Gtkrender_frame_gap
deprecated: 3.24 since: 3.0
Declaration [src]
void
gtk_render_frame_gap (
GtkStyleContext* context,
cairo_t* cr,
gdouble x,
gdouble y,
gdouble width,
gdouble height,
GtkPositionType gap_side,
gdouble xy0_gap,
gdouble xy1_gap
)
Description [src]
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:
.
Available since: 3.0
Deprecated since: 3.24
Use gtk_render_frame() instead. Themes can create gaps
by omitting borders via CSS.
Parameters
context-
Type:
GtkStyleContextA
GtkStyleContext.The data is owned by the caller of the function. cr-
Type:
cairo_tA #cairo_t.
The data is owned by the caller of the function. x-
Type:
gdoubleX origin of the rectangle.
y-
Type:
gdoubleY origin of the rectangle.
width-
Type:
gdoubleRectangle width.
height-
Type:
gdoubleRectangle height.
gap_side-
Type:
GtkPositionTypeSide where the gap is.
xy0_gap-
Type:
gdoubleInitial coordinate (X or Y depending on
gap_side) for the gap. xy1_gap-
Type:
gdoubleEnd coordinate (X or Y depending on
gap_side) for the gap.