1
/* gnome-rr-labeler.h - Utility to label monitors to identify them
2
* while they are being configured.
4
* Copyright 2008, Novell, Inc.
6
* This file is part of the Gnome Library.
8
* The Gnome Library is free software; you can redistribute it and/or
9
* modify it under the terms of the GNU Library General Public License as
10
* published by the Free Software Foundation; either version 2 of the
11
* License, or (at your option) any later version.
13
* The Gnome Library is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
* Library General Public License for more details.
18
* You should have received a copy of the GNU Library General Public
19
* License along with the Gnome Library; see the file COPYING.LIB. If not,
20
* write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21
* Boston, MA 02110-1301, USA.
23
* Author: Federico Mena-Quintero <federico@novell.com>
26
#ifndef CC_RR_LABELER_H
27
#define CC_RR_LABELER_H
29
#define GNOME_DESKTOP_USE_UNSTABLE_API
30
#include <libgnome-desktop/gnome-rr-config.h>
32
#define GNOME_TYPE_RR_LABELER (cc_rr_labeler_get_type ())
33
#define CC_RR_LABELER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNOME_TYPE_RR_LABELER, CcRRLabeler))
34
#define CC_RR_LABELER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GNOME_TYPE_RR_LABELER, CcRRLabelerClass))
35
#define GNOME_IS_RR_LABELER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNOME_TYPE_RR_LABELER))
36
#define GNOME_IS_RR_LABELER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GNOME_TYPE_RR_LABELER))
37
#define CC_RR_LABELER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GNOME_TYPE_RR_LABELER, CcRRLabelerClass))
39
typedef struct _CcRRLabeler CcRRLabeler;
40
typedef struct _CcRRLabelerClass CcRRLabelerClass;
41
typedef struct _CcRRLabelerPrivate CcRRLabelerPrivate;
47
CcRRLabelerPrivate *priv;
50
struct _CcRRLabelerClass {
51
GObjectClass parent_class;
54
GType cc_rr_labeler_get_type (void);
56
CcRRLabeler *cc_rr_labeler_new (GnomeRRConfig *config);
58
void cc_rr_labeler_show (CcRRLabeler *labeler);
60
void cc_rr_labeler_hide (CcRRLabeler *labeler);
62
void cc_rr_labeler_get_rgba_for_output (CcRRLabeler *labeler, GnomeRROutputInfo *output, GdkRGBA *rgba_out);