#include <Font.h>
TinyFont::Font< Width, Height >に対する継承グラフ
Public 型 | |
typedef boost::uint8_t | uint8_t |
typedef boost::uint32_t | uint32_t |
Public メソッド | |
Font () | |
Font (const uint8_t *ioBytes) | |
const uint8_t * | data () const |
格納バッファ先頭アドレス取得 | |
bool | operator[] (uint32_t i) const |
先頭から i 番目のビットを得る | |
void | getImage (uint32_t nth, Image &outImage) const |
nth 番目のイメージを取得 | |
Static Public メソッド | |
uint8_t | charToIndex (uint8_t ch) |
見つからなかった場合は、numChars 以上の値を返す | |
Static Public 変数 | |
const uint8_t | width = Width |
const uint8_t | height = Height |
const uint8_t | numChars = '~' - '!' + 1 |
const uint32_t | bitSize = width * height * numChars |
const uint32_t | byteSize = ( bitSize + 7 ) / 8 |
Private 変数 | |
const uint8_t * | bytes_ |
|
参照元 TinyFont::Font< Width, Height >::Image::operator()(), と TinyFont::Font< Width, Height >::Image::operator[](). |
|
|
|
00029 {} |
|
00030 : bytes_( ioBytes ) {} |
|
見つからなかった場合は、numChars 以上の値を返す
00033 { 00034 return ch > '!' ? ch - '!' : numChars; 00035 } |
|
格納バッファ先頭アドレス取得
TinyFont::WritableFont< Width, Height >で再定義されています。
00038 { 00039 return bytes_; 00040 } |
|
nth 番目のイメージを取得
|
|
先頭から i 番目のビットを得る
TinyFont::WritableFont< Width, Height >で再定義されています。
00043 { 00044 return ( bytes_[ i / 8 ] >> ( i % 8 ) ) & 0x1; 00045 } |
|
|
|
|
|
|
|
|
|
|
|
|