SSD1306 OLED display driver  1.6.1
This library is developed to control SSD1306/SSD1331/SSD1351/IL9163/PCD8554 RGB i2c/spi LED displays
Public Member Functions | Public Attributes | List of all members
_NanoPoint Struct Reference

#include <canvas.h>

Public Member Functions

void setPoint (lcdint_t px, lcdint_t py)
 
_NanoPointoperator>>= (const uint8_t bits)
 
_NanoPointoperator<<= (const uint8_t bits)
 
_NanoPointoperator+= (const _NanoPoint &p)
 
_NanoPointoperator-= (const _NanoPoint &p)
 
_NanoPoint operator- (const _NanoPoint &p)
 
_NanoPoint operator+ (const _NanoPoint &p)
 
_NanoPoint operator>> (const uint8_t bits)
 
_NanoPoint operator<< (const uint8_t bits)
 

Public Attributes

lcdint_t x
 
lcdint_t y
 

Detailed Description

Describes point

Definition at line 45 of file canvas.h.

Member Function Documentation

◆ operator+()

_NanoPoint _NanoPoint::operator+ ( const _NanoPoint p)
inline

Adds point.

Parameters
p- point values to add to the point.

Definition at line 117 of file canvas.h.

◆ operator+=()

_NanoPoint& _NanoPoint::operator+= ( const _NanoPoint p)
inline

Adds point.

Parameters
p- point values to add to the point.

Definition at line 85 of file canvas.h.

◆ operator-()

_NanoPoint _NanoPoint::operator- ( const _NanoPoint p)
inline

Subtracts point.

Parameters
p- point values to subtract from the point.

Definition at line 107 of file canvas.h.

◆ operator-=()

_NanoPoint& _NanoPoint::operator-= ( const _NanoPoint p)
inline

Subtracts point.

Parameters
p- point values to subtract from the point.

Definition at line 96 of file canvas.h.

◆ operator<<()

_NanoPoint _NanoPoint::operator<< ( const uint8_t  bits)
inline

Shifts left x,y value of the point by bits value.

Parameters
bits- number of bits to shift

Definition at line 137 of file canvas.h.

◆ operator<<=()

_NanoPoint& _NanoPoint::operator<<= ( const uint8_t  bits)
inline

Shifts left x,y value of the point by bits value.

Parameters
bits- number of bits to shift

Definition at line 74 of file canvas.h.

◆ operator>>()

_NanoPoint _NanoPoint::operator>> ( const uint8_t  bits)
inline

Shifts right x,y value of the point by bits value.

Parameters
bits- number of bits to shift

Definition at line 127 of file canvas.h.

◆ operator>>=()

_NanoPoint& _NanoPoint::operator>>= ( const uint8_t  bits)
inline

Shifts right x,y value of the point by bits value.

Parameters
bits- number of bits to shift

Definition at line 63 of file canvas.h.

◆ setPoint()

void _NanoPoint::setPoint ( lcdint_t  px,
lcdint_t  py 
)
inline

Initializes NanoPoint with specified values

Parameters
px- x position
py- y position

Definition at line 57 of file canvas.h.

Member Data Documentation

◆ x

lcdint_t _NanoPoint::x

x position in pixels

Definition at line 48 of file canvas.h.

◆ y

lcdint_t _NanoPoint::y

y position in pixels

Definition at line 50 of file canvas.h.


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