ENUM DC_CURSOR_COLOR_FORMAT(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… enum dc_cursor_color_format β€” DC cursor programming mode

ok so this is a page from the Kernel API Manual, and today's main character is enum dc_cursor_color_format πŸŽ€ β€” genuinely one of those little enums that decides how your mouse pointer looks. no cap, it's giving "small but powerful."


✨ SYNOPSIS ✨

like, here's the whole squad, all six of them, and yes you get every single one:

enum dc_cursor_color_format {
    CURSOR_MODE_MONO ,
    CURSOR_MODE_COLOR_1BIT_AND ,
    CURSOR_MODE_COLOR_PRE_MULTIPLIED_ALPHA ,
    CURSOR_MODE_COLOR_UN_PRE_MULTIPLIED_ALPHA ,
    CURSOR_MODE_COLOR_64BIT_FP_PRE_MULTIPLIED ,
    CURSOR_MODE_COLOR_64BIT_FP_UN_PRE_MULTIPLIED

};

🌸 Constants 🌸

okay bestie, i have to be so honest with you rn β€” the source doc did us dirty and literally describes none of these. so here's the full roster, and none of them came with a description. i'm not gonna make anything up, that's not the vibe πŸ’€

  • CURSOR_MODE_MONO β€” -- undescribed -- πŸ™ˆ
  • CURSOR_MODE_COLOR_1BIT_AND β€” -- undescribed -- πŸ™ˆ
  • CURSOR_MODE_COLOR_PRE_MULTIPLIED_ALPHA β€” -- undescribed -- πŸ™ˆ
  • CURSOR_MODE_COLOR_UN_PRE_MULTIPLIED_ALPHA β€” -- undescribed -- πŸ™ˆ
  • CURSOR_MODE_COLOR_64BIT_FP_PRE_MULTIPLIED β€” -- undescribed -- πŸ™ˆ
  • CURSOR_MODE_COLOR_64BIT_FP_UN_PRE_MULTIPLIED β€” -- undescribed -- πŸ™ˆ

like… the audacity. but we move πŸ’…


πŸ¦‹ Description πŸ¦‹

okay so what does it do β€” this enum is for programming the CURSOR_MODE register field. that's the whole job. icon behavior.

and the tea is: what that register should actually be programmed to depends on the OS requested cursor shape flags and what we stored in the cursor surface. so it's not a one-size-fits-all situation β€” the answer changes based on those two things. iykyk ✨


πŸ”₯ SEE ALSO πŸ”₯

go look at these next, bestie, they're part of the same friend group:

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

🫢 so yeah, that's the whole page! this lil' beauty lives in ./drivers/gpu/drm/amd/display/dc, the version stamp says October 2026, and it's filed under enum dc_cursor_color_format(9) in the Kernel API Manual. slay, go program that cursor register. periodt. πŸ‘‘πŸŒˆ

πŸ“¦ where this page comes from