xpp: Type aliases

This commit is contained in:
Michael Carlberg 2016-06-23 23:32:16 +02:00
parent 52335d4f63
commit ee1c980be1
1 changed files with 11 additions and 2 deletions

View File

@ -11,13 +11,22 @@
#include <xcb/randr.h>
#include <xpp.hpp>
#include <proto/randr.hpp>
namespace x
{
typedef xpp::connection<> connection;
typedef xpp::event::registry<connection &> registry;
typedef xpp::connection<xpp::randr::extension> connection;
typedef xpp::event::registry<connection &, xpp::randr::extension> registry;
typedef xpp::window<connection &> window;
typedef xpp::window<xcb_connection_t *> xcb_window;
typedef xpp::x::event::key_press<connection &> key_press;
typedef xpp::x::event::key_release<connection &> key_release;
typedef xpp::x::event::button_press<connection &> button_press;
typedef xpp::randr::event::notify<connection &> randr_notify;
typedef xpp::randr::event::screen_change_notify<connection &> randr_screen_change_notify;
}
namespace xcb