type Gdk_Screen_Record is new GObject_Record with null record;
type Gdk_Screen is access all Gdk_Screen_Record'Class;
Font_Options_Property : constant Glib.Properties.Property_String := Glib.Properties.Build ("font-options");
Resolution_Property : constant Glib.Properties.Property_Double;
Signal_Composited_Changed : constant Glib.Signal_Name := "composited-changed";
Signal_Monitors_Changed : constant Glib.Signal_Name := "monitors-changed";
Signal_Size_Changed : constant Glib.Signal_Name := "size-changed";
function Get_Type return Glib.GType;
function Get_Active_Window
( | Screen | : not null access Gdk_Screen_Record) return Gdk.Gdk_Window; |
function Get_Display
( | Screen | : not null access Gdk_Screen_Record) return Gdk.Display.Gdk_Display; |
function Get_Font_Options
( | Screen | : not null access Gdk_Screen_Record) return Cairo.Cairo_Font_Options; |
procedure Set_Font_Options
( | Screen | : not null access Gdk_Screen_Record; |
Options | : in out Cairo.Cairo_Font_Options); |
function Get_Height
( | Screen | : not null access Gdk_Screen_Record) return Gint; |
function Get_Height_Mm
( | Screen | : not null access Gdk_Screen_Record) return Gint; |
function Get_Monitor_At_Point
( | Screen | : not null access Gdk_Screen_Record; |
X | : Gint; | |
Y | : Gint) return Gint; |
function Get_Monitor_At_Window
( | Screen | : not null access Gdk_Screen_Record; |
Window | : Gdk.Gdk_Window) return Gint; |
procedure Get_Monitor_Geometry
( | Screen | : not null access Gdk_Screen_Record; |
Monitor_Num | : Gint; | |
Dest | : out Gdk.Rectangle.Gdk_Rectangle); |
function Get_Monitor_Height_Mm
( | Screen | : not null access Gdk_Screen_Record; |
Monitor_Num | : Gint) return Gint; |
function Get_Monitor_Plug_Name
( | Screen | : not null access Gdk_Screen_Record; |
Monitor_Num | : Gint) return UTF8_String; |
function Get_Monitor_Width_Mm
( | Screen | : not null access Gdk_Screen_Record; |
Monitor_Num | : Gint) return Gint; |
procedure Get_Monitor_Workarea
( | Screen | : not null access Gdk_Screen_Record; |
Monitor_Num | : Gint; | |
Dest | : out Gdk.Rectangle.Gdk_Rectangle); |
function Get_N_Monitors
( | Screen | : not null access Gdk_Screen_Record) return Gint; |
function Get_Number
( | Screen | : not null access Gdk_Screen_Record) return Gint; |
function Get_Primary_Monitor
( | Screen | : not null access Gdk_Screen_Record) return Gint; |
function Get_Resolution
( | Screen | : not null access Gdk_Screen_Record) return Gdouble; |
procedure Set_Resolution
( | Screen | : not null access Gdk_Screen_Record; |
Dpi | : Gdouble); |
function Get_Rgba_Visual
( | Screen | : not null access Gdk_Screen_Record) return Gdk.Visual.Gdk_Visual; |
function Get_Root_Window
( | Screen | : not null access Gdk_Screen_Record) return Gdk.Gdk_Window; |
function Get_System_Visual
( | Screen | : not null access Gdk_Screen_Record) return Gdk.Visual.Gdk_Visual; |
function Get_Width
( | Screen | : not null access Gdk_Screen_Record) return Gint; |
function Get_Width_Mm
( | Screen | : not null access Gdk_Screen_Record) return Gint; |
function Is_Composited
( | Screen | : not null access Gdk_Screen_Record) return Boolean; |
function Make_Display_Name
( | Screen | : not null access Gdk_Screen_Record) return UTF8_String; |
function Get_Screen
( | Display | : access Gdk.Display.Gdk_Display_Record'Class; |
Screen_Num | : Glib.Gint) return Gdk_Screen; |
function Get_Default_Screen
( | Display | : access Gdk.Display.Gdk_Display_Record'Class) return Gdk_Screen; |
procedure Get_Pointer
( | Display | : access Gdk.Display.Gdk_Display_Record'Class; |
Screen | : out Gdk_Screen; | |
X | : out Glib.Gint; | |
Y | : out Glib.Gint; | |
Mask | : out Gdk.Types.Gdk_Modifier_Type); |
procedure Warp_Pointer
( | Display | : access Gdk.Display.Gdk_Display_Record'Class; |
Screen | : access Gdk_Screen_Record; | |
X | : Glib.Gint; | |
Y | : Glib.Gint); |
function Get_Default return Gdk_Screen;
function Height_Mm return Gint;
function Width_Mm return Gint;
Gdk.Screen.Gdk_Screen objects are the GDK representation of the screen on which windows can be displayed and on which the pointer moves. X originally identified screens with physical screens, but nowadays it is more common to have a single Gdk.Screen.Gdk_Screen which combines several physical monitors (see Gdk.Screen.Get_N_Monitors).
GdkScreen is used throughout GDK and GTK+ to specify which screen the top level windows are to be displayed on. it is also used to query the screen specification and default settings such as the default visual (gdk_screen_get_system_visual), the dimensions of the physical monitors (gdk_screen_get_monitor_geometry), etc.