File: 033-gdk.lua

package info (click to toggle)
lua-gtk 0.9%2B20100528-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 2,176 kB
  • ctags: 1,934
  • sloc: ansic: 9,571; sh: 373; makefile: 241
file content (8 lines) | stat: -rwxr-xr-x 140 bytes parent folder | download
1
2
3
4
5
6
7
8

require "gdk"

display = gdk.display_get_default()
screen = display:get_default_screen()
x = gdk.x11_screen_get_xscreen(screen)
assert(x)