Plotly.cpp 0.1.0
A C++ plotting library for expressive, interactive, real-time & streaming data visualization
Loading...
Searching...
No Matches
browser.hpp
Go to the documentation of this file.
1#ifndef PLOTLY_DETAILS_SYSTEM_UTILS_HPP
2#define PLOTLY_DETAILS_SYSTEM_UTILS_HPP
3
4#include <filesystem>
5#include <functional>
6#include <string_view>
7#include <vector>
8namespace plotly::detail {
9
10auto isDisplayAvailable() -> bool;
11
12auto isChromiumAvailable() -> bool;
13
14auto isGoogleChromeAvailable() -> bool;
15
16auto openBrowser(std::string_view url) -> bool;
17
18auto openChromiumWithHeadlessMode(std::string_view url,
19 int remoteDebuggingPort = 9222)
20 -> std::pair<bool, std::function<void()>>;
21
22auto setDownloadDirectory(const std::filesystem::path &directory,
23 int remoteDebuggingPort = 9222) -> bool;
24
25auto getIpv4Addresses() -> std::vector<std::string>;
26
27auto getDefaultDownloadDirectory() -> std::filesystem::path;
28
29} // namespace plotly::detail
30
31#endif // PLOTLY_DETAILS_SYSTEM_UTILS_HPP
Definition browser.cpp:27
auto isChromiumAvailable() -> bool
Definition browser.cpp:38
auto openBrowser(const std::string_view url) -> bool
Definition browser.cpp:48
auto getIpv4Addresses() -> std::vector< std::string >
Definition browser.cpp:164
auto isDisplayAvailable() -> bool
Definition browser.cpp:29
auto openChromiumWithHeadlessMode(const std::string_view url, int remoteDebuggingPort) -> std::pair< bool, std::function< void()> >
Definition browser.cpp:91
auto getDefaultDownloadDirectory() -> std::filesystem::path
Definition browser.cpp:239
auto isGoogleChromeAvailable() -> bool
Definition browser.cpp:43
auto setDownloadDirectory(const std::filesystem::path &directory, int remoteDebuggingPort) -> bool
Definition browser.cpp:191