X-Git-Url: https://git.sur5r.net/?p=i3%2Fi3;a=blobdiff_plain;f=include%2Fxcursor.h;h=804e1f84c211a20c115942ee1e0c3ac33b54abe8;hp=e129a36fe11a39db36f3378e7b102647d1f2f149;hb=HEAD;hpb=0f276fdefa5428a9137996bd2d36ae24d86b80df diff --git a/include/xcursor.h b/include/xcursor.h index e129a36f..804e1f84 100644 --- a/include/xcursor.h +++ b/include/xcursor.h @@ -1,20 +1,33 @@ /* * vim:ts=4:sw=4:expandtab + * + * i3 - an improved dynamic tiling window manager + * © 2009 Michael Stapelberg and contributors (see also: LICENSE) + * + * xcursor.c: libXcursor support for themed cursors. + * */ -#ifndef _XCURSOR_CURSOR_H -#define _XCURSOR_CURSOR_H +#pragma once -#include +#include + +#include enum xcursor_cursor_t { XCURSOR_CURSOR_POINTER = 0, XCURSOR_CURSOR_RESIZE_HORIZONTAL, XCURSOR_CURSOR_RESIZE_VERTICAL, + XCURSOR_CURSOR_TOP_LEFT_CORNER, + XCURSOR_CURSOR_TOP_RIGHT_CORNER, + XCURSOR_CURSOR_BOTTOM_LEFT_CORNER, + XCURSOR_CURSOR_BOTTOM_RIGHT_CORNER, + XCURSOR_CURSOR_WATCH, + XCURSOR_CURSOR_MOVE, XCURSOR_CURSOR_MAX }; -void xcursor_load_cursors(); -Cursor xcursor_get_cursor(enum xcursor_cursor_t c); +void xcursor_load_cursors(void); +xcb_cursor_t xcursor_get_cursor(enum xcursor_cursor_t c); int xcursor_get_xcb_cursor(enum xcursor_cursor_t c); /** @@ -28,6 +41,4 @@ int xcursor_get_xcb_cursor(enum xcursor_cursor_t c); * races might occur (even though we flush the Xlib connection). * */ -void xcursor_set_root_cursor(); - -#endif +void xcursor_set_root_cursor(int cursor_id);