@@ -3832,6 +3832,8 @@ NK_API void nk_tooltip_pos_offset(struct nk_context *ctx, const char *text, enum
38323832#ifdef NK_INCLUDE_STANDARD_VARARGS
38333833NK_API void nk_tooltipf(struct nk_context*, NK_PRINTF_FORMAT_STRING const char*, ...) NK_PRINTF_VARARG_FUNC(2);
38343834NK_API void nk_tooltipfv(struct nk_context*, NK_PRINTF_FORMAT_STRING const char*, va_list) NK_PRINTF_VALIST_FUNC(2);
3835+ NK_API void nk_tooltipf_pos_offset(struct nk_context*, enum nk_tooltip_pos, struct nk_vec2, NK_PRINTF_FORMAT_STRING const char*, ...) NK_PRINTF_VARARG_FUNC(4);
3836+ NK_API void nk_tooltipfv_pos_offset(struct nk_context*, enum nk_tooltip_pos, struct nk_vec2, NK_PRINTF_FORMAT_STRING const char*, va_list) NK_PRINTF_VALIST_FUNC(4);
38353837#endif
38363838NK_API nk_bool nk_tooltip_begin(struct nk_context*, float width);
38373839NK_API nk_bool nk_tooltip_begin_pos_offset(struct nk_context*, float, enum nk_tooltip_pos, struct nk_vec2);
@@ -30765,6 +30767,14 @@ nk_tooltip(struct nk_context *ctx, const char *text)
3076530767}
3076630768#ifdef NK_INCLUDE_STANDARD_VARARGS
3076730769NK_API void
30770+ nk_tooltipf_pos_offset(struct nk_context *ctx, enum nk_tooltip_pos position, struct nk_vec2 offset, const char *fmt, ...)
30771+ {
30772+ va_list args;
30773+ va_start(args, fmt);
30774+ nk_tooltipfv_pos_offset(ctx, position, offset, fmt, args);
30775+ va_end(args);
30776+ }
30777+ NK_API void
3076830778nk_tooltipf(struct nk_context *ctx, const char *fmt, ...)
3076930779{
3077030780 va_list args;
@@ -30773,6 +30783,13 @@ nk_tooltipf(struct nk_context *ctx, const char *fmt, ...)
3077330783 va_end(args);
3077430784}
3077530785NK_API void
30786+ nk_tooltipfv_pos_offset(struct nk_context *ctx, enum nk_tooltip_pos position, struct nk_vec2 offset, const char *fmt, va_list args)
30787+ {
30788+ char buf[256];
30789+ nk_strfmt(buf, NK_LEN(buf), fmt, args);
30790+ nk_tooltip_pos_offset(ctx, buf, position, offset);
30791+ }
30792+ NK_API void
3077630793nk_tooltipfv(struct nk_context *ctx, const char *fmt, va_list args)
3077730794{
3077830795 char buf[256];
0 commit comments