ENUM DC_CURSOR_COLOR_FORMAT(9)
π 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
- 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