Gst.Segment.new

function new():Gst.Segment {
    // Gjs wrapper for gst_segment_new()
}

Allocate a new Gst.Segment structure and initialize it using init.

Free-function: gst_segment_free

Returns

a new Gst.Segment, free with Gst.free.