raygui/styles/enefete/enefete.h

354 lines
17 KiB
C
Raw Normal View History

//////////////////////////////////////////////////////////////////////////////////
// //
// StyleAsCode exporter v1.2 - Style data exported as a values array //
// //
// USAGE: On init call: GuiLoadStyleEnefete(); //
// //
// more info and bugs-report: github.com/raysan5/raygui //
// feedback and support: ray[at]raylibtech.com //
// //
// Copyright (c) 2020-2022 raylib technologies (@raylibtech) //
// //
//////////////////////////////////////////////////////////////////////////////////
#define ENEFETE_STYLE_PROPS_COUNT 16
// Custom style name: enefete
static const GuiStyleProp enefeteStyleProps[ENEFETE_STYLE_PROPS_COUNT] = {
{ 0, 0, 0x1980d5ff }, // DEFAULT_BORDER_COLOR_NORMAL
{ 0, 1, 0x4df3ebff }, // DEFAULT_BASE_COLOR_NORMAL
{ 0, 2, 0x103e60ff }, // DEFAULT_TEXT_COLOR_NORMAL
{ 0, 3, 0xe7e2f7ff }, // DEFAULT_BORDER_COLOR_FOCUSED
{ 0, 4, 0x23d4ddff }, // DEFAULT_BASE_COLOR_FOCUSED
{ 0, 5, 0xf1f1f1ff }, // DEFAULT_TEXT_COLOR_FOCUSED
{ 0, 6, 0x6413a6ff }, // DEFAULT_BORDER_COLOR_PRESSED
{ 0, 7, 0xea66d9ff }, // DEFAULT_BASE_COLOR_PRESSED
{ 0, 8, 0x9f00bbff }, // DEFAULT_TEXT_COLOR_PRESSED
{ 0, 9, 0x4b909eff }, // DEFAULT_BORDER_COLOR_DISABLED
{ 0, 10, 0x73c7d0ff }, // DEFAULT_BASE_COLOR_DISABLED
{ 0, 11, 0x448894ff }, // DEFAULT_TEXT_COLOR_DISABLED
{ 0, 16, 0x00000010 }, // DEFAULT_TEXT_SIZE
{ 0, 17, 0x00000000 }, // DEFAULT_TEXT_SPACING
{ 0, 18, 0x1d3f6cff }, // DEFAULT_LINE_COLOR
{ 0, 19, 0x29c9e5ff }, // DEFAULT_BACKGROUND_COLOR
};
// WARNING: This style uses a custom font: GenericMobileSystemNuevo.ttf (size: 16, spacing: 0)
#define ENEFETE_COMPRESSED_DATA_SIZE 1270
// Font image pixels data compressed (DEFLATE)
// NOTE: Original pixel data simplified to GRAYSCALE
static unsigned char enefeteFontData[ENEFETE_COMPRESSED_DATA_SIZE] = { 0xed,
0xdd, 0x51, 0x96, 0xe3, 0x26, 0x10, 0x05, 0x50, 0xf6, 0xbf, 0xe9, 0xca, 0xc9, 0x47, 0x72, 0x26, 0x93, 0x69, 0x01, 0x45,
0x21, 0x61, 0xf9, 0xf6, 0xfd, 0xb3, 0xda, 0xdd, 0x32, 0xcf, 0x12, 0x92, 0x29, 0x70, 0x34, 0x00, 0x80, 0xdf, 0xfc, 0xfd,
0xf3, 0xe7, 0xc7, 0xfe, 0xb4, 0xe5, 0x7a, 0xdb, 0x3f, 0xbf, 0xd1, 0xdb, 0x12, 0x3f, 0xee, 0x49, 0x5c, 0x6c, 0x1b, 0xfb,
0x5f, 0xb9, 0xfd, 0x8a, 0xa9, 0xb6, 0x89, 0x8b, 0x56, 0x6b, 0xcb, 0x8f, 0xb7, 0xcb, 0xb6, 0xbf, 0x7a, 0xd6, 0xf3, 0xf9,
0xc7, 0xc5, 0x3e, 0xc6, 0xbf, 0x19, 0xc4, 0xc5, 0x7e, 0xc4, 0xe5, 0xd6, 0x91, 0x44, 0xaf, 0xfe, 0x77, 0x5d, 0x42, 0xab,
0x7f, 0x25, 0xba, 0x47, 0xc2, 0x5c, 0x0b, 0x9d, 0x90, 0x7f, 0xfc, 0xd2, 0xce, 0x91, 0xcc, 0x60, 0x3c, 0xff, 0xba, 0xa3,
0xf6, 0xfa, 0x3d, 0xbb, 0xaf, 0x85, 0xaf, 0xda, 0x69, 0xfe, 0x6c, 0x55, 0xb7, 0x77, 0xd7, 0xbf, 0xdd, 0x3b, 0x03, 0xee,
0xc8, 0xbf, 0xe2, 0x78, 0xfb, 0xf9, 0x2f, 0xc7, 0xc4, 0x99, 0xa4, 0xa6, 0x7d, 0x7b, 0xaf, 0xf6, 0xd4, 0xfc, 0x47, 0x8f,
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75, 0xfe, 0x77, 0xf5, 0xff, 0x6d, 0x61, 0x55, 0xe6, 0xda, 0xf3, 0x7f, 0x76,
0x16, 0xc6, 0xea, 0xbb, 0x6d, 0x75, 0xb6, 0xe1, 0xf3, 0xc7, 0xff, 0x93, 0xd5, 0xa3, 0x95, 0xfb, 0x73, 0x4e, 0xe5, 0xe1,
0x67, 0xf5, 0xff, 0xf2, 0x3f, 0xa3, 0x72, 0xb6, 0x3d, 0xfc, 0x1d, 0x1d, 0xdf, 0x59, 0xaf, 0xfe, 0xc9, 0xaf, 0x54, 0xad,
0xf5, 0xb7, 0xd7, 0xe6, 0x6b, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x93, 0x47, 0x73, 0x62, 0x72, 0x75, 0xd7, 0xd9,
0xfa, 0x9f, 0xf8, 0x65, 0x74, 0x58, 0x9b, 0x7f, 0xce, 0x08, 0x76, 0xcd, 0xaa, 0x8e, 0xd1, 0x7d, 0x97, 0x71, 0x66, 0xfd,
0x42, 0x55, 0xfe, 0xdf, 0x56, 0x25, 0xf1, 0x96, 0xea, 0x95, 0xda, 0x55, 0x5d, 0x79, 0xcb, 0x0c, 0x40, 0xf9, 0x9b, 0xff,
0xf9, 0xed, 0x95, 0x70, 0xdf, 0x70, 0xfd, 0xef, 0xf8, 0xf7, 0xee, 0x90, 0xbf, 0xfc, 0xe5, 0x2f, 0x7f, 0xf9, 0xcb, 0x5f,
0xfe, 0xaa, 0xfd, 0x73, 0xf3, 0x3f, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x8f, 0xf3, 0x17 };
// Font characters rectangles data
static const Rectangle enefeteFontRecs[95] = {
{ 4, 4, 4 , 16 },
{ 16, 4, 2 , 10 },
{ 26, 4, 5 , 3 },
{ 39, 4, 7 , 10 },
{ 54, 4, 7 , 13 },
{ 69, 4, 7 , 10 },
{ 84, 4, 7 , 10 },
{ 99, 4, 2 , 3 },
{ 109, 4, 3 , 12 },
{ 120, 4, 3 , 12 },
{ 131, 4, 5 , 6 },
{ 144, 4, 6 , 5 },
{ 158, 4, 2 , 4 },
{ 168, 4, 5 , 1 },
{ 181, 4, 2 , 2 },
{ 191, 4, 4 , 10 },
{ 203, 4, 6 , 10 },
{ 217, 4, 4 , 10 },
{ 229, 4, 6 , 10 },
{ 4, 28, 6 , 10 },
{ 18, 28, 6 , 10 },
{ 32, 28, 6 , 10 },
{ 46, 28, 6 , 10 },
{ 60, 28, 6 , 10 },
{ 74, 28, 6 , 10 },
{ 88, 28, 6 , 10 },
{ 102, 28, 2 , 6 },
{ 112, 28, 2 , 8 },
{ 122, 28, 7 , 7 },
{ 137, 28, 5 , 3 },
{ 150, 28, 7 , 7 },
{ 165, 28, 6 , 10 },
{ 179, 28, 7 , 12 },
{ 194, 28, 7 , 10 },
{ 209, 28, 7 , 10 },
{ 224, 28, 7 , 10 },
{ 239, 28, 7 , 10 },
{ 4, 52, 7 , 10 },
{ 19, 52, 7 , 10 },
{ 34, 52, 7 , 10 },
{ 49, 52, 7 , 10 },
{ 64, 52, 2 , 10 },
{ 74, 52, 5 , 10 },
{ 87, 52, 7 , 10 },
{ 102, 52, 6 , 10 },
{ 116, 52, 9 , 10 },
{ 133, 52, 7 , 10 },
{ 148, 52, 7 , 10 },
{ 163, 52, 7 , 10 },
{ 178, 52, 7 , 12 },
{ 193, 52, 7 , 10 },
{ 208, 52, 7 , 10 },
{ 223, 52, 6 , 10 },
{ 237, 52, 7 , 10 },
{ 4, 76, 7 , 10 },
{ 19, 76, 8 , 10 },
{ 35, 76, 7 , 10 },
{ 50, 76, 6 , 10 },
{ 64, 76, 7 , 10 },
{ 79, 76, 4 , 12 },
{ 91, 76, 4 , 10 },
{ 103, 76, 4 , 12 },
{ 115, 76, 6 , 3 },
{ 129, 76, 7 , 1 },
{ 144, 76, 4 , 3 },
{ 156, 76, 6 , 7 },
{ 170, 76, 6 , 10 },
{ 184, 76, 6 , 7 },
{ 198, 76, 6 , 10 },
{ 212, 76, 6 , 7 },
{ 226, 76, 4 , 10 },
{ 238, 76, 6 , 9 },
{ 4, 100, 6 , 10 },
{ 18, 100, 2 , 10 },
{ 28, 100, 5 , 12 },
{ 41, 100, 6 , 10 },
{ 55, 100, 3 , 10 },
{ 66, 100, 8 , 7 },
{ 82, 100, 6 , 7 },
{ 96, 100, 6 , 7 },
{ 110, 100, 6 , 9 },
{ 124, 100, 6 , 9 },
{ 138, 100, 5 , 7 },
{ 151, 100, 6 , 7 },
{ 165, 100, 4 , 10 },
{ 177, 100, 6 , 7 },
{ 191, 100, 6 , 7 },
{ 205, 100, 8 , 7 },
{ 221, 100, 6 , 7 },
{ 235, 100, 6 , 9 },
{ 4, 124, 6 , 7 },
{ 18, 124, 5 , 12 },
{ 31, 124, 2 , 12 },
{ 41, 124, 5 , 12 },
{ 54, 124, 7 , 3 },
};
// Font glyphs info data
// NOTE: No glyphs.image data provided
static const GlyphInfo enefeteFontChars[95] = {
{ 32, 0, 12, 4, { 0 }},
{ 33, 0, 2, 3, { 0 }},
{ 34, 0, 2, 6, { 0 }},
{ 35, 0, 2, 8, { 0 }},
{ 36, 0, 1, 8, { 0 }},
{ 37, 0, 2, 8, { 0 }},
{ 38, 0, 2, 8, { 0 }},
{ 39, 0, 2, 3, { 0 }},
{ 40, 0, 2, 4, { 0 }},
{ 41, 0, 2, 4, { 0 }},
{ 42, 0, 4, 6, { 0 }},
{ 43, 0, 6, 7, { 0 }},
{ 44, 0, 10, 3, { 0 }},
{ 45, 0, 8,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0, 2, 7, { 0 }},
{ 95, 0, 14, 8, { 0 }},
{ 96, 0, 2, 5, { 0 }},
{ 97, 0, 5, 7, { 0 }},
{ 98, 0, 2, 7, { 0 }},
{ 99, 0, 5, 7, { 0 }},
{ 100, 0, 2, 7, { 0 }},
{ 101, 0, 5, 7, { 0 }},
{ 102, 0, 2, 5, { 0 }},
{ 103, 0, 5, 7, { 0 }},
{ 104, 0, 2, 7, { 0 }},
{ 105, 0, 2, 3, { 0 }},
{ 106, 0, 2, 6, { 0 }},
{ 107, 0, 2, 7, { 0 }},
{ 108, 0, 2, 4, { 0 }},
{ 109, 0, 5, 9, { 0 }},
{ 110, 0, 5, 7, { 0 }},
{ 111, 0, 5, 7, { 0 }},
{ 112, 0, 5, 7, { 0 }},
{ 113, 0, 5, 7, { 0 }},
{ 114, 0, 5, 6, { 0 }},
{ 115, 0, 5, 7, { 0 }},
{ 116, 0, 2, 5, { 0 }},
{ 117, 0, 5, 7, { 0 }},
{ 118, 0, 5, 7, { 0 }},
{ 119, 0, 5, 9, { 0 }},
{ 120, 0, 5, 7, { 0 }},
{ 121, 0, 5, 7, { 0 }},
{ 122, 0, 5, 7, { 0 }},
{ 123, 0, 2, 6, { 0 }},
{ 124, 0, 2, 3, { 0 }},
{ 125, 0, 2, 6, { 0 }},
{ 126, 0, 6, 8, { 0 }},
};
// Style loading function: enefete
static void GuiLoadStyleEnefete(void)
{
// Load style properties provided
// NOTE: Default properties are propagated
for (int i = 0; i < ENEFETE_STYLE_PROPS_COUNT; i++)
{
GuiSetStyle(enefeteStyleProps[i].controlId, enefeteStyleProps[i].propertyId, enefeteStyleProps[i].propertyValue);
}
// Custom font loading
// NOTE: Compressed font image data (DEFLATE), it requires DecompressData() function
int enefeteFontDataSize = 0;
unsigned char *data = DecompressData(enefeteFontData, ENEFETE_COMPRESSED_DATA_SIZE, &enefeteFontDataSize);
Image imFont = { data, 256, 256, 1, 2 };
Font font = { 0 };
font.baseSize = 16;
font.glyphCount = 95;
// Load texture from image
font.texture = LoadTextureFromImage(imFont);
UnloadImage(imFont); // Uncompressed data can be unloaded from memory
// Copy char recs data from global fontRecs
// NOTE: Required to avoid issues if trying to free font
font.recs = (Rectangle *)malloc(font.glyphCount*sizeof(Rectangle));
memcpy(font.recs, enefeteFontRecs, font.glyphCount*sizeof(Rectangle));
// Copy font char info data from global fontChars
// NOTE: Required to avoid issues if trying to free font
font.glyphs = (GlyphInfo *)malloc(font.glyphCount*sizeof(GlyphInfo));
memcpy(font.glyphs, enefeteFontChars, font.glyphCount*sizeof(GlyphInfo));
GuiSetFont(font);
// TODO: Setup a white rectangle on the font to be used on shapes drawing,
// this way we make sure all gui can be drawn on a single pass because no texture change is required
// NOTE: Setting up this rectangle is a manual process (for the moment)
2022-03-07 17:16:18 +01:00
Rectangle whiteChar = { 99, 4, 2, 2 };
SetShapesTexture(font.texture, whiteChar);
//-----------------------------------------------------------------
// TODO: Custom user style setup: Set specific properties here (if required)
// i.e. Controls specific BORDER_WIDTH, TEXT_PADDING, TEXT_ALIGNMENT
}