1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
#ifndef XPP_ATOM_HPP
#define XPP_ATOM_HPP
#include "xpp/proto/x.hpp"
#include "generic/resource.hpp"
namespace xpp {
template<typename Connection, template<typename, typename> class ... Interfaces>
class atom
: public xpp::generic::resource<Connection, xcb_atom_t,
xpp::x::atom, Interfaces ...>
{
protected:
using base = xpp::generic::resource<Connection, xcb_atom_t, Interfaces ...>;
public:
using base::base;
using base::operator=;
};
namespace generic {
template<typename Connection, template<typename, typename> class ... Interfaces>
struct traits<xpp::atom<Connection, Interfaces ...>>
{
typedef xcb_atom_t type;
};
} // namespace generic
} // namespace xpp
#endif // XPP_ATOM_HPP
|