Wiki source for ioSetCursorARGB


Show raw source

======**sqInt ioSetCursorARGB(sqInt cursorBitsIndex, sqInt extentX, sqInt extentY, sqInt offsetX, sqInt offsetY)**======

**Parms**:
cursorBitsIndex oops pointer to the bits
extentx how many pixels in X
extentY how many pixels in Y
offsetX offset for hotspot X
offsetY offset for hotspot Y
**return**: NONE, fake return of zero
**From**: Interpreter
**Why**:
To paint a ARGB cursor

**Responsibility**:
This code comes via the OLPC folks to support much larger and more complex cursors that were required on the OLPC since it has a much higher dpi resolution and the original cursor size was a bit too small to visually see.
ARGB refers to the expected color arrangement in the 32bits (Alpha, Red, Green, Blue)

**MacIntosh**
//os-9/OSXCarbon//
We support this, although it looks a bit funny, however this enables testing etc for the OLPC code path for eToys
Thanks to Bert for providing the code
It is NOT supported on os-x 10.2 or supported via the browser plugin feature
We make a NSBitmap, populate with the bits respecting ENDIANNESS, then an NSCursor which we show.

//Cocoa://
Same code from OSXCarbon via Bert to grind thru the bits to make a NSCursor

**iPhone**
No cursor, return 0

**Unix**
If X Windows supports large cursors, then render away.

**Windows**
Not supported

**BUGS**

Valid XHTML :: Valid CSS: :: Powered by WikkaWiki