API reference › Rendering & Viewer
rasChangeCursor
Explicitly set the cache's stored cursor shape (the
void __stdcall rasChangeCursor(IPGC CachePtr, TPDFCursor Value);
procedure rasChangeCursor(CachePtr: IPGC; Value: TPDFCursor); stdcall;
Purpose. Explicitly set the cache's stored cursor shape (the inverse of the mouse handlers reporting one *from* an event — this function lets a host push one *to* the cache directly, e.g. after its own hit-testing via rasGetObjTypeAt, Selection, Text, Objects, and Links).
Description. A plain field store (C.Cursor := Ord(Value)). This chapter did not trace whether the actual host-visible cursor (via SetCursor/similar) is changed as a direct side effect, or whether a host is expected to separately read C.Cursor back and apply it — treat as confirmed-stored state, not confirmed-effective on-screen.
Parameters.
| Parameter | Description |
|---|---|
CachePtr | Target page cache. |
Value | New cursor shape, stored as-is. |
Return value. None.
C# (P/Invoke)
public static extern void rasChangeCursor(IntPtr CachePtr, TPDFCursor Value);
Rasterizer/Rendering
rasChangeCursor
The …A form takes UTF-8, …W
takes UTF-16; a bare name aliases the ANSI form.
Worked examples — complete programs in ten languages.