CheeseBoard
A library for use with the CheeseBoard Cheddar platform
Public Member Functions | Protected Attributes | List of all members
GfxTextBox Class Reference
Inheritance diagram for GfxTextBox:
Inheritance graph

Public Member Functions

 GfxTextBox (uint16_t width, String text, bool border=false)
 
void draw (uint16_t xOffset=0, uint16_t yOffset=0)
 
uint16_t width ()
 
uint16_t height ()
 

Protected Attributes

uint16_t _width
 
String _text
 
bool _border
 

Detailed Description

Definition at line 7 of file GfxTextBox.h.

Member Function Documentation

◆ draw()

void GfxTextBox::draw ( uint16_t  xOffset = 0,
uint16_t  yOffset = 0 
)
virtual

Draw the object on the display (don't send buffer).

Implements GfxItem.

Definition at line 12 of file GfxTextBox.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ height()

uint16_t GfxTextBox::height ( )
virtual

Get object height.

Returns
Object height in pixels.

Implements GfxItem.

Definition at line 38 of file GfxTextBox.cpp.

Here is the caller graph for this function:

◆ width()

uint16_t GfxTextBox::width ( )
virtual

Get object width.

Returns
Object width in pixels.

Implements GfxItem.

Definition at line 33 of file GfxTextBox.cpp.

Here is the caller graph for this function:

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