/* base-binding.c generated by valac 0.56.19, the Vala compiler
 * generated from base-binding.vala, do not modify */

#include <glib-object.h>
#include <gee.h>
#include "protonplus_core.h"
#include <glib.h>

#if !defined(VALA_STRICT_C)
#if !defined(__clang__) && defined(__GNUC__) && (__GNUC__ >= 14)
#pragma GCC diagnostic warning "-Wincompatible-pointer-types"
#elif defined(__clang__) && (__clang_major__ >= 16)
#pragma clang diagnostic ignored "-Wincompatible-function-pointer-types"
#pragma clang diagnostic ignored "-Wincompatible-pointer-types"
#endif
#endif

#define PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_BASE_BINDING (proton_plus_widgets_games_launch_options_editor_base_binding_get_type ())
#define PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_BASE_BINDING(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_BASE_BINDING, ProtonPlusWidgetsGamesLaunchOptionsEditorBaseBinding))
#define PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_BASE_BINDING_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_BASE_BINDING, ProtonPlusWidgetsGamesLaunchOptionsEditorBaseBindingClass))
#define PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_IS_BASE_BINDING(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_BASE_BINDING))
#define PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_IS_BASE_BINDING_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_BASE_BINDING))
#define PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_BASE_BINDING_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_BASE_BINDING, ProtonPlusWidgetsGamesLaunchOptionsEditorBaseBindingClass))

typedef struct _ProtonPlusWidgetsGamesLaunchOptionsEditorBaseBinding ProtonPlusWidgetsGamesLaunchOptionsEditorBaseBinding;
typedef struct _ProtonPlusWidgetsGamesLaunchOptionsEditorBaseBindingClass ProtonPlusWidgetsGamesLaunchOptionsEditorBaseBindingClass;
typedef struct _ProtonPlusWidgetsGamesLaunchOptionsEditorBaseBindingPrivate ProtonPlusWidgetsGamesLaunchOptionsEditorBaseBindingPrivate;
enum  {
	PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_BASE_BINDING_0_PROPERTY,
	PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_BASE_BINDING_LINE_TYPE_PROPERTY,
	PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_BASE_BINDING_IS_ADVANCED_PROPERTY,
	PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_BASE_BINDING_NUM_PROPERTIES
};
static GParamSpec* proton_plus_widgets_games_launch_options_editor_base_binding_properties[PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_BASE_BINDING_NUM_PROPERTIES];
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

struct _ProtonPlusWidgetsGamesLaunchOptionsEditorBaseBinding {
	GObject parent_instance;
	ProtonPlusWidgetsGamesLaunchOptionsEditorBaseBindingPrivate * priv;
	GeeList* _children;
};

struct _ProtonPlusWidgetsGamesLaunchOptionsEditorBaseBindingClass {
	GObjectClass parent_class;
};

struct _ProtonPlusWidgetsGamesLaunchOptionsEditorBaseBindingPrivate {
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchLineType _line_type;
	gboolean _is_advanced;
};

static gint ProtonPlusWidgetsGamesLaunchOptionsEditorBaseBinding_private_offset;
static gpointer proton_plus_widgets_games_launch_options_editor_base_binding_parent_class = NULL;

VALA_EXTERN GType proton_plus_widgets_games_launch_options_editor_base_binding_get_type (void) G_GNUC_CONST ;
VALA_EXTERN ProtonPlusWidgetsGamesLaunchOptionsEditorBaseBinding* proton_plus_widgets_games_launch_options_editor_base_binding_construct (GType object_type,
                                                                                                                              gboolean is_advanced,
                                                                                                                              ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchLineType line_type);
VALA_EXTERN void proton_plus_widgets_games_launch_options_editor_base_binding_set_is_advanced (ProtonPlusWidgetsGamesLaunchOptionsEditorBaseBinding* self,
                                                                                   gboolean value);
VALA_EXTERN void proton_plus_widgets_games_launch_options_editor_base_binding_set_line_type (ProtonPlusWidgetsGamesLaunchOptionsEditorBaseBinding* self,
                                                                                 ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchLineType value);
VALA_EXTERN void proton_plus_widgets_games_launch_options_editor_base_binding_add_child (ProtonPlusWidgetsGamesLaunchOptionsEditorBaseBinding* self,
                                                                             ProtonPlusWidgetsGamesLaunchOptionsEditorILaunchOption* child);
VALA_EXTERN ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchLineType proton_plus_widgets_games_launch_options_editor_base_binding_get_line_type (ProtonPlusWidgetsGamesLaunchOptionsEditorBaseBinding* self);
VALA_EXTERN gboolean proton_plus_widgets_games_launch_options_editor_base_binding_get_is_advanced (ProtonPlusWidgetsGamesLaunchOptionsEditorBaseBinding* self);
static void proton_plus_widgets_games_launch_options_editor_base_binding_finalize (GObject * obj);
static GType proton_plus_widgets_games_launch_options_editor_base_binding_get_type_once (void);
static void _vala_proton_plus_widgets_games_launch_options_editor_base_binding_get_property (GObject * object,
                                                                                      guint property_id,
                                                                                      GValue * value,
                                                                                      GParamSpec * pspec);
static void _vala_proton_plus_widgets_games_launch_options_editor_base_binding_set_property (GObject * object,
                                                                                      guint property_id,
                                                                                      const GValue * value,
                                                                                      GParamSpec * pspec);

static inline gpointer
proton_plus_widgets_games_launch_options_editor_base_binding_get_instance_private (ProtonPlusWidgetsGamesLaunchOptionsEditorBaseBinding* self)
{
	return G_STRUCT_MEMBER_P (self, ProtonPlusWidgetsGamesLaunchOptionsEditorBaseBinding_private_offset);
}

ProtonPlusWidgetsGamesLaunchOptionsEditorBaseBinding*
proton_plus_widgets_games_launch_options_editor_base_binding_construct (GType object_type,
                                                                        gboolean is_advanced,
                                                                        ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchLineType line_type)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorBaseBinding * self = NULL;
	GeeArrayList* _tmp0_;
	self = (ProtonPlusWidgetsGamesLaunchOptionsEditorBaseBinding*) g_object_new (object_type, NULL);
	proton_plus_widgets_games_launch_options_editor_base_binding_set_is_advanced (self, is_advanced);
	proton_plus_widgets_games_launch_options_editor_base_binding_set_line_type (self, line_type);
	_tmp0_ = gee_array_list_new (PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_ILAUNCH_OPTION, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
	_g_object_unref0 (self->_children);
	self->_children = (GeeList*) _tmp0_;
	return self;
}

void
proton_plus_widgets_games_launch_options_editor_base_binding_add_child (ProtonPlusWidgetsGamesLaunchOptionsEditorBaseBinding* self,
                                                                        ProtonPlusWidgetsGamesLaunchOptionsEditorILaunchOption* child)
{
	GeeList* _tmp0_;
	g_return_if_fail (self != NULL);
	g_return_if_fail (child != NULL);
	_tmp0_ = self->_children;
	gee_collection_add ((GeeCollection*) _tmp0_, child);
}

ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchLineType
proton_plus_widgets_games_launch_options_editor_base_binding_get_line_type (ProtonPlusWidgetsGamesLaunchOptionsEditorBaseBinding* self)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchLineType result;
	g_return_val_if_fail (self != NULL, 0);
	result = self->priv->_line_type;
	return result;
}

void
proton_plus_widgets_games_launch_options_editor_base_binding_set_line_type (ProtonPlusWidgetsGamesLaunchOptionsEditorBaseBinding* self,
                                                                            ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchLineType value)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchLineType old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_widgets_games_launch_options_editor_base_binding_get_line_type (self);
	if (old_value != value) {
		self->priv->_line_type = value;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_widgets_games_launch_options_editor_base_binding_properties[PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_BASE_BINDING_LINE_TYPE_PROPERTY]);
	}
}

gboolean
proton_plus_widgets_games_launch_options_editor_base_binding_get_is_advanced (ProtonPlusWidgetsGamesLaunchOptionsEditorBaseBinding* self)
{
	gboolean result;
	g_return_val_if_fail (self != NULL, FALSE);
	result = self->priv->_is_advanced;
	return result;
}

void
proton_plus_widgets_games_launch_options_editor_base_binding_set_is_advanced (ProtonPlusWidgetsGamesLaunchOptionsEditorBaseBinding* self,
                                                                              gboolean value)
{
	gboolean old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_widgets_games_launch_options_editor_base_binding_get_is_advanced (self);
	if (old_value != value) {
		self->priv->_is_advanced = value;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_widgets_games_launch_options_editor_base_binding_properties[PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_BASE_BINDING_IS_ADVANCED_PROPERTY]);
	}
}

static void
proton_plus_widgets_games_launch_options_editor_base_binding_class_init (ProtonPlusWidgetsGamesLaunchOptionsEditorBaseBindingClass * klass,
                                                                         gpointer klass_data)
{
	proton_plus_widgets_games_launch_options_editor_base_binding_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &ProtonPlusWidgetsGamesLaunchOptionsEditorBaseBinding_private_offset);
	G_OBJECT_CLASS (klass)->get_property = _vala_proton_plus_widgets_games_launch_options_editor_base_binding_get_property;
	G_OBJECT_CLASS (klass)->set_property = _vala_proton_plus_widgets_games_launch_options_editor_base_binding_set_property;
	G_OBJECT_CLASS (klass)->finalize = proton_plus_widgets_games_launch_options_editor_base_binding_finalize;
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_BASE_BINDING_LINE_TYPE_PROPERTY, proton_plus_widgets_games_launch_options_editor_base_binding_properties[PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_BASE_BINDING_LINE_TYPE_PROPERTY] = g_param_spec_enum ("line-type", "line-type", "line-type", PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_LAUNCH_LINE_TYPE, PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_LINE_TYPE_ENVIRONMENT, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_BASE_BINDING_IS_ADVANCED_PROPERTY, proton_plus_widgets_games_launch_options_editor_base_binding_properties[PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_BASE_BINDING_IS_ADVANCED_PROPERTY] = g_param_spec_boolean ("is-advanced", "is-advanced", "is-advanced", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
}

static void
proton_plus_widgets_games_launch_options_editor_base_binding_instance_init (ProtonPlusWidgetsGamesLaunchOptionsEditorBaseBinding * self,
                                                                            gpointer klass)
{
	self->priv = proton_plus_widgets_games_launch_options_editor_base_binding_get_instance_private (self);
	self->priv->_line_type = PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_LINE_TYPE_ENVIRONMENT;
	self->priv->_is_advanced = FALSE;
}

static void
proton_plus_widgets_games_launch_options_editor_base_binding_finalize (GObject * obj)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorBaseBinding * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_BASE_BINDING, ProtonPlusWidgetsGamesLaunchOptionsEditorBaseBinding);
	_g_object_unref0 (self->_children);
	G_OBJECT_CLASS (proton_plus_widgets_games_launch_options_editor_base_binding_parent_class)->finalize (obj);
}

static GType
proton_plus_widgets_games_launch_options_editor_base_binding_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (ProtonPlusWidgetsGamesLaunchOptionsEditorBaseBindingClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) proton_plus_widgets_games_launch_options_editor_base_binding_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ProtonPlusWidgetsGamesLaunchOptionsEditorBaseBinding), 0, (GInstanceInitFunc) proton_plus_widgets_games_launch_options_editor_base_binding_instance_init, NULL };
	GType proton_plus_widgets_games_launch_options_editor_base_binding_type_id;
	proton_plus_widgets_games_launch_options_editor_base_binding_type_id = g_type_register_static (G_TYPE_OBJECT, "ProtonPlusWidgetsGamesLaunchOptionsEditorBaseBinding", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
	ProtonPlusWidgetsGamesLaunchOptionsEditorBaseBinding_private_offset = g_type_add_instance_private (proton_plus_widgets_games_launch_options_editor_base_binding_type_id, sizeof (ProtonPlusWidgetsGamesLaunchOptionsEditorBaseBindingPrivate));
	return proton_plus_widgets_games_launch_options_editor_base_binding_type_id;
}

GType
proton_plus_widgets_games_launch_options_editor_base_binding_get_type (void)
{
	static volatile gsize proton_plus_widgets_games_launch_options_editor_base_binding_type_id__once = 0;
	if (g_once_init_enter (&proton_plus_widgets_games_launch_options_editor_base_binding_type_id__once)) {
		GType proton_plus_widgets_games_launch_options_editor_base_binding_type_id;
		proton_plus_widgets_games_launch_options_editor_base_binding_type_id = proton_plus_widgets_games_launch_options_editor_base_binding_get_type_once ();
		g_once_init_leave (&proton_plus_widgets_games_launch_options_editor_base_binding_type_id__once, proton_plus_widgets_games_launch_options_editor_base_binding_type_id);
	}
	return proton_plus_widgets_games_launch_options_editor_base_binding_type_id__once;
}

static void
_vala_proton_plus_widgets_games_launch_options_editor_base_binding_get_property (GObject * object,
                                                                                 guint property_id,
                                                                                 GValue * value,
                                                                                 GParamSpec * pspec)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorBaseBinding * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_BASE_BINDING, ProtonPlusWidgetsGamesLaunchOptionsEditorBaseBinding);
	switch (property_id) {
		case PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_BASE_BINDING_LINE_TYPE_PROPERTY:
		g_value_set_enum (value, proton_plus_widgets_games_launch_options_editor_base_binding_get_line_type (self));
		break;
		case PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_BASE_BINDING_IS_ADVANCED_PROPERTY:
		g_value_set_boolean (value, proton_plus_widgets_games_launch_options_editor_base_binding_get_is_advanced (self));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

static void
_vala_proton_plus_widgets_games_launch_options_editor_base_binding_set_property (GObject * object,
                                                                                 guint property_id,
                                                                                 const GValue * value,
                                                                                 GParamSpec * pspec)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorBaseBinding * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_BASE_BINDING, ProtonPlusWidgetsGamesLaunchOptionsEditorBaseBinding);
	switch (property_id) {
		case PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_BASE_BINDING_LINE_TYPE_PROPERTY:
		proton_plus_widgets_games_launch_options_editor_base_binding_set_line_type (self, g_value_get_enum (value));
		break;
		case PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_BASE_BINDING_IS_ADVANCED_PROPERTY:
		proton_plus_widgets_games_launch_options_editor_base_binding_set_is_advanced (self, g_value_get_boolean (value));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

