Line |
Branch |
Exec |
Source |
1 |
|
|
/* -*- mode: c; style: linux -*- |
2 |
|
|
* |
3 |
|
|
* Copyright (C) 2019 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 <adwaita.h> |
24 |
|
|
#include "cc-display-config.h" |
25 |
|
|
|
26 |
|
|
G_BEGIN_DECLS |
27 |
|
|
|
28 |
|
|
#define CC_TYPE_DISPLAY_SETTINGS cc_display_settings_get_type () |
29 |
|
✗ |
G_DECLARE_FINAL_TYPE (CcDisplaySettings, cc_display_settings, CC, DISPLAY_SETTINGS, GtkBox); |
30 |
|
|
|
31 |
|
|
CcDisplaySettings* cc_display_settings_new (void); |
32 |
|
|
|
33 |
|
|
gboolean cc_display_settings_get_has_accelerometer (CcDisplaySettings *settings); |
34 |
|
|
void cc_display_settings_set_has_accelerometer (CcDisplaySettings *settings, |
35 |
|
|
gboolean has_accelerometer); |
36 |
|
|
CcDisplayConfig* cc_display_settings_get_config (CcDisplaySettings *settings); |
37 |
|
|
void cc_display_settings_set_config (CcDisplaySettings *settings, |
38 |
|
|
CcDisplayConfig *config); |
39 |
|
|
CcDisplayMonitor* cc_display_settings_get_selected_output (CcDisplaySettings *settings); |
40 |
|
|
void cc_display_settings_set_selected_output (CcDisplaySettings *settings, |
41 |
|
|
CcDisplayMonitor *output); |
42 |
|
|
void cc_display_settings_refresh_layout (CcDisplaySettings *settings, |
43 |
|
|
gboolean collapsed); |
44 |
|
|
void cc_display_settings_set_multimonitor (CcDisplaySettings *self, |
45 |
|
|
gboolean multimonitor); |
46 |
|
|
|
47 |
|
|
G_END_DECLS |
48 |
|
|
|
49 |
|
|
|