polybar/include/x11/types.hpp

85 lines
3.5 KiB
C++
Raw Normal View History

2016-06-15 03:32:35 +00:00
#pragma once
2017-01-24 07:49:27 +00:00
#include <xpp/event.hpp>
2016-06-15 03:32:35 +00:00
#include "common.hpp"
2016-12-26 08:40:15 +00:00
namespace xpp {
template <typename Connection, template <typename, typename> class...>
class gcontext;
template <typename Connection, template <typename, typename> class...>
class pixmap;
template <typename Connection, template <typename, typename> class...>
class drawable;
template <typename Connection, template <typename, typename> class...>
class colormap;
template <typename Connection, template <typename, typename> class...>
class atom;
template <typename Connection, template <typename, typename> class...>
class font;
template <typename Connection, template <typename, typename> class...>
class cursor;
2016-12-26 09:27:30 +00:00
namespace event {
template <class Event, class... Events>
class sink;
}
2016-12-26 08:40:15 +00:00
}
2016-11-19 05:22:44 +00:00
POLYBAR_NS
2016-06-15 03:32:35 +00:00
class connection;
class registry;
2016-11-02 19:22:45 +00:00
2016-11-20 22:04:31 +00:00
using gcontext = xpp::gcontext<connection&>;
using pixmap = xpp::pixmap<connection&>;
using drawable = xpp::drawable<connection&>;
using colormap = xpp::colormap<connection&>;
using atom = xpp::atom<connection&>;
using font = xpp::font<connection&>;
using cursor = xpp::cursor<connection&>;
2017-01-24 07:49:27 +00:00
namespace evt {
// window focus events
using focus_in = xpp::x::event::focus_in<connection&>;
using focus_out = xpp::x::event::focus_out<connection&>;
// cursor events
using enter_notify = xpp::x::event::enter_notify<connection&>;
using leave_notify = xpp::x::event::leave_notify<connection&>;
using motion_notify = xpp::x::event::motion_notify<connection&>;
// keyboard events
using button_press = xpp::x::event::button_press<connection&>;
using button_release = xpp::x::event::button_release<connection&>;
using key_press = xpp::x::event::key_press<connection&>;
using key_release = xpp::x::event::key_release<connection&>;
using keymap_notify = xpp::x::event::keymap_notify<connection&>;
// render events
using circulate_notify = xpp::x::event::circulate_notify<connection&>;
using circulate_request = xpp::x::event::circulate_request<connection&>;
using colormap_notify = xpp::x::event::colormap_notify<connection&>;
using configure_notify = xpp::x::event::configure_notify<connection&>;
using configure_request = xpp::x::event::configure_request<connection&>;
using create_notify = xpp::x::event::create_notify<connection&>;
using destroy_notify = xpp::x::event::destroy_notify<connection&>;
using expose = xpp::x::event::expose<connection&>;
using graphics_exposure = xpp::x::event::graphics_exposure<connection&>;
using gravity_notify = xpp::x::event::gravity_notify<connection&>;
using map_notify = xpp::x::event::map_notify<connection&>;
using map_request = xpp::x::event::map_request<connection&>;
using mapping_notify = xpp::x::event::mapping_notify<connection&>;
using no_exposure = xpp::x::event::no_exposure<connection&>;
using reparent_notify = xpp::x::event::reparent_notify<connection&>;
using resize_request = xpp::x::event::resize_request<connection&>;
using unmap_notify = xpp::x::event::unmap_notify<connection&>;
using visibility_notify = xpp::x::event::visibility_notify<connection&>;
// data events
using client_message = xpp::x::event::client_message<connection&>;
using ge_generic = xpp::x::event::ge_generic<connection&>;
using property_notify = xpp::x::event::property_notify<connection&>;
// selection events
using selection_clear = xpp::x::event::selection_clear<connection&>;
using selection_notify = xpp::x::event::selection_notify<connection&>;
using selection_request = xpp::x::event::selection_request<connection&>;
}
2016-11-19 05:22:44 +00:00
POLYBAR_NS_END