Home Notices Documents Classes Download Others Rice
Classes  >  mouse  >  X
mouse class : X getter

Description

Gets a x-coordinate of the cursor's position.

Syntax

mouseInstance.X

Arguments

None.

Return value

ClassDescription
intx-coordinate of the cursor's position.

Sample code

1:

mouse m = new mouse();

2:

int x = m.X;

Notes

Return value is a x-coordinate of the screen coordinates.

Links for reference

Copyright © Rice All rights reserved.