CheeseBoard
A library for use with the CheeseBoard Cheddar platform
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 
Definition: GfxItem.h:5
uint16_t width()
Definition: GfxTextBox.cpp:33
uint16_t height()
Definition: GfxTextBox.cpp:38
void draw(uint16_t xOffset=0, uint16_t yOffset=0)
Definition: GfxTextBox.cpp:12