drm_rect_translate_to(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_rect_translate_to(9) πŸ’…

okay so this is a page from the Kernel API Manual β€” yes, the actual kernel docs, and yes, we're gonna make it cute. it's drm_rect_translate_to, and honestly? it's giving "tiny function, big main character energy". let's go bestie ✨


✨ NAME ✨

drm_rect_translate_to β€” translate the rectangle to an absolute position 🎯

like, not relative translation, not "nudge it a bit" β€” we're putting this rectangle exactly where we say. periodt.


πŸŽ€ SYNOPSIS πŸŽ€

void drm_rect_translate_to (struct drm_rect *r , int x , int y );

look at that signature. clean. iconic. no return value, it just does the thing and leaves πŸ’…


🌸 ARGUMENTS 🌸

  • r β€” the rectangle to be translated 🫢 this is the lil guy we're moving around
  • x β€” horizontal position ⭐ where it's gonna land on the x axis
  • y β€” vertical position πŸ¦‹ where it's gonna land on the y axis

πŸ’– DESCRIPTION πŸ’–

Move rectangle r to x in the horizontal direction, and to y in the vertical direction.

that's it. that's the whole vibe. it's not adding, it's not offsetting β€” it moves r so it sits at x horizontally and y vertically. absolute positioning, no cap πŸ”₯


πŸ‘‘ SEE ALSO πŸ‘‘

bestie, the friend group is LARGE and we love them all. these all live in the kernel file ./include/drm/drm_rect.h under rect utils(9):

go read them all bestie, they're all in ./include/drm and they all slay in their own way 🌈


ngl this one's short and sweet β€” but if you're reaching for it, double-check you don't actually want drm_rect_translate(9) instead. that one's the relative-move sibling. this one is absolute. iykyk πŸ™ˆ

and that's the tea! πŸ“ source path is ./include/drm, dated October 2026 β€” so mark your calendars, mwah πŸ’œ 🧚

πŸ“¦ where this page comes from