24 lines
611 B
C
24 lines
611 B
C
#ifndef LIST_H
|
|
#define LIST_H
|
|
|
|
#include <SDL2/SDL_rect.h>
|
|
#include <SDL2/SDL_render.h>
|
|
#include <SDL2/SDL_ttf.h>
|
|
#include <SDL2/SDL.h>
|
|
#include "../includes/texture_font_cache.h"
|
|
|
|
typedef struct {
|
|
unsigned int Capacity;
|
|
unsigned int Size;
|
|
char** Strings;
|
|
SDL_Rect MaxTestSize;
|
|
SDL_FRect BoundingBox;
|
|
TextureFontCache* TextureCache;
|
|
} List;
|
|
|
|
List* CreateList(SDL_FRect boundingBox);
|
|
void AddStringToList(char* text, List* list);
|
|
void RenderList(SDL_Renderer* renderer, SDL_Point motion, List* list);
|
|
void ListFontSizeHasChanged(SDL_Renderer* renderer, TTF_Font* font, List* list);
|
|
|
|
#endif |