|
@@ -2426,6 +2426,10 @@ struct ImGuiContext
|
|
ImGuiPlatformImeData PlatformImeData; // Data updated by current frame. Will be applied at end of the frame. For some backends, this is required to have WantVisible=true in order to receive text message.
|
|
ImGuiPlatformImeData PlatformImeData; // Data updated by current frame. Will be applied at end of the frame. For some backends, this is required to have WantVisible=true in order to receive text message.
|
|
ImGuiPlatformImeData PlatformImeDataPrev; // Previous frame data. When changed we call the platform_io.Platform_SetImeDataFn() handler.
|
|
ImGuiPlatformImeData PlatformImeDataPrev; // Previous frame data. When changed we call the platform_io.Platform_SetImeDataFn() handler.
|
|
|
|
|
|
|
|
+ // Extensions
|
|
|
|
+ // FIXME: We could provide an API to register one slot in an array held in ImGuiContext?
|
|
|
|
+ ImVector<ImTextureData*> UserTextures; // List of textures created/managed by user or third-party extension. Automatically appended into platform_io.Textures[].
|
|
|
|
+
|
|
// Settings
|
|
// Settings
|
|
bool SettingsLoaded;
|
|
bool SettingsLoaded;
|
|
float SettingsDirtyTimer; // Save .ini Settings to memory when time reaches zero
|
|
float SettingsDirtyTimer; // Save .ini Settings to memory when time reaches zero
|
|
@@ -3108,6 +3112,8 @@ namespace ImGui
|
|
IMGUI_API void SetNextWindowRefreshPolicy(ImGuiWindowRefreshFlags flags);
|
|
IMGUI_API void SetNextWindowRefreshPolicy(ImGuiWindowRefreshFlags flags);
|
|
|
|
|
|
// Fonts, drawing
|
|
// Fonts, drawing
|
|
|
|
+ IMGUI_API void RegisterUserTexture(ImTextureData* tex); // Register external texture
|
|
|
|
+ IMGUI_API void UnregisterUserTexture(ImTextureData* tex);
|
|
IMGUI_API void RegisterFontAtlas(ImFontAtlas* atlas);
|
|
IMGUI_API void RegisterFontAtlas(ImFontAtlas* atlas);
|
|
IMGUI_API void UnregisterFontAtlas(ImFontAtlas* atlas);
|
|
IMGUI_API void UnregisterFontAtlas(ImFontAtlas* atlas);
|
|
IMGUI_API void SetCurrentFont(ImFont* font, float font_size);
|
|
IMGUI_API void SetCurrentFont(ImFont* font, float font_size);
|