XCB for Ruby

This gem provides Ruby bindings for XCB (http://xcb.freedesktop.org/).

Example

require "xproto"

connection = XCB::Connection.new(ENV["DISPLAY"])
screen = connection.get_setup.roots.first
pointer = connection.query_pointer(screen.root)
window_id = pointer.child
geometry = connection.get_geometry(window_id)
puts "width: #{geometry.width}"
puts "height: #{geometry.height}"

Support

InfraRuby Vision http://infraruby.com/ https://github.com/InfraRuby https://twitter.com/InfraRuby [email protected]