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
x1The x coordinate of the rect's top-left corner.
y1The y coordinate of the rect's top-left corner.
x2The x coordinate of the rect's bottom-right corner.
y2The y coordinate of the rect's bottom-right corner.
Returns
A new rect.

Definition at line 155 of file crect.cxx.