fg_mouselim()

Win32 DirectX Fastgraph/Light

Prototype

void fg_mouselim (int minx, int maxx, int miny, int maxy);

Sub fg_mouselim (ByVal minx As Long, ByVal maxx As Long, ByVal miny As Long, ByVal maxy As Long)

procedure fg_mouselim (minx, maxx, miny, maxy : integer);

Description

The fg_mouselim() function defines the rectangular area in which the mouse cursor may move. The area is defined in virtual buffer coordinates and is automatically translated to the equivalent client coordinates.

Parameters

minx is the x coordinate of the area's left edge.

maxx is the x coordinate of the area's right edge. If maxx is less than minx, the mouse cursor can move anywhere on the screen.

miny is the y coordinate of the area's top edge.

maxy is the y coordinate of the area's bottom edge. If maxy is less than miny, the mouse cursor can move anywhere on the screen.

Return value

none

Restrictions

none

See also

fg_mouseini(), fg_mousemov()

Contents
Fastgraph Home Page

 

copyright 2001 Ted Gruber Software, Inc.