Function

Gtkrender_frame_gap

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 GtkStyleContext
 

A GtkStyleContext.

 The data is owned by the caller of the function.
cr cairo_t
 

A #cairo_t.

 The data is owned by the caller of the function.
x gdouble
 

X origin of the rectangle.

y gdouble
 

Y origin of the rectangle.

width gdouble
 

Rectangle width.

height gdouble
 

Rectangle height.

gap_side GtkPositionType
 

Side where the gap is.

xy0_gap gdouble
 

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

xy1_gap gdouble
 

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