1Gtk2::Gdk::Screen(3)  User Contributed Perl Documentation Gtk2::Gdk::Screen(3)
2
3
4

NAME

6       Gtk2::Gdk::Screen - wrapper for GdkScreen
7

HIERARCHY

9         Glib::Object
10         +----Gtk2::Gdk::Screen
11

METHODS

13   window = $screen->get_active_window
14       Since: gtk+ 2.10
15
16   $screen->broadcast_client_message ($event)
17       ·   $event (Gtk2::Gdk::Event)
18
19   colormap = $screen->get_default_colormap
20   $screen->set_default_colormap ($colormap)
21       ·   $colormap (Gtk2::Gdk::Colormap)
22
23   screen or undef = Gtk2::Gdk::Screen->get_default
24   display = $screen->get_display
25   fontoptions or undef = $screen->get_font_options
26       Since: gtk+ 2.10
27
28   $screen->set_font_options ($options)
29       ·   $options (Cairo::FontOptions or undef)
30
31       Since: gtk+ 2.10
32
33   integer = $screen->get_height
34   integer = $screen->get_height_mm
35   boolean = $screen->is_composited
36       Since: gtk+ 2.10
37
38   list = $screen->list_visuals
39       Returns a list of Gtk2::Gdk::Visual's.
40
41   string = $screen->make_display_name
42   integer = $screen->get_monitor_at_point ($x, $y)
43       ·   $x (integer)
44
45       ·   $y (integer)
46
47   integer = $screen->get_monitor_at_window ($window)
48       ·   $window (Gtk2::Gdk::Window)
49
50   rectangle = $screen->get_monitor_geometry ($monitor_num)
51       ·   $monitor_num (integer)
52
53   integer = $screen->get_monitor_height_mm ($monitor_num)
54       ·   $monitor_num (integer)
55
56       Since: gtk+ 2.14
57
58   unsigned = $screen->get_monitor_output ($monitor_num)
59       ·   $monitor_num (integer)
60
61       Since: gtk+ 2.14
62
63   string or undef = $screen->get_monitor_plug_name ($monitor_num)
64       ·   $monitor_num (integer)
65
66       Since: gtk+ 2.14
67
68   integer = $screen->get_monitor_width_mm ($monitor_num)
69       ·   $monitor_num (integer)
70
71       Since: gtk+ 2.14
72
73   integer = $screen->get_n_monitors
74   integer = $screen->get_number
75   integer = $screen->get_primary_monitor
76       Since: gtk+ 2.20
77
78   double = $screen->get_resolution
79       Since: gtk+ 2.10
80
81   $screen->set_resolution ($dpi)
82       ·   $dpi (double)
83
84       Since: gtk+ 2.10
85
86   colormap = $screen->get_rgb_colormap
87   visual = $screen->get_rgb_visual
88   colormap or undef = $screen->get_rgba_colormap
89       Since: gtk+ 2.8
90
91   visual or undef = $screen->get_rgba_visual
92       Since: gtk+ 2.8
93
94   window = $screen->get_root_window
95   integer = $screen->get_screen_number
96       Since: gtk+ 2.2
97
98   scalar = $screen->get_setting ($name)
99       ·   $name (string)
100
101   boolean = $screen->supports_net_wm_hint ($property)
102       ·   $property (Gtk2::Gdk::Atom)
103
104       Since: gtk+ 2.2
105
106   colormap = $screen->get_system_colormap
107   visual = $screen->get_system_visual
108   list = $screen->get_toplevel_windows
109       Returns a list of Gtk2::Gdk::Window's.
110
111   integer = $screen->get_width
112   integer = $screen->get_width_mm
113   string = $screen->get_window_manager_name
114       Since: gtk+ 2.2
115
116   list = $screen->get_window_stack
117       Since: gtk+ 2.10
118

PROPERTIES

120       'font-options' (gpointer : default 0 : readable / writable / private)
121           The default font options for the screen
122
123       'resolution' (double : default -1 : readable / writable / private)
124           The resolution for fonts on the screen
125

SIGNALS

127       composited-changed (Gtk2::Gdk::Screen)
128       monitors-changed (Gtk2::Gdk::Screen)
129       size-changed (Gtk2::Gdk::Screen)
130

SEE ALSO

132       Gtk2, Glib::Object
133
135       Copyright (C) 2003-2011 by the gtk2-perl team.
136
137       This software is licensed under the LGPL.  See Gtk2 for a full notice.
138
139
140
141perl v5.30.0                      2019-07-26              Gtk2::Gdk::Screen(3)
Impressum