~ubuntu-branches/ubuntu/trusty/unity-control-center/trusty

« back to all changes in this revision

Viewing changes to panels/display/cc-rr-labeler.h

  • Committer: Package Import Robot
  • Author(s): Robert Ancell
  • Date: 2014-01-08 16:29:18 UTC
  • Revision ID: package-import@ubuntu.com-20140108162918-g29dd08tr913y2qh
Tags: upstream-14.04.0
ImportĀ upstreamĀ versionĀ 14.04.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* gnome-rr-labeler.h - Utility to label monitors to identify them
 
2
 * while they are being configured.
 
3
 *
 
4
 * Copyright 2008, Novell, Inc.
 
5
 *
 
6
 * This file is part of the Gnome Library.
 
7
 *
 
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.
 
12
 *
 
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.
 
17
 *
 
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.
 
22
 *
 
23
 * Author: Federico Mena-Quintero <federico@novell.com>
 
24
 */
 
25
 
 
26
#ifndef CC_RR_LABELER_H
 
27
#define CC_RR_LABELER_H
 
28
 
 
29
#define GNOME_DESKTOP_USE_UNSTABLE_API
 
30
#include <libgnome-desktop/gnome-rr-config.h>
 
31
 
 
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))
 
38
 
 
39
typedef struct _CcRRLabeler CcRRLabeler;
 
40
typedef struct _CcRRLabelerClass CcRRLabelerClass;
 
41
typedef struct _CcRRLabelerPrivate CcRRLabelerPrivate;
 
42
 
 
43
struct _CcRRLabeler {
 
44
        GObject parent;
 
45
 
 
46
        /*< private >*/
 
47
        CcRRLabelerPrivate *priv;
 
48
};
 
49
 
 
50
struct _CcRRLabelerClass {
 
51
        GObjectClass parent_class;
 
52
};
 
53
 
 
54
GType cc_rr_labeler_get_type (void);
 
55
 
 
56
CcRRLabeler *cc_rr_labeler_new (GnomeRRConfig *config);
 
57
 
 
58
void cc_rr_labeler_show (CcRRLabeler *labeler);
 
59
 
 
60
void cc_rr_labeler_hide (CcRRLabeler *labeler);
 
61
 
 
62
void cc_rr_labeler_get_rgba_for_output (CcRRLabeler *labeler, GnomeRROutputInfo *output, GdkRGBA *rgba_out);
 
63
 
 
64
#endif