From f013696f11ce259a6b803858cfd5a1f240c125e2 Mon Sep 17 00:00:00 2001 From: SpaiR Date: Thu, 9 Jul 2020 13:28:50 +0300 Subject: [PATCH] Add ImFontConfig helper methods to get ImVec2 values --- .../src/main/java/imgui/ImFontConfig.java | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/imgui-binding/src/main/java/imgui/ImFontConfig.java b/imgui-binding/src/main/java/imgui/ImFontConfig.java index 305c51b..7d90d00 100644 --- a/imgui-binding/src/main/java/imgui/ImFontConfig.java +++ b/imgui-binding/src/main/java/imgui/ImFontConfig.java @@ -181,6 +181,20 @@ public final class ImFontConfig implements ImGuiDestroyableStruct { Jni::ImVec2Cpy(env, &IM_FONT_CONFIG->GlyphExtraSpacing, dstImVec2); */ + /** + * Extra spacing (in pixels) between glyphs. Only X axis is supported for now. + */ + public native float getGlyphExtraSpacingX(); /* + return IM_FONT_CONFIG->GlyphExtraSpacing.x; + */ + + /** + * Extra spacing (in pixels) between glyphs. Only X axis is supported for now. + */ + public native float getGlyphExtraSpacingY(); /* + return IM_FONT_CONFIG->GlyphExtraSpacing.y; + */ + /** * Extra spacing (in pixels) between glyphs. Only X axis is supported for now. */ @@ -196,6 +210,20 @@ public final class ImFontConfig implements ImGuiDestroyableStruct { Jni::ImVec2Cpy(env, &IM_FONT_CONFIG->GlyphOffset, dstImVec2); */ + /** + * Offset all glyphs from this font input. + */ + public native float getGlyphOffsetX(); /* + return IM_FONT_CONFIG->GlyphOffset.x; + */ + + /** + * Offset all glyphs from this font input. + */ + public native float getGlyphOffsetY(); /* + return IM_FONT_CONFIG->GlyphOffset.y; + */ + /** * Offset all glyphs from this font input. */