[wpigui] Add OpenURL (#4273)

This function opens a URL using the default browser.
This commit is contained in:
Peter Johnson
2022-05-29 18:45:39 -07:00
committed by GitHub
parent e67f8e917a
commit d1cd07b9f3
2 changed files with 46 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#pragma once
#include <string>
namespace wpi::gui {
/**
* Opens a URL in the default browser.
*
* @param url URL to open
*/
void OpenURL(const std::string& url);
} // namespace wpi::gui