2021-10-25 04:50:02 -04:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2021 Jeremy Cline
|
|
|
|
*
|
|
|
|
* 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 2 of the
|
|
|
|
* License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful, but
|
|
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2023-07-21 09:37:20 -04:00
|
|
|
#pragma once
|
2021-10-25 04:50:02 -04:00
|
|
|
|
|
|
|
#include <glib-object.h>
|
|
|
|
|
|
|
|
#include "backends/meta-backend-types.h"
|
2021-11-29 12:17:26 -05:00
|
|
|
#include "core/util-private.h"
|
2021-10-25 04:50:02 -04:00
|
|
|
|
|
|
|
#define META_TYPE_COLOR_MANAGER (meta_color_manager_get_type ())
|
2021-12-06 05:47:00 -05:00
|
|
|
META_EXPORT_TEST
|
2021-10-25 04:50:02 -04:00
|
|
|
G_DECLARE_DERIVABLE_TYPE (MetaColorManager, meta_color_manager,
|
|
|
|
META, COLOR_MANAGER,
|
|
|
|
GObject)
|
|
|
|
|
|
|
|
MetaBackend *
|
|
|
|
meta_color_manager_get_backend (MetaColorManager *color_manager);
|
|
|
|
|
2021-11-29 12:17:26 -05:00
|
|
|
META_EXPORT_TEST
|
|
|
|
MetaColorDevice * meta_color_manager_get_color_device (MetaColorManager *color_manager,
|
|
|
|
MetaMonitor *monitor);
|
|
|
|
|
2021-12-03 18:26:01 -05:00
|
|
|
void meta_color_manager_set_brightness (MetaColorManager *color_manager,
|
|
|
|
int brightness);
|