Function

Gtk-3.0Gtkrender_frame_gapDeprecated 3.24Since 3.0

  • 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.PositionType.TOP and Gtk.PositionType.BOTTOM gap sides, and Y coordinates for Gtk.PositionType.LEFT and Gtk.PositionType.RIGHT.

    Typical rendering of a frame with a gap:

    Parameters

    • Deprecatedcontext: Gtk.StyleContext
    • Deprecatedcr: default.Context
    • Deprecatedx: number

      X origin of the rectangle

    • Deprecatedy: number

      Y origin of the rectangle

    • Deprecatedwidth: number

      rectangle width

    • Deprecatedheight: number

      rectangle height

    • Deprecatedgap_side: Gtk.PositionType

      side where the gap is

    • Deprecatedxy0_gap: number

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

    • Deprecatedxy1_gap: number

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

    Returns void

    3.0

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