SoQtCursor::CustomCursor(3)
Hiii bestie! π You're looking at SoQtCursor::CustomCursor(3) from the SoQt manual β yes, the manual name is SoQt, and this page is all about the SoQtCursor::CustomCursor class. It's the little class that carries bitmap data for SoQtCursor custom cursors. Obsessed? Same. β¨
π NAME π
SoQtCursor::CustomCursor β the class used to specify bitmap data for SoQtCursor custom cursors. That's literally the whole vibe: custom-cursor bitmap data, served fresh. π
β¨ SYNOPSIS β¨
πΈ Public Attributes πΈ
SbVec2s dimβ size of the cursor data.SbVec2s hotspotβ position of the cursor hotspot.unsigned char * bitmapβ the bitmap data bits.unsigned char * maskβ the mask data bits.
π Detailed Description π
The SoQtCursor::CustomCursor class is used to specify bitmap data for SoQtCursor custom cursors. That's it, that's the plot. π«Ά If you're making a custom cursor, this is the data setup that holds its bitmap info.
π¦ Member Data Documentation π¦
π SbVec2s SoQtCursor::CustomCursor::dim
Size of cursor data. Can be anything from 1 pixel wide and high, up to maximum 32 pixels in each dimension. There is a cap, bestie: 32. π
π§ SbVec2s SoQtCursor::CustomCursor::hotspot
Position of cursor hotspot, i.e. the pixel of the cursor which is considered to be the "pick point" when interacting with the canvas or widgets.
The hotspot position should be specified relative to the uppermost, leftmost corner (which is position <0, 0>). π―
π unsigned char* SoQtCursor::CustomCursor::bitmap
The size of the array of bitmap data should be equal to (width+7)/8*height, as each cursor pixel is specified with just two bits, one in the bitmap array, one in the mask array.
The bitmap and mask bits should be laid out as follows:
B=1 and M=1 == black
B=0 and M=1 == white
B=0 and M=0 == transparency
B=1 and M=0 will give undefined results for some platforms, so avoid.
β οΈ Bestie, that last line is important: B=1 and M=0 will give undefined results for some platforms, so avoid it. Periodt. π
π unsigned char* SoQtCursor::CustomCursor::mask
See doc of SoQtCursor::CustomCursor::bitmap. π
π Author π
Generated automatically by Doxygen for SoQt from the source code.
Cute little sign-off from the footer: source/version says version 1.6.2, dated Sat Jan 6 2024 12:20:55. Byeee bestie! π«Άπβ¨
π¦ where this page comes from
- opensuse-leap 16.0: SoQt-devel 1.6.2-bp160.1.13 Β· BSD-3-Clause
- opensuse-leap 16.0: SoQt-devel 1.6.2-bp160.1.13 Β· BSD-3-Clause
- opensuse-leap 16.0: SoQt-devel 1.6.2-bp160.1.13 Β· BSD-3-Clause
- opensuse-leap 16.0: SoQt-devel 1.6.2-bp160.1.13 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms