Skip to content
/ desktop Public

🛸 Desktop utilities (File-Dialogs, ...)

License

Notifications You must be signed in to change notification settings

saucer/desktop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Desktop module for saucer


📦 Installation

  • Using CPM

    CPMFindPackage(
      NAME           saucer-desktop
      VERSION        1.0.0
      GIT_REPOSITORY "https://github.com/saucer/desktop"
    )
  • Using FetchContent

    include(FetchContent)
    
    FetchContent_Declare(saucer-desktop GIT_REPOSITORY "https://github.com/saucer/desktop" GIT_TAG v1.0.0)
    FetchContent_MakeAvailable(saucer-desktop)

Finally, link against target:

target_link_libraries(<target> saucer::desktop)

📃 Usage

using saucer::modules::desktop::picker::type;

auto app      = saucer::application::acquire(/*...*/);
auto& desktop = app->add_module<saucer::modules::desktop>();

desktop.open("https://google.com");
auto file = desktop.pick<type::file>({.filters = {"*.cpp"}});