API referenceRendering & Viewer

rasResetMousePos

Cancel any in-progress mouse drag/selection tracking and

C
void __stdcall rasResetMousePos(IPGC CachePtr);
Delphi
procedure rasResetMousePos(CachePtr: IPGC); stdcall;

Purpose. Cancel any in-progress mouse drag/selection tracking and reset the cache's last-known mouse position.

Description. Zeroes C.MouseX/C.MouseY and clears C.Dragging — real state consumed by the mouse-event handlers (Mouse and Keyboard Input); useful for a host to call when e.g. the mouse capture is lost or focus changes mid-drag.

Parameters.

ParameterDescription
CachePtrTarget page cache.

Return value. None.

C# (P/Invoke)

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

Rasterizer/Rendering

Exported names

rasResetMousePos

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.