drm_rect_init(9)
π drm_rect_init β like, the Kernel API Manual page for it, bestie
okay so this is drm_rect_init(9) from the Kernel API Manual, and honestly? It's the glow-up moment for a rectangle. One call and your struct drm_rect goes from "who even am I" to fully main character with actual coordinates. No cap. π
β¨ NAME β¨
drm_rect_init β initialize the rectangle from x/y/w/h
Yeah that's it. That's the whole vibe. It sets up the rect. π
πΈ SYNOPSIS πΈ
void drm_rect_init (struct drm_rect *r , int x , int y , int width , int height );
Literally one function, five things to hand it. Slay. β¨
π¦ ARGUMENTS π¦
rβ the rectangle. like, the actualstruct drm_rectyou're blessing with an identity. your star of the show. πxβ the x coordinate. horizontal, bestie. left-to-right, the whole thing. πyβ the y coordinate. vertical. up-down energy. π§widthβ the width. how thicc horizontally. πheightβ the height. how tall. vertical queen behavior. π
ngl the argument list is so clean it's giving "I know exactly what I'm doing" and honestly? it does. π«Ά
π SEE ALSO π
Kernel file ./include/drm/drm_rect.h rect utils(9) β plus this whole friend group right here, go say hi:
struct drm_rect(9)DRM_RECT_INIT(9)DRM_RECT_FMT(9)DRM_RECT_ARG(9)DRM_RECT_FP_FMT(9)DRM_RECT_FP_ARG(9)drm_rect_adjust_size(9)drm_rect_translate(9)drm_rect_translate_to(9)drm_rect_downscale(9)drm_rect_width(9)drm_rect_height(9)drm_rect_visible(9)drm_rect_equals(9)drm_rect_fp_to_int(9)drm_rect_overlap(9)
ok that's the whole page, and yes it's short β iconic of it honestly. π
this masterpiece lives in ./include/drm and it was served to you fresh in October 2026. stan the manpage. drink water. initialize your rectangles. periodt. πβ¨ππ¦πΈπ
π«Ά
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms