getmaxx

This function is used to get the maximum x-coordinate in the physical coordinates of the graphics window.

int getmaxx();

Parameters

None

Return Value

The maximum x-coordinate in the physical coordinates of the graphics window.

Remarks

This function is obsolete and is declared only in graphics.h.

It is recommended that use getwidth() - 1 instead of this function.

getmaxx() always returns the maximum x-coordinates in the physical coordinates of the graphics window, regardless of the zoom setting. Equivalent to getwidth() - 1. For example, if the graphics window is initialized to 640 x 480, getwidth() returns 640 and getmaxx() returns 639.

Examples

None

(贡献者:Krissi  编辑