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

A GtkStyleContext.

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

Type: cairo_t

A #cairo_t.

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

Type: gdouble

X origin of the rectangle.

y

Type: gdouble

Y origin of the rectangle.

width

Type: gdouble

Rectangle width.

height

Type: gdouble

Rectangle height.

gap_side

Type: GtkPositionType

Side where the gap is.

xy0_gap

Type: gdouble

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

xy1_gap

Type: gdouble

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