/* GestureTarget.c generated by valac 0.56.18-dirty, the Vala compiler
 * generated from GestureTarget.vala, do not modify */

/*
 * Copyright 2025 elementary, Inc. (https://elementary.io)
 * SPDX-License-Identifier: GPL-3.0-or-later
 *
 * Authored by: Leonhard Kargl <leo.kargl@proton.me>
 */

#include "gala.h"
#include <glib.h>
#include <float.h>
#include <math.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

static GType gala_gesture_target_get_type_once (void);

 G_GNUC_NO_INLINE static GType
gala_gesture_target_update_type_get_type_once (void)
{
	static const GEnumValue values[] = {{GALA_GESTURE_TARGET_UPDATE_TYPE_START, "GALA_GESTURE_TARGET_UPDATE_TYPE_START", "start"}, {GALA_GESTURE_TARGET_UPDATE_TYPE_UPDATE, "GALA_GESTURE_TARGET_UPDATE_TYPE_UPDATE", "update"}, {GALA_GESTURE_TARGET_UPDATE_TYPE_COMMIT, "GALA_GESTURE_TARGET_UPDATE_TYPE_COMMIT", "commit"}, {GALA_GESTURE_TARGET_UPDATE_TYPE_END, "GALA_GESTURE_TARGET_UPDATE_TYPE_END", "end"}, {0, NULL, NULL}};
	GType gala_gesture_target_update_type_type_id;
	gala_gesture_target_update_type_type_id = g_enum_register_static ("GalaGestureTargetUpdateType", values);
	return gala_gesture_target_update_type_type_id;
}

GType
gala_gesture_target_update_type_get_type (void)
{
	static gsize gala_gesture_target_update_type_type_id__once = 0;
	if (g_once_init_enter (&gala_gesture_target_update_type_type_id__once)) {
		GType gala_gesture_target_update_type_type_id;
		gala_gesture_target_update_type_type_id = gala_gesture_target_update_type_get_type_once ();
		g_once_init_leave (&gala_gesture_target_update_type_type_id__once, gala_gesture_target_update_type_type_id);
	}
	return gala_gesture_target_update_type_type_id__once;
}

void
gala_gesture_target_propagate (GalaGestureTarget* self,
                               GalaGestureTargetUpdateType update_type,
                               GalaGestureAction action,
                               gdouble progress)
{
	GalaGestureTargetIface* _iface_;
	g_return_if_fail (self != NULL);
	_iface_ = GALA_GESTURE_TARGET_GET_INTERFACE (self);
	if (_iface_->propagate) {
		_iface_->propagate (self, update_type, action, progress);
	}
}

static void
gala_gesture_target_default_init (GalaGestureTargetIface * iface,
                                  gpointer iface_data)
{
}

 G_GNUC_NO_INLINE static GType
gala_gesture_target_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (GalaGestureTargetIface), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gala_gesture_target_default_init, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
	GType gala_gesture_target_type_id;
	gala_gesture_target_type_id = g_type_register_static (G_TYPE_INTERFACE, "GalaGestureTarget", &g_define_type_info, 0);
	g_type_interface_add_prerequisite (gala_gesture_target_type_id, G_TYPE_OBJECT);
	return gala_gesture_target_type_id;
}

GType
gala_gesture_target_get_type (void)
{
	static gsize gala_gesture_target_type_id__once = 0;
	if (g_once_init_enter (&gala_gesture_target_type_id__once)) {
		GType gala_gesture_target_type_id;
		gala_gesture_target_type_id = gala_gesture_target_get_type_once ();
		g_once_init_leave (&gala_gesture_target_type_id__once, gala_gesture_target_type_id);
	}
	return gala_gesture_target_type_id__once;
}

