Ersa Wearable Platform
Embedded smartwatch firmware and application framework
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
ersa::Point Struct Reference

#include <types.h>

Public Member Functions

constexpr Point ()=default
 
constexpr Point (int16_t px, int16_t py)
 

Public Attributes

int16_t x {0}
 
int16_t y {0}
 

Detailed Description

Logical pixel coordinate whose origin is the display's top-left corner.

Constructor & Destructor Documentation

◆ Point() [1/2]

constexpr ersa::Point::Point ( )
constexprdefault

Construct the origin point.

◆ Point() [2/2]

constexpr ersa::Point::Point ( int16_t  px,
int16_t  py 
)
inlineconstexpr

Construct a point at the supplied coordinates.

Member Data Documentation

◆ x

int16_t ersa::Point::x {0}

Horizontal position increasing toward the right edge.

◆ y

int16_t ersa::Point::y {0}

Vertical position increasing toward the bottom edge.


The documentation for this struct was generated from the following file: