Go to the documentation of this file.
3 #include <raylib/file_dialog.h>
4 #include <raylib/raygui.h>
5 #include <raylib/raylib.h>
30 const std::string&,
const std::string&)>;
41 bool _button_file_dialog;
44 GuiFileDialogState _file_loader;
54 Window(
const std::string& title,
int width,
int height);
66 void configure_style();
71 void render_file_dialog();
73 void render_torrent_item(
const TorrentGuiData& torrent,
float pos);
75 void render_torrents();
77 void render_confirm_dialog();
void set_torrent_insert_fn(torrent_insert_fn fn)
Definition: gui.cpp:64
virtual ~Window()
Definition: gui.cpp:37
bool play
True if the button play has been pressed.
Definition: gui.hpp:16
std::function< std::optional< TorrentGuiData >(const std::string &, const std::string &)> torrent_insert_fn
Definition: gui.hpp:30
std::function< TorrentGuiData(TorrentID tid)> torrent_update_fn
Definition: gui.hpp:31
std::function< void(const TorrentGuiData &)> torrent_remove_fn
Definition: gui.hpp:32
int64_t TorrentID
Definition: types.hpp:8
void set_torrent_update_fn(torrent_update_fn fn)
Definition: gui.cpp:68
Definition: furrent.hpp:14
void set_torrent_remove_fn(torrent_remove_fn fn)
Definition: gui.cpp:72
Window(const std::string &title, int width, int height)
Constructs a new window of a fixed size.
Definition: gui.cpp:20
Responsible for rendering the UI.
Definition: gui.hpp:35
bool delete_torrent
True if the button delete of a specific torrent has been pressed.
Definition: gui.hpp:18
TorrentGuiData torrent
Target torrent.
Definition: gui.hpp:20
void run()
Start the UI loop.
Definition: gui.cpp:39