GetMaxX Macro

Microchip Graphics Library

Microchip Graphics Library
GetMaxX Macro
C
#define GetMaxX (DISP_HOR_RESOLUTION - 1)
Overview

Returns maximum horizontal coordinate.

Returns

Maximum horizontal coordinate.

Preconditions

none

Side Effects

none

Example
// Create a window that will occupy the whole screen.
WndCreate(0xFF,                     // ID
          0,0,
          GetMaxX(),GetMaxY(),      // dimension
          WND_DRAW,                 // will be dislayed after creation
          (void*)&mchpIcon,         // use icon used
          pText,                    // set to text pointed to by pText
          NULL);                    // use default scheme 
Microchip Graphics Library Version 3.06.02 - October 15, 2012
Copyright © 2012 Microchip Technology, Inc.  All rights reserved