NXWidgets: crect.cxx File Reference

NXWidgets 1.19

Functions
crect.cxx File Reference

Go to the source code of this file.

## Functions
CRect | fromCoordinates (nxgl_coord_t x1, nxgl_coord_t y1, nxgl_coord_t x2, nxgl_coord_t y2)

## Function Documentation

## ◆ fromCoordinates()

CRect fromCoordinates | ( | nxgl_coord_t | x1,
|  | nxgl_coord_t | y1,
|  | nxgl_coord_t | x2,
|  | nxgl_coord_t | y2
| ) |  |

Create a rect object from the supplied coordinates.

Parameters

  x1 | The x coordinate of the rect's top-left corner.
  y1 | The y coordinate of the rect's top-left corner.
  x2 | The x coordinate of the rect's bottom-right corner.
  y2 | The y coordinate of the rect's bottom-right corner.

Returns
  A new rect.

Definition at line 155 of file crect.cxx.