polybar-dwm/include/x11/types.hpp
2016-11-26 06:13:20 +01:00

59 lines
989 B
C++

#pragma once
#include "config.hpp"
// fwd
namespace xpp {
#ifdef ENABLE_DAMAGE_EXT
namespace damage {
class extension;
}
#endif
#ifdef ENABLE_RANDR_EXT
namespace randr {
class extension;
}
#endif
#ifdef ENABLE_RENDER_EXT
namespace render {
class extension;
}
#endif
}
#include <xpp/xpp.hpp>
#include "common.hpp"
POLYBAR_NS
class connection;
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&>;
using registry = xpp::event::registry<connection&,
#ifdef ENABLE_DAMAGE_EXT
xpp::damage::extension
#endif
#ifdef ENABLE_RANDR_EXT
#ifdef ENABLE_DAMAGE_EXT
,
#endif
xpp::randr::extension
#endif
#ifdef ENABLE_RENDER_EXT
#ifdef ENABLE_RANDR_EXT
,
#endif
xpp::render::extension
#endif
>;
POLYBAR_NS_END