mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-30 22:01:13 +00:00
Move Callback and internal Models to the private_api namespace
This commit is contained in:
parent
61d533812d
commit
daff9e8e65
3 changed files with 7 additions and 7 deletions
|
@ -11,7 +11,7 @@ LICENSE END */
|
|||
#include <tuple>
|
||||
#include "sixtyfps_properties_internal.h"
|
||||
|
||||
namespace sixtyfps {
|
||||
namespace sixtyfps::private_api {
|
||||
|
||||
/// A Callback stores a function pointer with no parameters and no return value.
|
||||
/// It's possible to set that pointer via set_handler() and it can be invoked via call(). This is
|
||||
|
@ -102,7 +102,6 @@ private:
|
|||
cbindgen_private::CallbackOpaque inner;
|
||||
};
|
||||
|
||||
namespace private_api {
|
||||
template<typename A, typename R>
|
||||
struct CallbackSignatureHelper
|
||||
{
|
||||
|
@ -115,6 +114,5 @@ struct CallbackSignatureHelper<void, 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