// Code generated by cmd/cgo; DO NOT EDIT.

//line /home/josie/.cache/paru/clone/wiiudownloader/src/pkg/mod/github.com/gotk3/gotk3@v0.6.5-0.20240618185848-ff349ae13f56/cairo/fontoptions_since_1_16.go:1:1
// +build !cairo_1_9,!cairo_1_10,!cairo_1_11,!cairo_1_12,!cairo_1_13,!cairo_1_14,!cairo_1_15

package cairo

// #include <stdlib.h>
// #include <cairo.h>
// #include <cairo-gobject.h>
import _ "unsafe"
import (
	"unsafe"
)

// GetVariations is a wrapper around cairo_font_options_get_variations().
func (o *FontOptions) GetVariations() string {
	return ( /*line :15:9*/_Cfunc_GoString /*line :15:18*/)(func() *_Ctype_char{ _cgo0 := /*line :15:56*/o.native; _cgoCheckPointer(_cgo0, nil); return /*line :15:65*/_Cfunc_cairo_font_options_get_variations(_cgo0); }())
}

// SetVariations is a wrapper around cairo_font_options_set_variations().
func (o *FontOptions) SetVariations(variations string) {
	var cvariations * /*line :20:19*/_Ctype_char /*line :20:25*/
	if variations != "" {
		cvariations = ( /*line :22:17*/_Cfunc_CString /*line :22:25*/)(variations)
		// Cairo will call strdup on its own.
		defer func() func() { _cgo0 := /*line :24:16*/unsafe.Pointer(cvariations); return func() { _cgoCheckPointer(_cgo0, nil); /*line :24:44*/_Cfunc_free(_cgo0); }}()()
	}

	func() { _cgo0 := /*line :27:38*/o.native; var _cgo1 *_Ctype_char = /*line :27:48*/cvariations; _cgoCheckPointer(_cgo0, nil); /*line :27:60*/_Cfunc_cairo_font_options_set_variations(_cgo0, _cgo1); }()
}
