wl_cursor_image(3)
β¨ wl_cursor_image β¨
okay bestie, welcome to wl_cursor_image(3) β yes that (3) means it's a library function page, we're in the Wayland section of the manual, living our best life π
πΈ NAME πΈ
wl_cursor_image β the little struct that holds one still frame of your cursor, and honestly? she's doing a lot for a girl with five fields π
π¦ SYNOPSIS π¦
#include <wayland-cursor.h>
π Data Fields π
uint32_t width
uint32_t height
uint32_t hotspot_x
uint32_t hotspot_y
uint32_t delay
π Detailed Description π
A still image part of a cursor β¨
That's it. That's the vibe. One frame. One picture. If your cursor is animated, she's a whole collection of these, and each one is a single snapshot in the lineup π«Ά
and listen β this struct is NOT the thing you slap onto your surface. nope. usewl_cursor_image_get_buffer()to get the correspondingstruct wl_bufferto attach to yourstruct wl_surface. do not skip this step, i'm literally begging π
π Field Documentation π
π uint32_t wl_cursor_image::delay
Animation delay to next frame (ms) β±οΈ
i.e. how long this frame hangs around before the next one slides in. measured in ms, so keep your math honest.
π uint32_t wl_cursor_image::height
Actual height π
the real one. the actual one. not a vibe, a number.
πΈ uint32_t wl_cursor_image::hotspot_x
Hot spot x (must be inside image) π―
this is the x of the clicky point β the pixel that is your cursor, basically. and note the parenthetical, bestie: it must be inside image. no cap. don't be putting your hotspot outside the picture π
π¦ uint32_t wl_cursor_image::hotspot_y
Hot spot y (must be inside image) π―
same energy, but the y. also must be inside image. the parentheses are there for a reason, she's not decorating β¨
β uint32_t wl_cursor_image::width
Actual width π
the actual width. iconic. immaculate. correct.
π Author π
Generated automatically by Doxygen for Wayland from the source code π€β¨
and that's the whole page, bestie!! this was brought to you by Wayland, Version 1.26.0 β mwah, drink some water, and go attach that wl_buffer correctly π
π«Ά
π¦ where this page comes from
- arch rolling: wayland-docs 1.26.0-1 Β· MIT
- fedora 43: wayland-devel 1.26.0-1.fc43 Β· MIT
- fedora 43: wayland-devel 1.26.0-1.fc43 Β· MIT
- fedora 44: wayland-devel 1.26.0-1.fc44 Β· MIT
- fedora 44: wayland-devel 1.26.0-1.fc44 Β· MIT
- nixpkgs unstable: wayland 1.26.0
- ubuntu stonking: libwayland-doc 1.26.0-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms