mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-14 06:10:21 +00:00
macos: add API to get monitor colorspace
This commit is contained in:
parent
8ea0a4fc50
commit
473aceea68
@ -29,10 +29,11 @@
|
|||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
GdkMacosMonitor *_gdk_macos_monitor_new (GdkMacosDisplay *display,
|
GdkMacosMonitor *_gdk_macos_monitor_new (GdkMacosDisplay *display,
|
||||||
CGDirectDisplayID screen_id);
|
CGDirectDisplayID screen_id);
|
||||||
CGDirectDisplayID _gdk_macos_monitor_get_screen_id (GdkMacosMonitor *self);
|
CGDirectDisplayID _gdk_macos_monitor_get_screen_id (GdkMacosMonitor *self);
|
||||||
gboolean _gdk_macos_monitor_reconfigure (GdkMacosMonitor *self);
|
gboolean _gdk_macos_monitor_reconfigure (GdkMacosMonitor *self);
|
||||||
|
CGColorSpaceRef _gdk_macos_monitor_copy_colorspace (GdkMacosMonitor *self);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
|
@ -298,3 +298,11 @@ _gdk_macos_monitor_get_screen_id (GdkMacosMonitor *self)
|
|||||||
|
|
||||||
return self->screen_id;
|
return self->screen_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CGColorSpaceRef
|
||||||
|
_gdk_macos_monitor_copy_colorspace (GdkMacosMonitor *self)
|
||||||
|
{
|
||||||
|
g_return_val_if_fail (GDK_IS_MACOS_MONITOR (self), NULL);
|
||||||
|
|
||||||
|
return CGDisplayCopyColorSpace (self->screen_id);
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user