mcpp index

compat.xcursor

#include

X cursor management runtime library and public headers

#include <X11/Xcursor/Xcursor.h>
mcpp add compat.xcursor@1.2.3

Usage

From this repository's own test project — built and run by CI, not written for the website.

#ifdef __linux__
#include <X11/Xlib.h>
#include <X11/extensions/Xext.h>
#include <X11/extensions/Xrender.h>
#include <X11/extensions/Xfixes.h>
#include <X11/Xcursor/Xcursor.h>
#include <X11/extensions/Xinerama.h>
#include <X11/extensions/Xrandr.h>
#include <X11/extensions/XInput2.h>
extern "C" int XextCreateExtension(void);
int main() {
    return XextCreateExtension != nullptr && XRenderQueryExtension != nullptr &&
           XFixesQueryExtension != nullptr && XcursorLibraryPath != nullptr &&
           XineramaQueryExtension != nullptr && XRRQueryExtension != nullptr &&
           XIQueryVersion != nullptr ? 0 : 1;
}
#else
int main() { return 0; }
#endif

tests/examples/gui-stack/tests/xlibs.cpp · project tests/examples/gui-stack

Build

targets
Xcursor (shared)
language
c++23
C standard
c11
import std
no
include dirs
*/include, */include/X11/Xcursor, */include/X11/extensions, */src

Sources (1)

  • */src/*.c

Versions

VersionPlatforms Mirrorssha256
1.2.3 latest Linux CN GLOBAL 74e72da27e61…