-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix create marker issue caused by highdpi scaling problem.
- Loading branch information
1 parent
6e981ea
commit 3cea413
Showing
1,306 changed files
with
304,400 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
72 changes: 72 additions & 0 deletions
72
v3d_main/common_lib/include/boost/algorithm/is_clamped.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
/* | ||
Copyright (c) Ivan Matek, Marshall Clow 2021. | ||
Distributed under the Boost Software License, Version 1.0. (See accompanying | ||
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | ||
*/ | ||
|
||
/// \file is_clamped.hpp | ||
/// \brief IsClamped algorithm | ||
/// \authors Ivan Matek, Marshall Clow | ||
/// | ||
|
||
#ifndef BOOST_ALGORITHM_IS_CLAMPED_HPP | ||
#define BOOST_ALGORITHM_IS_CLAMPED_HPP | ||
|
||
#include <functional> // for std::less | ||
#include <cassert> | ||
|
||
#include <boost/type_traits/type_identity.hpp> // for boost::type_identity | ||
|
||
namespace boost { namespace algorithm { | ||
|
||
/// \fn is_clamped ( T const& val, | ||
/// typename boost::type_identity<T>::type const & lo, | ||
/// typename boost::type_identity<T>::type const & hi, Pred p ) | ||
/// \returns true if value "val" is in the range [ lo, hi ] | ||
/// using the comparison predicate p. | ||
/// If p ( val, lo ) return false. | ||
/// If p ( hi, val ) return false. | ||
/// Otherwise, returns true. | ||
/// | ||
/// \param val The value to be checked | ||
/// \param lo The lower bound of the range | ||
/// \param hi The upper bound of the range | ||
/// \param p A predicate to use to compare the values. | ||
/// p ( a, b ) returns a boolean. | ||
/// | ||
template <typename T, typename Pred> | ||
BOOST_CXX14_CONSTEXPR bool is_clamped( | ||
T const& val, typename boost::type_identity<T>::type const& lo, | ||
typename boost::type_identity<T>::type const& hi, Pred p) { | ||
// assert ( !p ( hi, lo )); // Can't assert p ( lo, hi ) b/c they | ||
// might be equal | ||
return p(val, lo) ? false : p(hi, val) ? false : true; | ||
} | ||
|
||
/// \fn is_clamped ( T const& val, | ||
/// typename boost::type_identity<T>::type const & lo, | ||
/// typename boost::type_identity<T>::type const & hi) | ||
/// \returns true if value "val" is in the range [ lo, hi ] | ||
/// using operator < for comparison. | ||
/// If the value is less than lo, return false. | ||
/// If the value is greater than hi, return false. | ||
/// Otherwise, returns true. | ||
/// | ||
/// \param val The value to be checked | ||
/// \param lo The lower bound of the range | ||
/// \param hi The upper bound of the range | ||
/// | ||
|
||
template<typename T> | ||
BOOST_CXX14_CONSTEXPR bool is_clamped ( const T& val, | ||
typename boost::type_identity<T>::type const & lo, | ||
typename boost::type_identity<T>::type const & hi ) | ||
{ | ||
return boost::algorithm::is_clamped ( val, lo, hi, std::less<T>()); | ||
} | ||
|
||
}} | ||
|
||
#endif // BOOST_ALGORITHM_CLAMP_HPP |
33 changes: 33 additions & 0 deletions
33
v3d_main/common_lib/include/boost/any/detail/placeholder.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// Copyright Antony Polukhin, 2021-2024. | ||
// | ||
// Distributed under the Boost Software License, Version 1.0. (See | ||
// accompanying file LICENSE_1_0.txt or copy at | ||
// http://www.boost.org/LICENSE_1_0.txt) | ||
|
||
#ifndef BOOST_ANY_ANYS_DETAIL_PLACEHOLDER_HPP | ||
#define BOOST_ANY_ANYS_DETAIL_PLACEHOLDER_HPP | ||
|
||
#include <boost/config.hpp> | ||
#ifdef BOOST_HAS_PRAGMA_ONCE | ||
# pragma once | ||
#endif | ||
|
||
#include <boost/type_index.hpp> | ||
|
||
/// @cond | ||
namespace boost { | ||
namespace anys { | ||
namespace detail { | ||
|
||
class BOOST_SYMBOL_VISIBLE placeholder { | ||
public: | ||
virtual ~placeholder() {} | ||
virtual const boost::typeindex::type_info& type() const noexcept = 0; | ||
}; | ||
|
||
} // namespace detail | ||
} // namespace anys | ||
} // namespace boost | ||
/// @endcond | ||
|
||
#endif // #ifndef BOOST_ANY_ANYS_DETAIL_PLACEHOLDER_HPP |
Oops, something went wrong.