Go to the source code of this file.
Defines | |
#define | EMOJI_START 0xe001 |
Start of the emoji character range. | |
#define | EMOJI_END 0xe537 |
End of the emoji character range. | |
#define | EMOJI_CELL_SIZE 20 |
Size of the graphics cells. | |
#define | EMOJI_GROUP_X 16 |
The width of each group in cells. | |
#define | EMOJI_GROUP_Y 6 |
The height of each group in cells. | |
#define | EMOJI_GROUP(i) (((i)-EMOJI_START) / 256) |
#define EMOJI_GROUP | ( | i | ) | (((i)-EMOJI_START) / 256) |
Emoji glyphs are grouped into blocks of 256, but only the first (6*16) are used. So we group them and chop out the whitespace in the glyph image. The rc parameter is a rectangle struct with x1, y1, x2, y2 parameters. If using Lgi then GRect is suitable, otherwise create your own class or struct with those members.