// Code generated by girgen. DO NOT EDIT.

package adw

import (
	"github.com/diamondburned/gotk4/pkg/glib/v2"
)

// #include <stdlib.h>
// #include <adwaita.h>
import "C"

// AddSetter adds a setter to self.
//
// The setter will automatically set property on object to value when applying
// the breakpoint, and set it back to its original value upon unapplying it.
//
// Note that setting properties to their original values does not work for
// properties that have irreversible side effects. For example, changing
// gtk.Button:label while gtk.Button:icon-name is set will reset the icon.
// However, resetting the label will not set icon-name to its original value.
//
// Use the breakpoint::apply and breakpoint::unapply signals for those
// properties instead.
//
// The function takes the following parameters:
//
//   - object: target object.
//   - property: target property.
//   - value to set.
//
func (self *Breakpoint) AddSetter(object glib.Objector, property string, value any) {
	self.AddSetterDirect(glib.BaseObject(object), property, glib.NewValue(value))
}
