Initial Commit

This commit is contained in:
markmental 2026-03-27 21:45:40 -04:00
commit f4fa723863
22 changed files with 1402 additions and 0 deletions

31
src/ui.h Normal file
View file

@ -0,0 +1,31 @@
#ifndef UI_H
#define UI_H
#include <SDL2/SDL.h>
#include <SDL2/SDL_ttf.h>
#include <time.h>
#include "channel.h"
#include "theme.h"
typedef struct UiFonts {
TTF_Font *small;
TTF_Font *medium;
TTF_Font *large;
} UiFonts;
void ui_render_fullscreen(SDL_Renderer *renderer, SDL_Texture *video_texture, int texture_width, int texture_height);
void ui_render_guide(SDL_Renderer *renderer,
SDL_Texture *video_texture,
int texture_width,
int texture_height,
const UiFonts *fonts,
const ChannelList *channels,
int active_channel,
time_t app_start_time,
time_t now);
void ui_render_no_media(SDL_Renderer *renderer, const UiFonts *fonts);
int ui_load_fonts(UiFonts *fonts);
void ui_destroy_fonts(UiFonts *fonts);
#endif