summaryrefslogtreecommitdiff
path: root/Layout/Layout.h
diff options
context:
space:
mode:
Diffstat (limited to 'Layout/Layout.h')
-rw-r--r--Layout/Layout.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/Layout/Layout.h b/Layout/Layout.h
index 5b25458..5e7ece2 100644
--- a/Layout/Layout.h
+++ b/Layout/Layout.h
@@ -42,11 +42,14 @@ class Layout {
void clear();
void startUpdate();
void endUpdate();
- bool writeField(uint8_t col, uint8_t row, std::string field, bool apply = false);
- bool writeField(uint8_t col, uint8_t row, const char* field, size_t size, bool apply = false);
- bool writeImage(uint8_t col, uint8_t row, const uint8_t* bmp, bool apply = false);
+ bool writeLabel(const Label& label);
+ bool writeField(const Field& field, const std::string& value, bool apply = false);
+ bool writeImage(const Image& image, bool apply = false);
private:
+ bool writeText(uint8_t col, uint8_t row, const char* value, size_t size);
+ bool writeBmp(uint8_t col, uint8_t row, const uint8_t* bmp);
+
DOGS102* _lcd;
};