Class PointerTools
Pointer tools
Inheritance
Namespace: Terminaux.Inputs.Pointer
Assembly: Terminaux.dll
Syntax
public static class PointerTools
Methods
| Edit this page View SourcePointerWithinPoint(PointerEventContext, (int x, int y))
Checks to see if the returned pointer event context is in the range of the two dimensions (if the mouse pointer is within the boundaries)
Declaration
public static bool PointerWithinPoint(PointerEventContext context, (int x, int y) point)
Parameters
Type | Name | Description |
---|---|---|
PointerEventContext | context | Pointer event context (You can easily obtain it using the ReadPointerOrKey(InputEventType) function) |
(int Width, int Height) | point | Point position |
Returns
Type | Description |
---|---|
bool | True if the pointer is within the specified point position; false otherwise |
PointerWithinPoint(PointerEventContext, Coordinate)
Checks to see if the returned pointer event context is in the range of the two dimensions (if the mouse pointer is within the boundaries)
Declaration
public static bool PointerWithinPoint(PointerEventContext context, Coordinate point)
Parameters
Type | Name | Description |
---|---|---|
PointerEventContext | context | Pointer event context (You can easily obtain it using the ReadPointerOrKey(InputEventType) function) |
Coordinate | point | Point position |
Returns
Type | Description |
---|---|
bool | True if the pointer is within the specified point position; false otherwise |
PointerWithinRange(PointerEventContext, (int x, int y), (int x, int y))
Checks to see if the returned pointer event context is in the range of the two dimensions (if the mouse pointer is within the boundaries)
Declaration
public static bool PointerWithinRange(PointerEventContext context, (int x, int y) start, (int x, int y) end)
Parameters
Type | Name | Description |
---|---|---|
PointerEventContext | context | Pointer event context (You can easily obtain it using the ReadPointerOrKey(InputEventType) function) |
(int Width, int Height) | start | Starting position representing an upper left corner of the rectangle |
(int Width, int Height) | end | Ending position representing a lower right corner of the rectangle |
Returns
Type | Description |
---|---|
bool | True if the pointer is within the range; false otherwise |
PointerWithinRange(PointerEventContext, Coordinate, Coordinate)
Checks to see if the returned pointer event context is in the range of the two dimensions (if the mouse pointer is within the boundaries)
Declaration
public static bool PointerWithinRange(PointerEventContext context, Coordinate start, Coordinate end)
Parameters
Type | Name | Description |
---|---|---|
PointerEventContext | context | Pointer event context (You can easily obtain it using the ReadPointerOrKey(InputEventType) function) |
Coordinate | start | Starting position representing an upper left corner of the rectangle |
Coordinate | end | Ending position representing a lower right corner of the rectangle |
Returns
Type | Description |
---|---|
bool | True if the pointer is within the range; false otherwise |