1
0
Fork 0
spectre/source/Platform/Unix/Xlib.h

24 lines
424 B
C++

#ifndef SPECTRE_PLATFORM_UNIX_XLIB_H
#define SPECTRE_PLATFORM_UNIX_XLIB_H
#include <string>
#include <X11/Xlib.h>
// Wrapper for some Xlib functions.
namespace sp { namespace Xlib {
void init();
void shutdown();
::Display* getDisplay();
::Window getParentWindow(::Window win);
::Atom getAtom(const std::string& name, bool onlyIfExists = false);
} } // namespace sp::xlib
#endif /* SPECTRE_PLATFORM_UNIX_XLIB_H */