Furrent
Classes | Typedefs | Variables
fur::gui Namespace Reference

Classes

struct  GuiScrollTorrentState
 
struct  GuiTorrentDialogState
 
class  Window
 Responsible for rendering the UI. More...
 

Typedefs

using torrent_insert_fn = std::function< std::optional< TorrentGuiData >(const std::string &, const std::string &)>
 
using torrent_update_fn = std::function< TorrentGuiData(TorrentID tid)>
 
using torrent_remove_fn = std::function< void(const TorrentGuiData &)>
 

Variables

const int DARK_BROWN_HEX = static_cast<int>(0x876645FF)
 
const int ORANGE_HEX = static_cast<int>(0xD27607FF)
 
const int LIGHT_BACKGROUND_HEX = static_cast<int>(0xF6F2EEFF)
 
const int DARK_BACKGROUND_HEX = static_cast<int>(0xBA9978FF)
 
const int PRESSED_BACKGROUND_HEX = static_cast<int>(0xEDE9E0FF)
 
const int DOWNLOADING_COLOR_HEX = static_cast<int>(0x0091FFFF)
 
const int STOP_COLOR_HEX = static_cast<int>(0xFFAF7AFF)
 
const int DONE_COLOR_HEX = static_cast<int>(0x00FF5EFF)
 
const int ERROR_COLOR_HEX = static_cast<int>(0xFFA590FF)
 
const Color DARK_BROWN_COLOR = GetColor(DARK_BROWN_HEX)
 
const Color DARK_BACKGROUND_COLOR = GetColor(DARK_BACKGROUND_HEX)
 
const Color PRESSED_BACKGROUND_COLOR = GetColor(PRESSED_BACKGROUND_HEX)
 
const Color DIALOG_BACKGROUND_COLOR = Fade(PRESSED_BACKGROUND_COLOR, 0.85f)
 
const int WINDOW_BORDER = 5
 

Typedef Documentation

◆ torrent_insert_fn

using fur::gui::torrent_insert_fn = typedef std::function<std::optional<TorrentGuiData>( const std::string&, const std::string&)>

◆ torrent_remove_fn

using fur::gui::torrent_remove_fn = typedef std::function<void(const TorrentGuiData&)>

◆ torrent_update_fn

using fur::gui::torrent_update_fn = typedef std::function<TorrentGuiData(TorrentID tid)>

Variable Documentation

◆ DARK_BACKGROUND_COLOR

const Color fur::gui::DARK_BACKGROUND_COLOR = GetColor(DARK_BACKGROUND_HEX)

◆ DARK_BACKGROUND_HEX

const int fur::gui::DARK_BACKGROUND_HEX = static_cast<int>(0xBA9978FF)

◆ DARK_BROWN_COLOR

const Color fur::gui::DARK_BROWN_COLOR = GetColor(DARK_BROWN_HEX)

◆ DARK_BROWN_HEX

const int fur::gui::DARK_BROWN_HEX = static_cast<int>(0x876645FF)

◆ DIALOG_BACKGROUND_COLOR

const Color fur::gui::DIALOG_BACKGROUND_COLOR = Fade(PRESSED_BACKGROUND_COLOR, 0.85f)

◆ DONE_COLOR_HEX

const int fur::gui::DONE_COLOR_HEX = static_cast<int>(0x00FF5EFF)

◆ DOWNLOADING_COLOR_HEX

const int fur::gui::DOWNLOADING_COLOR_HEX = static_cast<int>(0x0091FFFF)

◆ ERROR_COLOR_HEX

const int fur::gui::ERROR_COLOR_HEX = static_cast<int>(0xFFA590FF)

◆ LIGHT_BACKGROUND_HEX

const int fur::gui::LIGHT_BACKGROUND_HEX = static_cast<int>(0xF6F2EEFF)

◆ ORANGE_HEX

const int fur::gui::ORANGE_HEX = static_cast<int>(0xD27607FF)

◆ PRESSED_BACKGROUND_COLOR

const Color fur::gui::PRESSED_BACKGROUND_COLOR = GetColor(PRESSED_BACKGROUND_HEX)

◆ PRESSED_BACKGROUND_HEX

const int fur::gui::PRESSED_BACKGROUND_HEX = static_cast<int>(0xEDE9E0FF)

◆ STOP_COLOR_HEX

const int fur::gui::STOP_COLOR_HEX = static_cast<int>(0xFFAF7AFF)

◆ WINDOW_BORDER

const int fur::gui::WINDOW_BORDER = 5