CheeseBoard
A library for use with the CheeseBoard Cheddar platform
src
GfxTextBox.h
1
#pragma once
2
3
#include <Arduino.h>
4
#include <stdint.h>
5
#include "GfxItem.h"
6
7
class
GfxTextBox
:
public
GfxItem
{
8
public
:
9
GfxTextBox
(uint16_t
width
, String text,
bool
border=
false
);
10
void
draw
(uint16_t xOffset=0, uint16_t yOffset=0);
11
uint16_t
width
();
12
uint16_t
height
();
13
14
protected
:
15
uint16_t _width;
16
String _text;
17
bool
_border;
18
19
};
20
GfxItem
Definition:
GfxItem.h:5
GfxTextBox
Definition:
GfxTextBox.h:7
GfxTextBox::width
uint16_t width()
Definition:
GfxTextBox.cpp:33
GfxTextBox::height
uint16_t height()
Definition:
GfxTextBox.cpp:38
GfxTextBox::draw
void draw(uint16_t xOffset=0, uint16_t yOffset=0)
Definition:
GfxTextBox.cpp:12
Generated by
1.8.13