STRUCT DC_CURSOR_POSITION(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ–±οΈ NAME πŸ–±οΈ

okay so bestie, welcome to the Kernel API Manual page for struct dc_cursor_position(9) β€” it's literally the hardware cursor data struct, and we're gonna get into every single field. πŸ’–

struct dc_cursor_position β€” Hardware cursor data.


✨ SYNOPSIS ✨

struct dc_cursor_position {
    uint32_t x;
    uint32_t y;
    uint32_t x_hotspot;
    uint32_t y_hotspot;
    bool enable;
    bool translate_by_source;
    bool use_viewport_for_clip;
};

πŸ–±οΈ Members πŸ–±οΈ

  • x β€” this is the top left abscissa coordinate of the cursor, no cap.
  • y β€” this is the top ordinate of the cursor coordinate. yes bestie, coordinate math is giving geometry class.
  • x_hotspot β€” defines the abscissa point where the mouse click happens. that's the lil click spot, iconic.
  • y_hotspot β€” defines the ordinate point where the mouse click happens. same vibe, vertical edition.
  • enable β€” this parameter indicates whether the hardware cursor should be enabled. basically the on/off switch energy.
  • translate_by_source β€” translate cursor x/y by the source rectangle for each plane.
  • use_viewport_for_clip β€” use viewport position for clip_x calculation instead of clip_rect. required to protect against clip being overwritten. periodt, protect the clip.

🌈 Description 🌈

This struct keeps the action information related to the cursor that will be sent and received from our DC core. it's the lil cursor-action package, and DC core is the main character handling it. 🫢


✨ SEE ALSO ✨

  • Kernel file ./drivers/gpu/drm/amd/display/dc/dc_hw_types.h
  • enum dc_cursor_color_format(9)
  • struct dc_crtc_timing(9)

this page came from ./drivers/gpu/drm/amd/display/dc, dated October 2026, and the whole vibe is struct dc_cursor_position(9) β€” bye bestie, go make that cursor slay πŸ’…βœ¨

πŸ“¦ where this page comes from