mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 06:11:16 +00:00
Hide CallbackHelper and CallbackSignatureHelper from the API docs
There's no hide-from-docs tag for doxygen, so move these into the private_api namespace.
This commit is contained in:
parent
51d532d209
commit
0a3ec534ae
2 changed files with 3 additions and 1 deletions
|
@ -83,10 +83,12 @@ private:
|
|||
cbindgen_private::CallbackOpaque inner;
|
||||
};
|
||||
|
||||
namespace private_api {
|
||||
template<typename A, typename R> struct CallbackSignatureHelper { using Result = R(A); };
|
||||
template<typename R> struct CallbackSignatureHelper<void, R> { using Result = R(); };
|
||||
template<typename A, typename R = void> using CallbackHelper =
|
||||
Callback<typename CallbackSignatureHelper<A, R>::Result>;
|
||||
}
|
||||
|
||||
} // namespace sixtyfps
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue