logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

X11::XCB - perl bindings for libxcb

Author

       Michael   Stapelberg,  <michael+xcb@stapelberg.de>,  Maik  Fischer,  <maikf+xcb@qu.cx>,  Sergei  Zhmylev,
       <zhmylove@cpan.org>

Description

       These bindings wrap libxcb (a C library to speak with X11, in many cases better than Xlib in many
       aspects) and provide a nice object oriented interface to its methods (using Mouse).

       Please note that its aim is NOT to provide yet another toolkit for creating graphical applications. It is
       a low-level method of communicating with X11. Use cases include testcases for all kinds of X11
       applications, implementing really simple applications which do not require an graphical toolkit (such as
       GTK, QT, etc.) or command-line utilities which communicate with X11.

       WARNING: X11::XCB is in a rather early stage and thus API breaks may happen in future versions. It is not
       yet widely used.

Installation

       To install this module type the following:

           perl Makefile.PL
           make
           make test
           make install

Name

       X11::XCB - perl bindings for libxcb

See Also

       <http://xcb.freedesktop.org/>
           The website of libxcb.

       <https://github.com/zhmylove/X11-XCB>
           The git webinterface for the development of X11::XCB.

       <http://code.stapelberg.de/git/i3/tree/testcases?h=next>
           The i3 window manager includes testcases which use X11::XCB.

       <https://github.com/zhmylove/korgwm>
           The korgwm is written entirely in Perl and based on X11::XCB.

Synopsis

         use X11::XCB::Connection;
         my $x = X11::XCB::Connection->new;

         my $window = $x->root->create_child(
           class => X11::XCB::WINDOW_CLASS_INPUT_OUTPUT(),
           rect => [0, 0, 200, 200],
           background_color => '#FF00FF',
         );

         $window->map;
         print "Press Enter to continue\n";
         <>;

See Also