31 lines
894 B
C
31 lines
894 B
C
|
|
#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
|