When user given height is less than content height, use that (will have
a scrollbar) so we don't flip unnecessarily
Opposite of Menu example of larger than needed requested height, in
which case we use real content height to determine whether to flip
...for determining whether a popup will fit as a dropdown vs needing to
drop "up".
Additionally, pin the direction so a popup menu won't flip back and
forth as you expand/collapse a tree inside of it.
* fix: nk_font_config oversampling 3x horizontaly by default
See linked issue for additional information.
According to the commit that introduced this, it was supposed to:
_"oversample the default font to make it look better_"
but it was oversampling every single font, potentially making it blurry.
This fix preserves old behavior for code that may still expect it,
but nk_font_config will now use oversample_h=1 by default.
Some demos achieve sharp font by scaling their pixel_size and in this
case there won't be any difference, but if someone used badly behaving font
and didn't notice it only worked because of oversampling, that font
may now appear differently (this is unlikely but still possible).
Fixes: https://github.com/Immediate-Mode-UI/Nuklear/issues/855
Refs: https://github.com/Immediate-Mode-UI/Nuklear/commit/1d7f0244f97e2d35a57bc90586863ab89bea9be3
* doc: add code comment about fallback in nk_font_atlas_bake
split into another commit in case the previous one will need to be reverted
This was the last place in the library that used old /// comments.
I updated it in order to keep it consistent with everything else.
It probably doesn't make sense for internal details to appear in public
documentation, but I will worry about this later...
Several links were either dead, redirecting to different pages,
displaying 404 or entirely different content. This patch replaces
them with alive/new/archived ones in order to preserve information.
Adds CI workflow for all Windows-specific demos that require MSVC.
Because each build.bat hardcodes path to the same MSVC toolchain,
the workflow uses arch:x86 and toolset:14.0 for compatibility.
Refs: https://github.com/Immediate-Mode-UI/Nuklear/issues/895
* Add nk_input_is_mouse_hovering_delay_rect() to implement delayed popups
* Add tooltip convenience functions, and a default delay used only with appropriate convenience function
* Add 2 input hovering motionless input functions, use delayed version for delayed tooltips
* Add tooltip disappears when item is clicked functionality
* Add Doxygen comments above definitions
Remove the remaining nuklear sin/cos functions in the examples.
This follows reverting commit 07941526cc
in 6ef6f73051.
These nuklear math functions were tailored for internal use only,
since "nuklear only needs sine and cosine to generate circles" as
documented in `nuklear_math.c`.
Replacing the standard math library functions with nuklear's
approximation implementations breaks the examples in multiple places.
See https://github.com/Immediate-Mode-UI/Nuklear/issues/959
Co-authored-by: sleeptightAnsiC <91839286+sleeptightAnsiC@users.noreply.github.com>