render_extension

function render_extension(context:Gtk.StyleContext, cr:cairo.Context, x:Number, y:Number, width:Number, height:Number, gap_side:Gtk.PositionType):void {
    // Gjs wrapper for gtk_render_extension()
}

Renders a extension (as in a Gtk.Notebook tab) in the rectangle defined by x, y, width, height. The side where the extension connects to is defined by gap_side.

<example> <title>Typical extension rendering</title> <inlinegraphic fileref="extensions.png" format="PNG"/> </example>

Since 3.0

context

a Gtk.StyleContext

cr

a #cairo_t

x

X origin of the rectangle

y

Y origin of the rectangle

width

rectangle width

height

rectangle height

gap_side

side where the gap is