1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133 | /*
* cdkscreen.h
*
* Copyright 2001 Sun Microsystems Inc.
*
* Erwann Chenede <erwann.chenede@sun.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library 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
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __CDK_SCREEN_H__
#define __CDK_SCREEN_H__
#if !defined (__CDK_H_INSIDE__) && !defined (CDK_COMPILATION)
#error "Only <cdk/cdk.h> can be included directly."
#endif
#include <cairo.h>
#include <cdk/cdkversionmacros.h>
#include <cdk/cdktypes.h>
#include <cdk/cdkdisplay.h>
G_BEGIN_DECLS
#define CDK_TYPE_SCREEN (cdk_screen_get_type ())
#define CDK_SCREEN(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), CDK_TYPE_SCREEN, CdkScreen))
#define CDK_IS_SCREEN(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), CDK_TYPE_SCREEN))
CDK_AVAILABLE_IN_ALL
GType cdk_screen_get_type (void) G_GNUC_CONST;
CDK_AVAILABLE_IN_ALL
CdkVisual * cdk_screen_get_system_visual (CdkScreen *screen);
CDK_AVAILABLE_IN_ALL
CdkVisual * cdk_screen_get_rgba_visual (CdkScreen *screen);
CDK_AVAILABLE_IN_ALL
gboolean cdk_screen_is_composited (CdkScreen *screen);
CDK_AVAILABLE_IN_ALL
CdkWindow * cdk_screen_get_root_window (CdkScreen *screen);
CDK_AVAILABLE_IN_ALL
CdkDisplay * cdk_screen_get_display (CdkScreen *screen);
CDK_DEPRECATED_IN_3_22
gint cdk_screen_get_number (CdkScreen *screen);
CDK_DEPRECATED_IN_3_22
gint cdk_screen_get_width (CdkScreen *screen);
CDK_DEPRECATED_IN_3_22
gint cdk_screen_get_height (CdkScreen *screen);
CDK_DEPRECATED_IN_3_22
gint cdk_screen_get_width_mm (CdkScreen *screen);
CDK_DEPRECATED_IN_3_22
gint cdk_screen_get_height_mm (CdkScreen *screen);
CDK_AVAILABLE_IN_ALL
GList * cdk_screen_list_visuals (CdkScreen *screen);
CDK_AVAILABLE_IN_ALL
GList * cdk_screen_get_toplevel_windows (CdkScreen *screen);
CDK_DEPRECATED_IN_3_22
gchar * cdk_screen_make_display_name (CdkScreen *screen);
CDK_DEPRECATED_IN_3_22_FOR(cdk_display_get_n_monitors)<--- There is an unknown macro here somewhere. Configuration is required. If CDK_DEPRECATED_IN_3_22_FOR is a macro then please configure it.
gint cdk_screen_get_n_monitors (CdkScreen *screen);
CDK_DEPRECATED_IN_3_22_FOR(cdk_display_get_primary_monitor)
gint cdk_screen_get_primary_monitor (CdkScreen *screen);
CDK_DEPRECATED_IN_3_22_FOR(cdk_monitor_get_geometry)
void cdk_screen_get_monitor_geometry (CdkScreen *screen,
gint monitor_num,
CdkRectangle *dest);
CDK_DEPRECATED_IN_3_22_FOR(cdk_monitor_get_workarea)
void cdk_screen_get_monitor_workarea (CdkScreen *screen,
gint monitor_num,
CdkRectangle *dest);
CDK_AVAILABLE_IN_ALL
gint cdk_screen_get_monitor_at_point (CdkScreen *screen,
gint x,
gint y);
CDK_AVAILABLE_IN_ALL
gint cdk_screen_get_monitor_at_window (CdkScreen *screen,
CdkWindow *window);
CDK_DEPRECATED_IN_3_22_FOR(cdk_monitor_get_width_mm)
gint cdk_screen_get_monitor_width_mm (CdkScreen *screen,
gint monitor_num);
CDK_DEPRECATED_IN_3_22_FOR(cdk_monitor_get_height_mm)
gint cdk_screen_get_monitor_height_mm (CdkScreen *screen,
gint monitor_num);
CDK_DEPRECATED_IN_3_22_FOR(cdk_monitor_get_model)
gchar * cdk_screen_get_monitor_plug_name (CdkScreen *screen,
gint monitor_num);
CDK_DEPRECATED_IN_3_22_FOR(cdk_monitor_get_scale_factor)
gint cdk_screen_get_monitor_scale_factor (CdkScreen *screen,
gint monitor_num);
CDK_AVAILABLE_IN_ALL
CdkScreen *cdk_screen_get_default (void);
CDK_AVAILABLE_IN_ALL
gboolean cdk_screen_get_setting (CdkScreen *screen,
const gchar *name,
GValue *value);
CDK_AVAILABLE_IN_ALL
void cdk_screen_set_font_options (CdkScreen *screen,
const cairo_font_options_t *options);
CDK_AVAILABLE_IN_ALL
const cairo_font_options_t *cdk_screen_get_font_options (CdkScreen *screen);
CDK_AVAILABLE_IN_ALL
void cdk_screen_set_resolution (CdkScreen *screen,
gdouble dpi);
CDK_AVAILABLE_IN_ALL
gdouble cdk_screen_get_resolution (CdkScreen *screen);
CDK_DEPRECATED_IN_3_22
CdkWindow *cdk_screen_get_active_window (CdkScreen *screen);
CDK_AVAILABLE_IN_ALL
GList *cdk_screen_get_window_stack (CdkScreen *screen);
G_END_DECLS
#endif /* __CDK_SCREEN_H__ */
|