Package imgui.binding

Class ImGuiStructDestroyable

java.lang.Object
imgui.binding.ImGuiStruct
imgui.binding.ImGuiStructDestroyable
Direct Known Subclasses:
ImFont, ImFontAtlas, ImFontConfig, ImFontGlyph, ImGuiKeyData, ImGuiListClipper, ImGuiStorage, ImGuiStyle, ImGuiTextFilter, ImGuiWindowClass, ImPlotInputMap, ImPlotSpec, ImPlotStyle, MemoryEditor, MemoryEditorSizes, NodeEditorConfig, TextEditor

public abstract class ImGuiStructDestroyable extends ImGuiStruct
Class extends ImGuiStruct and provides additional API to allocated and de-allocate native objects.
  • Constructor Details

    • ImGuiStructDestroyable

      public ImGuiStructDestroyable()
      Constructor, which creates natively allocated struct. Those structs should be manually disposed with destroy() method.
    • ImGuiStructDestroyable

      public ImGuiStructDestroyable(long ptr)
  • Method Details

    • create

      protected abstract long create()
    • destroy

      public void destroy()
      Method to free natively allocated memory for the struct mapped with pointer.