API referenceRendering & Viewer

rasChangeCursor

Explicitly set the cache's stored cursor shape (the

C
void __stdcall rasChangeCursor(IPGC CachePtr, TPDFCursor Value);
Delphi
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.

ParameterDescription
CachePtrTarget page cache.
ValueNew cursor shape, stored as-is.

Return value. None.

C# (P/Invoke)

wrappers/dotnet/LumasPdf.cs
public static extern void rasChangeCursor(IntPtr CachePtr, TPDFCursor Value);
Area
Rendering & Viewer
Category

Rasterizer/Rendering

Exported names

rasChangeCursor

String variants

The …A form takes UTF-8, …W takes UTF-16; a bare name aliases the ANSI form.

See working code

Worked examples — complete programs in ten languages.