Line |
Branch |
Exec |
Source |
1 |
|
|
/* -*- mode: c; style: linux -*- |
2 |
|
|
* |
3 |
|
|
* Copyright (C) 2017 Red Hat, Inc. |
4 |
|
|
* |
5 |
|
|
* Written by: Benjamin Berg <bberg@redhat.com> |
6 |
|
|
* |
7 |
|
|
* This program is free software; you can redistribute it and/or modify |
8 |
|
|
* it under the terms of the GNU General Public License as published by |
9 |
|
|
* the Free Software Foundation; either version 2, or (at your option) |
10 |
|
|
* any later version. |
11 |
|
|
* |
12 |
|
|
* This program is distributed in the hope that it will be useful, |
13 |
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 |
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 |
|
|
* GNU General Public License for more details. |
16 |
|
|
* |
17 |
|
|
* You should have received a copy of the GNU General Public License |
18 |
|
|
* along with this program; if not, see <http://www.gnu.org/licenses/>. |
19 |
|
|
*/ |
20 |
|
|
|
21 |
|
|
#pragma once |
22 |
|
|
|
23 |
|
|
#include <gtk/gtk.h> |
24 |
|
|
#include "cc-display-config.h" |
25 |
|
|
|
26 |
|
|
G_BEGIN_DECLS |
27 |
|
|
|
28 |
|
|
#define CC_TYPE_DISPLAY_ARRANGEMENT cc_display_arrangement_get_type () |
29 |
|
✗ |
G_DECLARE_FINAL_TYPE (CcDisplayArrangement, cc_display_arrangement, CC, DISPLAY_ARRANGEMENT, GtkDrawingArea); |
30 |
|
|
|
31 |
|
|
CcDisplayArrangement* cc_display_arrangement_new (CcDisplayConfig *config); |
32 |
|
|
|
33 |
|
|
CcDisplayConfig* cc_display_arrangement_get_config (CcDisplayArrangement *self); |
34 |
|
|
void cc_display_arrangement_set_config (CcDisplayArrangement *self, |
35 |
|
|
CcDisplayConfig *config); |
36 |
|
|
|
37 |
|
|
CcDisplayMonitor* cc_display_arrangement_get_selected_output (CcDisplayArrangement *arr); |
38 |
|
|
void cc_display_arrangement_set_selected_output (CcDisplayArrangement *arr, |
39 |
|
|
CcDisplayMonitor *output); |
40 |
|
|
|
41 |
|
|
/* This is a bit of an odd-ball, but it currently makes sense to have it with |
42 |
|
|
* the arrangement widget where the snapping code lives. */ |
43 |
|
|
void cc_display_config_snap_outputs (CcDisplayConfig *config); |
44 |
|
|
|
45 |
|
|
G_END_DECLS |
46 |
|
|
|
47 |
|
|
|