This is an old version of the documentation. View the latest version here.
Control Surface  1.0.0
MIDI Control Surface library for Arduino
Public Member Functions | Static Public Member Functions | Protected Attributes | Static Protected Attributes | Private Attributes | List of all members
MCU::TimeDisplayDisplay Class Reference

#include <TimeDisplayDisplay.hpp>

Inheritance diagram for MCU::TimeDisplayDisplay:
Collaboration diagram for MCU::TimeDisplayDisplay:

Public Member Functions

 TimeDisplayDisplay (DisplayInterface &display, const TimeDisplay &timedisplay, PixelLocation loc, uint8_t size, uint16_t color)
 
void draw () override
 Draw this DisplayElement to the display buffer. More...
 
int16_t getX () const
 
int16_t getY () const
 
uint8_t getSize () const
 
uint16_t getColor () const
 
void setX (int16_t x)
 
void setY (int16_t y)
 
void setSize (uint8_t size)
 
void setColor (uint16_t color)
 
DisplayInterfacegetDisplay ()
 Get a reference to the display that this element draws to. More...
 
const DisplayInterfacegetDisplay () const
 Get a const reference to the display that this element draws to. More...
 

Static Public Member Functions

static DoublyLinkedList< DisplayElement > & getAll ()
 Get the list of all DisplayElement instances. More...
 

Protected Attributes

DisplayInterfacedisplay
 
DisplayElementnext
 
DisplayElementprevious
 

Static Protected Attributes

static DoublyLinkedList< DisplayElementelements
 

Private Attributes

const TimeDisplaytimedisplay
 
int16_t x
 
int16_t y
 
uint8_t size
 
uint16_t color
 

Detailed Description

Examples
MCU-OLED-SSD1306-x2.ino, and MCU-OLED-SSD1306.ino.

Definition at line 11 of file TimeDisplayDisplay.hpp.

Constructor & Destructor Documentation

◆ TimeDisplayDisplay()

MCU::TimeDisplayDisplay::TimeDisplayDisplay ( DisplayInterface display,
const TimeDisplay timedisplay,
PixelLocation  loc,
uint8_t  size,
uint16_t  color 
)
inline

Definition at line 13 of file TimeDisplayDisplay.hpp.

Member Function Documentation

◆ draw()

void MCU::TimeDisplayDisplay::draw ( )
inlineoverridevirtual

Draw this DisplayElement to the display buffer.

Implements DisplayElement.

Definition at line 19 of file TimeDisplayDisplay.hpp.

◆ getX()

int16_t MCU::TimeDisplayDisplay::getX ( ) const
inline

Definition at line 35 of file TimeDisplayDisplay.hpp.

◆ getY()

int16_t MCU::TimeDisplayDisplay::getY ( ) const
inline

Definition at line 36 of file TimeDisplayDisplay.hpp.

◆ getSize()

uint8_t MCU::TimeDisplayDisplay::getSize ( ) const
inline

Definition at line 37 of file TimeDisplayDisplay.hpp.

◆ getColor()

uint16_t MCU::TimeDisplayDisplay::getColor ( ) const
inline

Definition at line 38 of file TimeDisplayDisplay.hpp.

◆ setX()

void MCU::TimeDisplayDisplay::setX ( int16_t  x)
inline

Definition at line 40 of file TimeDisplayDisplay.hpp.

◆ setY()

void MCU::TimeDisplayDisplay::setY ( int16_t  y)
inline

Definition at line 41 of file TimeDisplayDisplay.hpp.

◆ setSize()

void MCU::TimeDisplayDisplay::setSize ( uint8_t  size)
inline

Definition at line 42 of file TimeDisplayDisplay.hpp.

◆ setColor()

void MCU::TimeDisplayDisplay::setColor ( uint16_t  color)
inline

Definition at line 43 of file TimeDisplayDisplay.hpp.

◆ getDisplay() [1/2]

DisplayInterface& DisplayElement::getDisplay ( )
inlineinherited

Get a reference to the display that this element draws to.

Definition at line 36 of file DisplayElement.hpp.

◆ getDisplay() [2/2]

const DisplayInterface& DisplayElement::getDisplay ( ) const
inlineinherited

Get a const reference to the display that this element draws to.

Definition at line 38 of file DisplayElement.hpp.

◆ getAll()

static DoublyLinkedList<DisplayElement>& DisplayElement::getAll ( )
inlinestaticinherited

Get the list of all DisplayElement instances.

Definition at line 41 of file DisplayElement.hpp.

Member Data Documentation

◆ timedisplay

const TimeDisplay& MCU::TimeDisplayDisplay::timedisplay
private

Definition at line 46 of file TimeDisplayDisplay.hpp.

◆ x

int16_t MCU::TimeDisplayDisplay::x
private

Definition at line 47 of file TimeDisplayDisplay.hpp.

◆ y

int16_t MCU::TimeDisplayDisplay::y
private

Definition at line 47 of file TimeDisplayDisplay.hpp.

◆ size

uint8_t MCU::TimeDisplayDisplay::size
private

Definition at line 48 of file TimeDisplayDisplay.hpp.

◆ color

uint16_t MCU::TimeDisplayDisplay::color
private

Definition at line 49 of file TimeDisplayDisplay.hpp.

◆ display

DisplayInterface& DisplayElement::display
protectedinherited

Definition at line 44 of file DisplayElement.hpp.

◆ elements

DoublyLinkedList< DisplayElement > DisplayElement::elements
staticprotectedinherited

Definition at line 46 of file DisplayElement.hpp.

◆ next

DisplayElement * DoublyLinkable< DisplayElement >::next
protectedinherited

Definition at line 301 of file LinkedList.hpp.

◆ previous

DisplayElement * DoublyLinkable< DisplayElement >::previous
protectedinherited

Definition at line 302 of file LinkedList.hpp.


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