src/gui_window_about.h
//----------------------------------------------------------------------------------
// Internal Module Functions Definition
//----------------------------------------------------------------------------------
// Draw rTool generated icon
Internal Module Functions Definition
Draw rTool generated icon
Internal Module Functions Definition Draw rTool generated icon
static void DrawIcon(int posX, int posY, int size, const char *text, int textSize, bool pro, Color color)
{
    int triSize = size/4;
    int borderSize = (int)ceil((float)size/16.0f);
    int textPosX = posX + size - 2*borderSize - MeasureText(text, textSize);
    int textPosY = posY + size - 2*borderSize - textSize;
    DrawRectangle(posX, posY, size, size, RAYWHITE);
    DrawRectangleLinesEx((Rectangle){ posX, posY, size, size }, borderSize, color);
    DrawText(text, textPosX, textPosY, textSize, color);
    if (pro) DrawTriangle((Vector2){ posX + size - 2*borderSize - triSize, posY + 2*borderSize },
                          (Vector2){ posX + size - 2*borderSize, posY + 2*borderSize + triSize },
                          (Vector2){ posX + size - 2*borderSize, posY + 2*borderSize }, color);
}
static void DrawIcon ( int posX , int posY , int size , const char * text , int textSize , bool pro , Color color ) { int triSize = size / 4 ; int borderSize = ( int ) ceil ( ( float ) size / 16.0f ) ; int textPosX = posX + size - 2 * borderSize - MeasureText ( text , textSize ) ; int textPosY = posY + size - 2 * borderSize - textSize ; DrawRectangle ( posX , posY , size , size , RAYWHITE ) ; DrawRectangleLinesEx ( ( Rectangle ) { posX , posY , size , size } , borderSize , color ) ; DrawText ( text , textPosX , textPosY , textSize , color ) ; if ( pro ) DrawTriangle ( ( Vector2 ) { posX + size - 2 * borderSize - triSize , posY + 2 * borderSize } , ( Vector2 ) { posX + size - 2 * borderSize , posY + 2 * borderSize + triSize } , ( Vector2 ) { posX + size - 2 * borderSize , posY + 2 * borderSize } , color ) ; }
Internal Module Functions Definition
Draw rTool generated icon
Internal Module Functions Definition Draw rTool generated icon