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

/*
 * BrightnessController
 * This file is part of budgie-extras
 *
 * Author: Serdar ŞEN github.com/serdarsen
 *
 * Copyright © 2018 Ubuntu Budgie Developers
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 3 of the License, or
 * (at your option) any later version.
 */

#include "brightnesscontroller.h"
#include <glib-object.h>
#include <glib.h>
#include <float.h>
#include <math.h>
#include <stdlib.h>
#include <string.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 gpointer brightness_controller_models_light_parent_class = NULL;
static GType brightness_controller_models_light_type_id = 0;

BrightnessControllerModelsLight*
brightness_controller_models_light_construct (GType object_type)
{
	BrightnessControllerModelsLight* self = NULL;
	self = (BrightnessControllerModelsLight*) brightness_controller_models_flame_construct (object_type);
	return self;
}

BrightnessControllerModelsLight*
brightness_controller_models_light_new (void)
{
	return brightness_controller_models_light_construct (BRIGHTNESS_CONTROLLER_MODELS_TYPE_LIGHT);
}

gchar*
brightness_controller_models_light_get_MaxBrightnessText (BrightnessControllerModelsLight* self)
{
	gchar* result;
	gdouble _tmp0_;
	gdouble _tmp1_;
	gchar* _tmp2_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = brightness_controller_models_flame_get_MaxBrightness ((BrightnessControllerModelsFlame*) self);
	_tmp1_ = _tmp0_;
	_tmp2_ = brightness_controller_models_flame_DoubleToString ((BrightnessControllerModelsFlame*) self, _tmp1_, "%.0f");
	result = _tmp2_;
	return result;
}

gchar*
brightness_controller_models_light_get_BrightnessText (BrightnessControllerModelsLight* self)
{
	gchar* result;
	gdouble _tmp0_;
	gdouble _tmp1_;
	gchar* _tmp2_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = brightness_controller_models_flame_get_Brightness ((BrightnessControllerModelsFlame*) self);
	_tmp1_ = _tmp0_;
	_tmp2_ = brightness_controller_models_flame_DoubleToString ((BrightnessControllerModelsFlame*) self, _tmp1_, "%.0f");
	result = _tmp2_;
	return result;
}

static void
brightness_controller_models_light_class_init (BrightnessControllerModelsLightClass * klass,
                                               gpointer klass_data)
{
	brightness_controller_models_light_parent_class = g_type_class_peek_parent (klass);
}

static void
brightness_controller_models_light_instance_init (BrightnessControllerModelsLight * self,
                                                  gpointer klass)
{
}

GType
brightness_controller_models_light_get_type (void)
{
	return brightness_controller_models_light_type_id;
}

GType
brightness_controller_models_light_register_type (GTypeModule * module)
{
	static const GTypeInfo g_define_type_info = { sizeof (BrightnessControllerModelsLightClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) brightness_controller_models_light_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BrightnessControllerModelsLight), 0, (GInstanceInitFunc) brightness_controller_models_light_instance_init, NULL };
	brightness_controller_models_light_type_id = g_type_module_register_type (module, BRIGHTNESS_CONTROLLER_MODELS_TYPE_FLAME, "BrightnessControllerModelsLight", &g_define_type_info, 0);
	return brightness_controller_models_light_type_id;
}

