drm_rect_visible(9)
π drm_rect_visible(9) β the vibe check for rectangles π
okay so bestie, welcome to drm_rect_visible(9), a kernel API manual page and honestly? a little legend. it's a tiny function with one job and it does it slayfully. let's get into it π
β¨ NAME β¨
drm_rect_visible β determine if the rectangle is visible
like, literally that. is the rectangle visible or not. that's the whole plot π¦
πΈ SYNOPSIS πΈ
bool drm_rect_visible (const struct drm_rect *r );
she takes one pointer, she gives you back a bool. no cap, that's it. no drama, no side quests π
π«Ά ARGUMENTS π«Ά
rβ rectangle whose visibility is returned. yes bestie, this is the rectangle we're judging. she's aconst struct drm_rect *, so we're looking respectfully, not touching π
β RETURN β
returns true if the rectangle is visible, and false otherwise. iconic binary behaviour, truly the main character energy of booleans πβ¨
π₯ SEE ALSO π₯
okay so there is a WHOLE friend group here and honestly they all ate:
- Kernel file
./include/drm/drm_rect.hβ the home turf, the mothership π rect utils(9)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_init(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_equals(9)drm_rect_fp_to_int(9)drm_rect_overlap(9)
like, go read them too. you're welcome. iykyk π
ngl this page is short but she's perfect. go check if your rectangle is visible, king. periodt π
mwah π this little page lives in ./include/drm and it's dated October 2026 β so go forth, visibility-check responsibly, and remember who told you π§π
π¦ 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