render_slider

function render_slider(context:Gtk.StyleContext, cr:cairo.Context, x:Number, y:Number, width:Number, height:Number, orientation:Gtk.Orientation):void {
    // Gjs wrapper for gtk_render_slider()
}

Renders a slider (as in Gtk.Scale) in the rectangle defined by x, y, width, height. orientation defines whether the slider is vertical or horizontal.

<example> <title>Typical slider rendering</title> <inlinegraphic fileref="sliders.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

orientation

orientation of the slider