Inkscape
Vector Graphics Editor
|
Callback converter for interfacing with C APIs. More...
Go to the source code of this file.
Classes | |
struct | Inkscape::Util::detail::CallbackConverter< Fp > |
struct | Inkscape::Util::detail::CallbackConverter< Fp >::Helper< Ret(Obj::*)(Args...)> |
Namespaces | |
namespace | Inkscape |
Helper class to stream background task notifications as a series of messages. | |
namespace | Inkscape::Util |
Miscellaneous supporting code. | |
namespace | Inkscape::Util::detail |
Variables | |
template<auto Fp> | |
constexpr auto | Inkscape::Util::make_c_callback = detail::CallbackConverter<Fp>::result |
Given a member function, make_c_callback produces a pure function with an extra void* argument at the end, into which an object pointer can be passed. | |
template<auto Fp> | |
auto | Inkscape::Util::make_g_callback = reinterpret_cast<void(*)()>(make_c_callback<Fp>) |
A worse version of make_c_callback that also casts the result to a GCallback, losing even more type-safety. | |
Callback converter for interfacing with C APIs.
Definition in file callback-converter.h.