Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: graphics/EAFont.h
- Revision:
- 7:6cf21b018420
- Parent:
- 6:4fe6f365cbeb
--- a/graphics/EAFont.h Thu May 06 23:32:14 2010 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,55 +0,0 @@
-// Copyright 2010 Richard Parker
-
-#ifndef MBED_EAFONT_H
-#define MBED_EAFONT_H
-
-#include "mbed.h"
-#include "../widgets/EAImage.h"
-
-class EALCD;
-
-/**
- * Class to handle the font for the EA LCD.
- * @author Richard Parker
- */
-class EAFont
-{
-public:
- friend EALCD;
-
- struct EACharacter
- {
- unsigned char id;
- unsigned char x;
- unsigned char y;
- unsigned char width;
- unsigned char height;
- unsigned char xOffset;
- unsigned char yOffset;
- unsigned char xAdvance;
- };
-
- EAFont();
- ~EAFont();
-
- inline const char* path() const { return _path; }
-
- inline bool isValid() const { return (_path != NULL); }
-
- bool load(const char* path);
-
- inline void setCached(bool value) { _img.setCached(value); }
- inline bool isCached() { return _img.isCached(); }
-
-private:
- char* _path;
- EACharacter* _chars;
- int _noChars;
- EAImage _img;
-
- bool _getCharacter(char c, EACharacter& detail);
- inline EAImage* _data() { return &_img; }
-
-};
-
-#endif
\ No newline at end of file