27#ifndef FFTOOLS_FFPLAY_LIST_H
28#define FFTOOLS_FFPLAY_LIST_H
static SDL_Renderer * renderer
int list_view_selected(const ListView *lv)
void list_view_set_size(ListView *lv, int width, int height)
Sets the size of the window the list is drawn into.
ListView * list_view_alloc(SDL_Renderer *renderer)
void list_view_set_playing(ListView *lv, int entry)
Marks the entry as playing, -1 for none.
void list_view_free(ListView **lv)
int list_view_show(ListView *lv, const ListEntry *entries, int nb_entries, int selected)
Replaces the entries and shows the list, fading it in.
int list_view_pinned(const ListView *lv)
int list_view_click(ListView *lv, int x, int y, int *chosen)
Handles a left click at window coordinates: a click on an entry chooses it, a click on a column butto...
void list_view_move(ListView *lv, int delta)
Moves the selection by delta rows.
void list_view_clear_search(ListView *lv)
Clears the search, listing all entries.
void list_view_hover(ListView *lv, int x, int y)
Keeps the mouse position, in window coordinates, -1 when the mouse left the window.
int list_view_visible(const ListView *lv)
void list_view_pin(ListView *lv, int pinned)
Keeps the list on screen and lets it take the keyboard and text input, or lets it fade out again.
int list_view_update(ListView *lv)
Brings the list up to date for the next frame, once the pending input is handled.
void list_view_text(ListView *lv, const char *text)
Appends text typed while the list is pinned to the search, or erases its last character when text is ...
void list_view_draw(ListView *lv)
Draws the list onto the window, between its other content and the present.
int list_view_key(ListView *lv, SDL_Keycode key)
Handles a key while the list is pinned: escape unpins it, up/down move the selection,...
void list_view_clear(ListView *lv)
Removes the entries, which may be freed after this, and resets the sort and the search.
AVDictionary * metadata
shown when the mouse is over the entry's symbol, may be NULL
int64_t length
in AV_TIME_BASE units, negative when unknown