/src/wrappers/gdk/library/gdk_screen.e

http://github.com/tybor/Liberty · Specman e · 916 lines · 141 code · 291 blank · 484 comment · 2 complexity · 1a80e260d6dd01f02e29e0d5c1e2ea0d MD5 · raw file

  1. indexing
  2. description: "GdkScreen -- Object representing a physical screen."
  3. copyright: "[
  4. Copyright (C) 2006 Paolo Redaelli, GTK+ team
  5. This library is free software; you can redistribute it and/or
  6. modify it under the terms of the GNU Lesser General Public License
  7. as published by the Free Software Foundation; either version 2.1 of
  8. the License, or (at your option) any later version.
  9. This library is distributed in the hopeOA that it will be useful, but
  10. WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. Lesser General Public License for more details.
  13. You should have received a copy of the GNU Lesser General Public
  14. License along with this library; if not, write to the Free Software
  15. Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  16. 02110-1301 USA
  17. ]"
  18. -- GdkScreen objects are the GDK representation of a physical
  19. -- screen. It is used throughout GDK and GTK+ to specify
  20. -- which screen the top level windows are to be displayed
  21. -- on. It is also used to query the screen specification and
  22. -- default settings such as the default colormap
  23. -- (`default_colormap'), the screen width (`width'), etc.
  24. -- Note that a screen may consist of multiple monitors which
  25. -- are merged to form a large screen area.
  26. class GDK_SCREEN
  27. inherit G_OBJECT
  28. insert
  29. EXCEPTIONS
  30. undefine copy, is_equal end
  31. creation make, from_external_pointer
  32. feature {} -- Creation
  33. make is
  34. -- the default screen for the default display. (See
  35. -- `GDK_DISPLAY.default')
  36. -- Note: if there is no default display then a
  37. -- "NoDefaultDisplay" exception is raised.
  38. do
  39. from_external_pointer(gdk_screen_get_default)
  40. end
  41. feature
  42. -- default_colormap: GDK_COLORMAP is
  43. -- the default colormap for screen.
  44. -- do
  45. -- create Result.from_external_pointer
  46. -- (gdk_screen_get_default_colormap(handle))
  47. -- end
  48. -- set_default_colormap (a_colormap: GDK_COLORMAP)
  49. -- void gdk_screen_set_default_colormap (GdkScreen *screen,
  50. -- GdkColormap *colormap);
  51. -- Sets the default colormap for screen.
  52. -- screen : a GdkScreen
  53. -- colormap : a GdkColormap
  54. -- Since 2.2
  55. -- --------------------------------------------------------------------------
  56. -- gdk_screen_get_system_colormap ()
  57. -- GdkColormap* gdk_screen_get_system_colormap (GdkScreen *screen);
  58. -- Gets the system's default colormap for screen
  59. -- screen : a GdkScreen
  60. -- Returns : the default colormap for screen.
  61. -- Since 2.2
  62. -- --------------------------------------------------------------------------
  63. -- gdk_screen_get_system_visual ()
  64. -- GdkVisual* gdk_screen_get_system_visual (GdkScreen *screen);
  65. -- Get the system's default visual for screen. This is the visual for the
  66. -- root window of the display. The return value should not be freed.
  67. -- screen : a GdkScreen.
  68. -- Returns : the system visual
  69. -- Since 2.2
  70. -- --------------------------------------------------------------------------
  71. -- gdk_screen_get_rgb_colormap ()
  72. -- GdkColormap* gdk_screen_get_rgb_colormap (GdkScreen *screen);
  73. -- Gets the preferred colormap for rendering image data on screen. Not a very
  74. -- useful function; historically, GDK could only render RGB image data to one
  75. -- colormap and visual, but in the current version it can render to any
  76. -- colormap and visual. So there's no need to call this function.
  77. -- screen : a GdkScreen.
  78. -- Returns : the preferred colormap
  79. -- Since 2.2
  80. -- --------------------------------------------------------------------------
  81. -- gdk_screen_get_rgb_visual ()
  82. -- GdkVisual* gdk_screen_get_rgb_visual (GdkScreen *screen);
  83. -- Gets a "preferred visual" chosen by GdkRGB for rendering image data on
  84. -- screen. In previous versions of GDK, this was the only visual GdkRGB could
  85. -- use for rendering. In current versions, it's simply the visual GdkRGB
  86. -- would have chosen as the optimal one in those previous versions. GdkRGB
  87. -- can now render to drawables with any visual.
  88. -- screen : a GdkScreen
  89. -- Returns : The GdkVisual chosen by GdkRGB.
  90. -- Since 2.2
  91. -- --------------------------------------------------------------------------
  92. -- gdk_screen_get_rgba_colormap ()
  93. -- GdkColormap* gdk_screen_get_rgba_colormap (GdkScreen *screen);
  94. -- Gets a colormap to use for creating windows or pixmaps with an alpha
  95. -- channel. The windowing system on which GTK+ is running may not support
  96. -- this capability, in which case NULL will be returned. Even if a non-NULL
  97. -- value is returned, its possible that the window's alpha channel won't be
  98. -- honored when displaying the window on the screen: in particular, for X an
  99. -- appropriate windowing manager and compositing manager must be running to
  100. -- provide appropriate display.
  101. -- screen : a GdkScreen.
  102. -- Returns : a colormap to use for windows with an alpha channel or NULL if
  103. -- the capability is not available.
  104. -- Since 2.8
  105. -- --------------------------------------------------------------------------
  106. -- gdk_screen_get_rgba_visual ()
  107. -- GdkVisual* gdk_screen_get_rgba_visual (GdkScreen *screen);
  108. -- Gets a visual to use for creating windows or pixmaps with an alpha
  109. -- channel. See the docs for gdk_screen_get_rgba_colormap() for caveats.
  110. -- screen : a GdkScreen
  111. -- Returns : a visual to use for windows with an alpha channel or NULL if the
  112. -- capability is not available.
  113. -- Since 2.8
  114. -- --------------------------------------------------------------------------
  115. -- gdk_screen_is_composited ()
  116. -- gboolean gdk_screen_is_composited (GdkScreen *screen);
  117. -- Returns whether windows with an RGBA visual can reasonably be expected to
  118. -- have their alpha channel drawn correctly on the screen.
  119. -- On X11 this function returns whether a compositing manager is compositing
  120. -- screen.
  121. -- screen : a GdkScreen
  122. -- Returns : Whether windows with RGBA visuals can reasonably be expected to
  123. -- have their alpha channels drawn correctly on the screen.
  124. -- Since 2.10
  125. -- --------------------------------------------------------------------------
  126. -- gdk_screen_get_root_window ()
  127. -- GdkWindow* gdk_screen_get_root_window (GdkScreen *screen);
  128. -- Gets the root window of screen.
  129. -- screen : a GdkScreen
  130. -- Returns : the root window
  131. -- Since 2.2
  132. -- --------------------------------------------------------------------------
  133. -- gdk_screen_get_display ()
  134. -- GdkDisplay* gdk_screen_get_display (GdkScreen *screen);
  135. -- Gets the display to which the screen belongs.
  136. -- screen : a GdkScreen
  137. -- Returns : the display to which screen belongs
  138. -- Since 2.2
  139. -- --------------------------------------------------------------------------
  140. -- gdk_screen_get_number ()
  141. -- gint gdk_screen_get_number (GdkScreen *screen);
  142. -- Gets the index of screen among the screens in the display to which it
  143. -- belongs. (See gdk_screen_get_display())
  144. -- screen : a GdkScreen
  145. -- Returns : the index
  146. -- Since 2.2
  147. -- --------------------------------------------------------------------------
  148. -- gdk_screen_get_width ()
  149. -- gint gdk_screen_get_width (GdkScreen *screen);
  150. -- Gets the width of screen in pixels
  151. -- screen : a GdkScreen
  152. -- Returns : the width of screen in pixels.
  153. -- Since 2.2
  154. -- --------------------------------------------------------------------------
  155. -- gdk_screen_get_height ()
  156. -- gint gdk_screen_get_height (GdkScreen *screen);
  157. -- Gets the height of screen in pixels
  158. -- screen : a GdkScreen
  159. -- Returns : the height of screen in pixels.
  160. -- Since 2.2
  161. -- --------------------------------------------------------------------------
  162. -- gdk_screen_get_width_mm ()
  163. -- gint gdk_screen_get_width_mm (GdkScreen *screen);
  164. -- Gets the width of screen in millimeters. Note that on some X servers this
  165. -- value will not be correct.
  166. -- screen : a GdkScreen
  167. -- Returns : the width of screen in millimeters.
  168. -- Since 2.2
  169. -- --------------------------------------------------------------------------
  170. -- gdk_screen_get_height_mm ()
  171. -- gint gdk_screen_get_height_mm (GdkScreen *screen);
  172. -- Returns the height of screen in millimeters. Note that on some X servers
  173. -- this value will not be correct.
  174. -- screen : a GdkScreen
  175. -- Returns : the heigth of screen in millimeters.
  176. -- Since 2.2
  177. -- --------------------------------------------------------------------------
  178. -- gdk_screen_list_visuals ()
  179. -- GList* gdk_screen_list_visuals (GdkScreen *screen);
  180. -- Lists the available visuals for the specified screen. A visual describes a
  181. -- hardware image data format. For example, a visual might support 24-bit
  182. -- color, or 8-bit color, and might expect pixels to be in a certain format.
  183. -- Call g_list_free() on the return value when you're finished with it.
  184. -- screen : the relevant GdkScreen.
  185. -- Returns : a list of visuals; the list must be freed, but not its contents
  186. -- Since 2.2
  187. -- --------------------------------------------------------------------------
  188. -- gdk_screen_get_toplevel_windows ()
  189. -- GList* gdk_screen_get_toplevel_windows (GdkScreen *screen);
  190. -- Obtains a list of all toplevel windows known to GDK on the screen screen.
  191. -- A toplevel window is a child of the root window (see
  192. -- gdk_get_default_root_window()).
  193. -- The returned list should be freed with g_list_free(), but its elements
  194. -- need not be freed.
  195. -- screen : The GdkScreen where the toplevels are located.
  196. -- Returns : list of toplevel windows, free with g_list_free()
  197. -- Since 2.2
  198. -- --------------------------------------------------------------------------
  199. -- gdk_screen_make_display_name ()
  200. -- gchar* gdk_screen_make_display_name (GdkScreen *screen);
  201. -- Determines the name to pass to gdk_display_open() to get a GdkDisplay with
  202. -- this screen as the default screen.
  203. -- screen : a GdkScreen
  204. -- Returns : a newly allocated string, free with g_free()
  205. -- Since 2.2
  206. -- --------------------------------------------------------------------------
  207. -- gdk_screen_get_n_monitors ()
  208. -- gint gdk_screen_get_n_monitors (GdkScreen *screen);
  209. -- Returns the number of monitors which screen consists of.
  210. -- screen : a GdkScreen.
  211. -- Returns : number of monitors which screen consists of.
  212. -- Since 2.2
  213. -- --------------------------------------------------------------------------
  214. -- gdk_screen_get_monitor_geometry ()
  215. -- void gdk_screen_get_monitor_geometry (GdkScreen *screen,
  216. -- gint monitor_num,
  217. -- GdkRectangle *dest);
  218. -- Retrieves the GdkRectangle representing the size and position of the
  219. -- individual monitor within the entire screen area.
  220. -- Note that the size of the entire screen area can be retrieved via
  221. -- gdk_screen_get_width() and gdk_screen_get_height().
  222. -- screen : a GdkScreen.
  223. -- monitor_num : the monitor number.
  224. -- dest : a GdkRectangle to be filled with the monitor geometry
  225. -- Since 2.2
  226. -- --------------------------------------------------------------------------
  227. -- gdk_screen_get_monitor_at_point ()
  228. -- gint gdk_screen_get_monitor_at_point (GdkScreen *screen,
  229. -- gint x,
  230. -- gint y);
  231. -- Returns the monitor number in which the point (x,y) is located.
  232. -- screen : a GdkScreen.
  233. -- x : the x coordinate in the virtual screen.
  234. -- y : the y coordinate in the virtual screen.
  235. -- Returns : the monitor number in which the point (x,y) lies, or a monitor
  236. -- close to (x,y) if the point is not in any monitor.
  237. -- Since 2.2
  238. -- --------------------------------------------------------------------------
  239. -- gdk_screen_get_monitor_at_window ()
  240. -- gint gdk_screen_get_monitor_at_window
  241. -- (GdkScreen *screen,
  242. -- GdkWindow *window);
  243. -- Returns the number of the monitor in which the largest area of the
  244. -- bounding rectangle of window resides.
  245. -- screen : a GdkScreen.
  246. -- window : a GdkWindow
  247. -- Returns : the monitor number in which most of window is located, or if
  248. -- window does not intersect any monitors, a monitor, close to
  249. -- window.
  250. -- Since 2.2
  251. -- --------------------------------------------------------------------------
  252. -- gdk_screen_broadcast_client_message ()
  253. -- void gdk_screen_broadcast_client_message
  254. -- (GdkScreen *screen,
  255. -- GdkEvent *event);
  256. -- On X11, sends an X ClientMessage event to all toplevel windows on screen.
  257. -- Toplevel windows are determined by checking for the WM_STATE property, as
  258. -- described in the Inter-Client Communication Conventions Manual (ICCCM). If
  259. -- no windows are found with the WM_STATE property set, the message is sent
  260. -- to all children of the root window.
  261. -- On Windows, broadcasts a message registered with the name
  262. -- GDK_WIN32_CLIENT_MESSAGE to all top-level windows. The amount of data is
  263. -- limited to one long, i.e. four bytes.
  264. -- screen : the GdkScreen where the event will be broadcasted.
  265. -- event : the GdkEvent.
  266. -- Since 2.2
  267. -- --------------------------------------------------------------------------
  268. -- gdk_screen_get_setting ()
  269. -- gboolean gdk_screen_get_setting (GdkScreen *screen,
  270. -- const gchar *name,
  271. -- GValue *value);
  272. -- Retrieves a desktop-wide setting such as double-click time for the
  273. -- GdkScreen screen.
  274. -- FIXME needs a list of valid settings here, or a link to more information.
  275. -- screen : the GdkScreen where the setting is located
  276. -- name : the name of the setting
  277. -- value : location to store the value of the setting
  278. -- Returns : TRUE if the setting existed and a value was stored in value,
  279. -- FALSE otherwise.
  280. -- Since 2.2
  281. -- --------------------------------------------------------------------------
  282. -- gdk_screen_get_font_options ()
  283. -- const cairo_font_options_t* gdk_screen_get_font_options
  284. -- (GdkScreen *screen);
  285. -- Gets any options previously set with gdk_screen_set_font_options().
  286. -- screen : a GdkScreen
  287. -- Returns : the current font options, or NULL if no default font options
  288. -- have been set.
  289. -- Since 2.10
  290. -- --------------------------------------------------------------------------
  291. -- gdk_screen_set_font_options ()
  292. -- void gdk_screen_set_font_options (GdkScreen *screen,
  293. -- const cairo_font_options_t *options);
  294. -- Sets the default font options for the screen. These options will be set on
  295. -- any PangoContext's newly created with gdk_pango_context_get_for_screen().
  296. -- Changing the default set of font options does not affect contexts that
  297. -- have already been created.
  298. -- screen : a GdkScreen
  299. -- options : a cairo_font_options_t, or NULL to unset any previously set
  300. -- default font options.
  301. -- Since 2.10
  302. -- --------------------------------------------------------------------------
  303. -- gdk_screen_get_resolution ()
  304. -- gdouble gdk_screen_get_resolution (GdkScreen *screen);
  305. -- Gets the resolution for font handling on the screen; see
  306. -- gdk_screen_set_resolution() for full details.
  307. -- screen : a GdkScreen
  308. -- Returns : the current resolution, or -1 if no resolution has been set.
  309. -- Since 2.10
  310. -- --------------------------------------------------------------------------
  311. -- gdk_screen_set_resolution ()
  312. -- void gdk_screen_set_resolution (GdkScreen *screen,
  313. -- gdouble dpi);
  314. -- Sets the resolution for font handling on the screen. This is a scale
  315. -- factor between points specified in a PangoFontDescription and cairo units.
  316. -- The default value is 96, meaning that a 10 point font will be 13 units
  317. -- high. (10 * 96. / 72. = 13.3).
  318. -- screen : a GdkScreen
  319. -- dpi : the resolution in "dots per inch". (Physical inches aren't
  320. -- actually involved; the terminology is conventional.)
  321. -- Since 2.10
  322. -- --------------------------------------------------------------------------
  323. -- gdk_screen_get_active_window ()
  324. -- GdkWindow* gdk_screen_get_active_window (GdkScreen *screen);
  325. -- Returns the screen's currently active window.
  326. -- On X11, this is done by inspecting the _NET_ACTIVE_WINDOW property on the
  327. -- root window, as described in the Extended Window Manager Hints. If there
  328. -- is no currently currently active window, or the window manager does not
  329. -- support the _NET_ACTIVE_WINDOW hint, this function returns NULL.
  330. -- On other platforms, this function may return NULL, depending on whether it
  331. -- is implementable on that platform.
  332. -- The returned window should be unrefed using g_object_unref() when no
  333. -- longer needed.
  334. -- screen : a GdkScreen
  335. -- Returns : the currently active window, or NULL.
  336. -- Since 2.10
  337. -- --------------------------------------------------------------------------
  338. -- gdk_screen_get_window_stack ()
  339. -- GList* gdk_screen_get_window_stack (GdkScreen *screen);
  340. -- Returns a GList of GdkWindows representing the current window stack.
  341. -- On X11, this is done by inspecting the _NET_CLIENT_LIST_STACKING property
  342. -- on the root window, as described in the Extended Window Manager Hints. If
  343. -- the window manager does not support the _NET_CLIENT_LIST_STACKING hint,
  344. -- this function returns NULL.
  345. -- On other platforms, this function may return NULL, depending on whether it
  346. -- is implementable on that platform.
  347. -- The returned list is newly allocated and owns references to the windows it
  348. -- contains, so it should be freed using g_list_free() and its windows
  349. -- unrefed using g_object_unref() when no longer needed.
  350. -- screen : a GdkScreen
  351. -- Returns : a list of GdkWindows for the current window stack, or NULL.
  352. -- Since 2.10
  353. -- --------------------------------------------------------------------------
  354. -- gdk_spawn_on_screen ()
  355. -- gboolean gdk_spawn_on_screen (GdkScreen *screen,
  356. -- const gchar *working_directory,
  357. -- gchar **argv,
  358. -- gchar **envp,
  359. -- GSpawnFlags flags,
  360. -- GSpawnChildSetupFunc child_setup,
  361. -- gpointer user_data,
  362. -- gint *child_pid,
  363. -- GError **error);
  364. -- Like g_spawn_async(), except the child process is spawned in such an
  365. -- environment that on calling gdk_display_open() it would be returned a
  366. -- GdkDisplay with screen as the default screen.
  367. -- This is useful for applications which wish to launch an application on a
  368. -- specific screen.
  369. -- screen : a GdkScreen
  370. -- working_directory : child's current working directory, or NULL to inherit
  371. -- parent's
  372. -- argv : child's argument vector
  373. -- envp : child's environment, or NULL to inherit parent's
  374. -- flags : flags from GSpawnFlags
  375. -- child_setup : function to run in the child just before exec()
  376. -- user_data : user data for child_setup
  377. -- child_pid : return location for child process ID, or NULL
  378. -- error : return location for error
  379. -- Returns : TRUE on success, FALSE if error is set
  380. -- Since 2.4
  381. -- --------------------------------------------------------------------------
  382. -- gdk_spawn_on_screen_with_pipes ()
  383. -- gboolean gdk_spawn_on_screen_with_pipes (GdkScreen *screen,
  384. -- const gchar *working_directory,
  385. -- gchar **argv,
  386. -- gchar **envp,
  387. -- GSpawnFlags flags,
  388. -- GSpawnChildSetupFunc child_setup,
  389. -- gpointer user_data,
  390. -- gint *child_pid,
  391. -- gint *standard_input,
  392. -- gint *standard_output,
  393. -- gint *standard_error,
  394. -- GError **error);
  395. -- Like g_spawn_async_with_pipes(), except the child process is spawned in
  396. -- such an environment that on calling gdk_display_open() it would be
  397. -- returned a GdkDisplay with screen as the default screen.
  398. -- This is useful for applications which wish to launch an application on a
  399. -- specific screen.
  400. -- screen : a GdkScreen
  401. -- working_directory : child's current working directory, or NULL to inherit
  402. -- parent's
  403. -- argv : child's argument vector
  404. -- envp : child's environment, or NULL to inherit parent's
  405. -- flags : flags from GSpawnFlags
  406. -- child_setup : function to run in the child just before exec()
  407. -- user_data : user data for child_setup
  408. -- child_pid : return location for child process ID, or NULL
  409. -- standard_input : return location for file descriptor to write to
  410. -- child's stdin, or NULL
  411. -- standard_output : return location for file descriptor to read child's
  412. -- stdout, or NULL
  413. -- standard_error : return location for file descriptor to read child's
  414. -- stderr, or NULL
  415. -- error : return location for error
  416. -- Returns : TRUE on success, FALSE if an error was set
  417. -- Since 2.4
  418. -- --------------------------------------------------------------------------
  419. -- gdk_spawn_command_line_on_screen ()
  420. -- gboolean gdk_spawn_command_line_on_screen
  421. -- (GdkScreen *screen,
  422. -- const gchar *command_line,
  423. -- GError **error);
  424. -- Like g_spawn_command_line_async(), except the child process is spawned in
  425. -- such an environment that on calling gdk_display_open() it would be
  426. -- returned a GdkDisplay with screen as the default screen.
  427. -- This is useful for applications which wish to launch an application on a
  428. -- specific screen.
  429. -- screen : a GdkScreen
  430. -- command_line : a command line
  431. -- error : return location for errors
  432. -- Returns : TRUE on success, FALSE if error is set.
  433. -- Since 2.4
  434. -- Properties
  435. -- "font-options" gpointer : Read / Write
  436. -- "resolution" gdouble : Read / Write
  437. -- Property Details
  438. -- The "font-options" property
  439. -- "font-options" gpointer : Read / Write
  440. -- The default font options for the screen.
  441. -- --------------------------------------------------------------------------
  442. -- The "resolution" property
  443. -- "resolution" gdouble : Read / Write
  444. -- The resolution for fonts on the screen.
  445. -- Default value: -1
  446. -- Signals
  447. -- "composited-changed"
  448. -- void user_function (GdkScreen *screen,
  449. -- gpointer user_data) : Run last
  450. -- "size-changed"
  451. -- void user_function (GdkScreen *screen,
  452. -- gpointer user_data) : Run last
  453. -- Signal Details
  454. -- The "composited-changed" signal
  455. -- void user_function (GdkScreen *screen,
  456. -- gpointer user_data) : Run last
  457. -- The ::composited_changed signal is emitted when the composited status of
  458. -- the screen changes
  459. -- screen : the object on which the signal is emitted
  460. -- user_data : user data set when the signal handler was connected.
  461. -- Since 2.10
  462. -- --------------------------------------------------------------------------
  463. -- The "size-changed" signal
  464. -- void user_function (GdkScreen *screen,
  465. -- gpointer user_data) : Run last
  466. -- The ::size_changed signal is emitted when the pixel width or height of a
  467. -- screen changes.
  468. -- screen : the object on which the signal is emitted
  469. -- user_data : user data set when the signal handler was connected.
  470. feature
  471. struct_size: INTEGER is
  472. external "C inline use <gdk/gdk.h>"
  473. alias "sizeof(GdkScreen)"
  474. end
  475. feature {} -- External calls
  476. gdk_screen_get_default: POINTER is
  477. -- GdkScreen* gdk_screen_get_default (void);
  478. external "C use <gtk/gtk.h>"
  479. end
  480. gdk_screen_get_default_colormap (a_screen: POINTER): POINTER is
  481. -- GdkColormap* gdk_screen_get_default_colormap (GdkScreen *screen);
  482. external "C use <gtk/gtk.h>"
  483. end
  484. gdk_screen_set_default_colormap (a_screen, a_colormap: POINTER) is
  485. -- void gdk_screen_set_default_colormap (GdkScreen *screen, GdkColormap *colormap);
  486. external "C use <gtk/gtk.h>"
  487. end
  488. gdk_screen_get_system_colormap (a_screen: POINTER): POINTER is
  489. -- GdkColormap* gdk_screen_get_system_colormap (GdkScreen *screen);
  490. external "C use <gtk/gtk.h>"
  491. end
  492. gdk_screen_get_system_visual (a_screen: POINTER): POINTER is
  493. -- GdkVisual* gdk_screen_get_system_visual (GdkScreen *screen);
  494. external "C use <gtk/gtk.h>"
  495. end
  496. gdk_screen_get_rgb_colormap (a_screen: POINTER): POINTER is
  497. -- GdkColormap* gdk_screen_get_rgb_colormap (GdkScreen *screen);
  498. external "C use <gtk/gtk.h>"
  499. end
  500. gdk_screen_get_rgb_visual (a_screen: POINTER): POINTER is
  501. -- GdkVisual* gdk_screen_get_rgb_visual (GdkScreen *screen);
  502. external "C use <gtk/gtk.h>"
  503. end
  504. gdk_screen_get_rgba_colormap (a_screen: POINTER): POINTER is
  505. -- GdkColormap* gdk_screen_get_rgba_colormap (GdkScreen *screen);
  506. external "C use <gtk/gtk.h>"
  507. end
  508. gdk_screen_get_rgba_visual (a_screen: POINTER): POINTER is
  509. -- GdkVisual* gdk_screen_get_rgba_visual (GdkScreen *screen);
  510. external "C use <gtk/gtk.h>"
  511. end
  512. gdk_screen_is_composited (a_screen: POINTER): INTEGER is
  513. -- gboolean gdk_screen_is_composited (GdkScreen *screen);
  514. external "C use <gtk/gtk.h>"
  515. end
  516. gdk_screen_get_root_window (a_screen: POINTER): POINTER is
  517. -- GdkWindow* gdk_screen_get_root_window (GdkScreen *screen);
  518. external "C use <gtk/gtk.h>"
  519. end
  520. gdk_screen_get_display (a_screen: POINTER): POINTER is
  521. -- GdkDisplay* gdk_screen_get_display (GdkScreen *screen);
  522. external "C use <gtk/gtk.h>"
  523. end
  524. gdk_screen_get_number (a_screen: POINTER): INTEGER is
  525. -- gint gdk_screen_get_number (GdkScreen *screen);
  526. external "C use <gtk/gtk.h>"
  527. end
  528. gdk_screen_get_width (a_screen: POINTER): INTEGER is
  529. -- gint gdk_screen_get_width (GdkScreen *screen);
  530. external "C use <gtk/gtk.h>"
  531. end
  532. gdk_screen_get_height (a_screen: POINTER): INTEGER is
  533. -- gint gdk_screen_get_height (GdkScreen *screen);
  534. external "C use <gtk/gtk.h>"
  535. end
  536. gdk_screen_get_width_mm (a_screen: POINTER): INTEGER is
  537. -- gint gdk_screen_get_width_mm (GdkScreen *screen);
  538. external "C use <gtk/gtk.h>"
  539. end
  540. gdk_screen_get_height_mm (a_screen: POINTER): INTEGER is
  541. -- gint gdk_screen_get_height_mm (GdkScreen *screen);
  542. external "C use <gtk/gtk.h>"
  543. end
  544. gdk_screen_list_visuals (a_screen: POINTER): POINTER is
  545. -- GList* gdk_screen_list_visuals (GdkScreen *screen);
  546. external "C use <gtk/gtk.h>"
  547. end
  548. gdk_screen_get_toplevel_windows (a_screen: POINTER): POINTER is
  549. -- GList* gdk_screen_get_toplevel_windows (GdkScreen *screen);
  550. external "C use <gtk/gtk.h>"
  551. end
  552. gdk_screen_make_display_name (a_screen: POINTER): POINTER is
  553. -- gchar* gdk_screen_make_display_name (GdkScreen *screen);
  554. external "C use <gtk/gtk.h>"
  555. end
  556. gdk_screen_get_n_monitors (a_screen: POINTER): INTEGER is
  557. -- gint gdk_screen_get_n_monitors (GdkScreen *screen);
  558. external "C use <gtk/gtk.h>"
  559. end
  560. gdk_screen_get_monitor_geometry (a_screen: POINTER; a_monitor_num: INTEGER; a_dest: POINTER) is
  561. -- void gdk_screen_get_monitor_geometry (a_screen: POINTER, gint monitor_num, a_dest: POINTER);
  562. external "C use <gtk/gtk.h>"
  563. end
  564. gdk_screen_get_monitor_at_point (a_screen: POINTER; an_x, an_y: INTEGER): INTEGER is
  565. -- gint gdk_screen_get_monitor_at_point (a_screen: POINTER, gint x, gint y);
  566. external "C use <gtk/gtk.h>"
  567. end
  568. gdk_screen_get_monitor_at_window (a_screen, a_window: POINTER): INTEGER is
  569. -- gint gdk_screen_get_monitor_at_window (GdkScreen *screen, GdkWindow *window);
  570. external "C use <gtk/gtk.h>"
  571. end
  572. gdk_screen_broadcast_client_message (a_screen, a_event: POINTER) is
  573. -- void gdk_screen_broadcast_client_message (GdkScreen *screen, GdkEvent *event);
  574. external "C use <gtk/gtk.h>"
  575. end
  576. gdk_screen_get_setting (a_screen, a_name, a_value: POINTER): INTEGER is
  577. -- gboolean gdk_screen_get_setting (GdkScreen *screen, const gchar *name, GValue *value);
  578. external "C use <gtk/gtk.h>"
  579. end
  580. gdk_screen_get_font_options (a_screen: POINTER): POINTER is
  581. -- const cairo_font_options_t* gdk_screen_get_font_options (GdkScreen *screen);
  582. external "C use <gtk/gtk.h>"
  583. end
  584. gdk_screen_set_font_options (a_screen, some_options: POINTER) is
  585. -- void gdk_screen_set_font_options (GdkScreen *screen, const cairo_font_options_t *options);
  586. external "C use <gtk/gtk.h>"
  587. end
  588. gdk_screen_get_resolution (a_screen: POINTER): REAL is
  589. -- gdouble gdk_screen_get_resolution (GdkScreen *screen);
  590. external "C use <gtk/gtk.h>"
  591. end
  592. gdk_screen_set_resolution (a_screen: POINTER; some_dpi: REAL) is
  593. -- void gdk_screen_set_resolution (GdkScreen *screen, gdouble dpi);
  594. external "C use <gtk/gtk.h>"
  595. end
  596. gdk_screen_get_active_window (a_screen: POINTER): POINTER is
  597. -- GdkWindow* gdk_screen_get_active_window (GdkScreen *screen);
  598. external "C use <gtk/gtk.h>"
  599. end
  600. gdk_screen_get_window_stack (a_screen: POINTER): POINTER is
  601. -- GList* gdk_screen_get_window_stack (GdkScreen *screen);
  602. external "C use <gtk/gtk.h>"
  603. end
  604. gdk_spawn_on_screen (a_screen, a_working_directory, an_argv, an_envp: POINTER; some_flags: INTEGER; a_child_setup_function, some_data, a_child_pid, an_error: POINTER): INTEGER is
  605. -- gboolean gdk_spawn_on_screen (GdkScreen *screen, const
  606. -- gchar *working_directory, gchar **argv, gchar **envp,
  607. -- GSpawnFlags flags, GSpawnChildSetupFunc child_setup,
  608. -- gpointer user_data, gint *child_pid, GError **error);
  609. external "C use <gtk/gtk.h>"
  610. end
  611. gdk_spawn_on_screen_with_pipes (a_screen, a_working_directory, an_argv, an_envp: POINTER; some_flags: INTEGER; a_gspawn_child_setup_func, some_data, a_child_pid, a_standard_input, a_standard_output, a_standard_error, an_error: POINTER): INTEGER is
  612. -- gboolean gdk_spawn_on_screen_with_pipes (GdkScreen
  613. -- *screen, const gchar *working_directory, gchar **argv,
  614. -- gchar **envp, GSpawnFlags flags, GSpawnChildSetupFunc
  615. -- child_setup, gpointer user_data, gint *child_pid, gint
  616. -- *standard_input, gint *standard_output, gint
  617. -- *standard_error, GError **error);
  618. external "C use <gtk/gtk.h>"
  619. end
  620. gdk_spawn_command_line_on_screen (a_screen, a_command_line, a_error: POINTER): INTEGER is
  621. -- gboolean gdk_spawn_command_line_on_screen (GdkScreen
  622. -- *screen, const gchar *command_line, GError **error);
  623. external "C use <gtk/gtk.h>"
  624. end
  625. end -- class GDK_SCREEN