Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gdkmonitor.h
Go to the documentation of this file.
1/*
2 * gdkmonitor.h
3 *
4 * Copyright 2016 Red Hat, Inc.
5 *
6 * Matthias Clasen <mclasen@redhat.com>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either
11 * version 2 of the License, or (at your option) any later version.
12 *
13 * This 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 this library. If not, see <http://www.gnu.org/licenses/>.
20 */
21
22#pragma once
23
24#if !defined (__GDK_H_INSIDE__) && !defined (GTK_COMPILATION)
25#error "Only <gdk/gdk.h> can be included directly."
26#endif
27
28#include <gdk/gdktypes.h>
29
31
32#define GDK_TYPE_MONITOR (gdk_monitor_get_type ())
33#define GDK_MONITOR(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_MONITOR, GdkMonitor))
34#define GDK_IS_MONITOR(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_MONITOR))
35
36typedef struct _GdkMonitor GdkMonitor;
37typedef struct _GdkMonitorClass GdkMonitorClass;
38
39/**
40 * GdkSubpixelLayout:
41 * @GDK_SUBPIXEL_LAYOUT_UNKNOWN: The layout is not known
42 * @GDK_SUBPIXEL_LAYOUT_NONE: Not organized in this way
43 * @GDK_SUBPIXEL_LAYOUT_HORIZONTAL_RGB: The layout is horizontal, the order is RGB
44 * @GDK_SUBPIXEL_LAYOUT_HORIZONTAL_BGR: The layout is horizontal, the order is BGR
45 * @GDK_SUBPIXEL_LAYOUT_VERTICAL_RGB: The layout is vertical, the order is RGB
46 * @GDK_SUBPIXEL_LAYOUT_VERTICAL_BGR: The layout is vertical, the order is BGR
47 *
48 * This enumeration describes how the red, green and blue components
49 * of physical pixels on an output device are laid out.
50 */
59
62
67 GdkRectangle *geometry);
75const char * gdk_monitor_get_model (GdkMonitor *monitor);
77const char * gdk_monitor_get_connector (GdkMonitor *monitor);
90
92
94
#define GDK_AVAILABLE_IN_4_10
#define GDK_AVAILABLE_IN_4_14
#define GDK_AVAILABLE_IN_ALL
GDK_AVAILABLE_IN_ALL void gdk_monitor_get_geometry(GdkMonitor *monitor, GdkRectangle *geometry)
GDK_AVAILABLE_IN_ALL const char * gdk_monitor_get_manufacturer(GdkMonitor *monitor)
GDK_AVAILABLE_IN_ALL GType gdk_monitor_get_type(void) G_GNUC_CONST
GDK_AVAILABLE_IN_4_10 const char * gdk_monitor_get_description(GdkMonitor *monitor)
GDK_AVAILABLE_IN_ALL int gdk_monitor_get_scale_factor(GdkMonitor *monitor)
GDK_AVAILABLE_IN_ALL gboolean gdk_monitor_is_valid(GdkMonitor *monitor)
struct _GdkMonitorClass GdkMonitorClass
Definition gdkmonitor.h:37
GDK_AVAILABLE_IN_ALL GdkSubpixelLayout gdk_monitor_get_subpixel_layout(GdkMonitor *monitor)
GDK_AVAILABLE_IN_ALL int gdk_monitor_get_height_mm(GdkMonitor *monitor)
GdkSubpixelLayout
Definition gdkmonitor.h:51
@ GDK_SUBPIXEL_LAYOUT_UNKNOWN
Definition gdkmonitor.h:52
@ GDK_SUBPIXEL_LAYOUT_NONE
Definition gdkmonitor.h:53
@ GDK_SUBPIXEL_LAYOUT_HORIZONTAL_RGB
Definition gdkmonitor.h:54
@ GDK_SUBPIXEL_LAYOUT_VERTICAL_RGB
Definition gdkmonitor.h:56
@ GDK_SUBPIXEL_LAYOUT_HORIZONTAL_BGR
Definition gdkmonitor.h:55
@ GDK_SUBPIXEL_LAYOUT_VERTICAL_BGR
Definition gdkmonitor.h:57
GDK_AVAILABLE_IN_ALL int gdk_monitor_get_width_mm(GdkMonitor *monitor)
GDK_AVAILABLE_IN_4_14 double gdk_monitor_get_scale(GdkMonitor *monitor)
GDK_AVAILABLE_IN_ALL GdkDisplay * gdk_monitor_get_display(GdkMonitor *monitor)
GDK_AVAILABLE_IN_ALL const char * gdk_monitor_get_connector(GdkMonitor *monitor)
GDK_AVAILABLE_IN_ALL const char * gdk_monitor_get_model(GdkMonitor *monitor)
GDK_AVAILABLE_IN_ALL int gdk_monitor_get_refresh_rate(GdkMonitor *monitor)
struct _GdkMonitor GdkMonitor
Definition gdkmonitor.h:36
struct _GdkDisplay GdkDisplay
Definition gdktypes.h:90
#define G_END_DECLS
Definition gmacros.h:910
#define G_BEGIN_DECLS
Definition gmacros.h:909
#define G_GNUC_CONST
Definition gmacros.h:637
#define G_DEFINE_AUTOPTR_CLEANUP_FUNC(TypeName, func)
Definition gmacros.h:1400
GOBJECT_AVAILABLE_IN_ALL void g_object_unref(gpointer object)
gsize GType
Definition gtype.h:427
gint gboolean
Definition gtypes.h:56