diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 07fae24..bdb089e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,7 @@ jobs: fail-fast: false matrix: version: - - '1.9' + - '1.10' - '1' - 'nightly' os: diff --git a/Project.toml b/Project.toml index 73a0ae6..8a6f1ff 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "CImGui" uuid = "5d785b6c-b76f-510e-a07c-3070796c7e87" authors = ["Yupei Qi "] -version = "6.1.0" +version = "6.1.1" [deps] CEnum = "fa961155-64e5-5f13-b03f-caf6b980ea82" @@ -27,9 +27,9 @@ CImGuiPack_jll = "0.10.0" CSyntax = "0.4" DocStringExtensions = "0.9.3" GLFW = "3" -GLMakie = "0.10.6, 0.12, 0.13" +GLMakie = "0.13" ModernGL = "1" PrecompileTools = "1.2.1" Printf = "1" Statistics = "1" -julia = "1.9" +julia = "1.10" diff --git a/docs/src/_changelog.md b/docs/src/_changelog.md index 29baf4f..e1a6496 100644 --- a/docs/src/_changelog.md +++ b/docs/src/_changelog.md @@ -6,6 +6,12 @@ CurrentModule = CImGui This documents notable changes in CImGui.jl. The format is based on [Keep a Changelog](https://keepachangelog.com). +## [v6.1.1] - 2025-09-27 + +### Fixed +- Fixed compatibility with Makie 0.24/GLMakie 0.13 and Julia 1.12 ([#180]). This + required bumping the minimum support Julia version to 1.10. + ## [v6.1.0] - 2025-07-30 ### Changed diff --git a/ext/MakieIntegration.jl b/ext/MakieIntegration.jl index fb61fe2..b884dde 100644 --- a/ext/MakieIntegration.jl +++ b/ext/MakieIntegration.jl @@ -160,6 +160,7 @@ function ig.MakieFigure(title_id::String, f::GLMakie.Figure; resize!(f, new_size[1], new_size[2]) end + GLMakie.poll_updates(imfigure.screen) do_render = GLMakie.requires_update(imfigure.screen) if do_render idx = mod1(imfigure.times_idx, length(imfigure.render_times)) diff --git a/gen/generator.jl b/gen/generator.jl index 52f714b..88f339b 100644 --- a/gen/generator.jl +++ b/gen/generator.jl @@ -102,7 +102,7 @@ function imgui_to_jl_type(ig_type) [:(NTuple{2})] elseif parsed_type === :ImVec4 [:(NTuple{4})] - elseif getproperty(bindings_module, parsed_type) in (Cint, Cuint) + elseif @invokelatest(getproperty(bindings_module, parsed_type)) in (Cint, Cuint) [:Integer] elseif endswith(string(parsed_type), "Callback") # Allow passing CFunctions and Ptr{Cvoid}'s to callback arguments @@ -119,7 +119,7 @@ function imgui_to_jl_type(ig_type) # Note that we have to use getproperty() and catch an exception because # `bindings_module` is an anonymous module, for which propertynames() # doesn't work as usual. - getproperty(bindings_module, enum_type) + @invokelatest getproperty(bindings_module, enum_type) pushfirst!(unions, enum_type) catch ex if !(ex isa UndefVarError) @@ -572,6 +572,13 @@ function generate() $(w.docstring) \"\"\" """) + + # If the function name is exported from Base then we need to explicitly + # declare a new function with `function` to avoid warnings on 1.12+. + if Base.isexported(Base, Symbol(w.name)) + write(io, "function $(w.name) end\n") + end + write(io, string(w.expr), "\n\n") end diff --git a/lib/aarch64-apple-darwin20.jl b/lib/aarch64-apple-darwin20.jl index a831809..7b69951 100644 --- a/lib/aarch64-apple-darwin20.jl +++ b/lib/aarch64-apple-darwin20.jl @@ -1,4 +1,4 @@ -using CEnum +using CEnum: CEnum, @cenum to_c_type(t::Type) = t to_c_type_pairs(va_list) = map(enumerate(to_c_type.(va_list))) do (ind, type) @@ -474,6 +474,14 @@ function Base.setproperty!(x::Ptr{ImFontGlyph}, f::Symbol, v) end end +function Base.propertynames(x::ImFontGlyph, private::Bool = false) + (:Colored, :Visible, :SourceIdx, :Codepoint, :AdvanceX, :X0, :Y0, :X1, :Y1, :U0, :V0, :U1, :V1, :PackId, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImFontGlyph Size::Cint Capacity::Cint @@ -547,6 +555,14 @@ function Base.setproperty!(x::Ptr{ImFontBaked}, f::Symbol, v) end end +function Base.propertynames(x::ImFontBaked, private::Bool = false) + (:IndexAdvanceX, :FallbackAdvanceX, :Size, :RasterizerDensity, :IndexLookup, :Glyphs, :FallbackGlyphIndex, :Ascent, :Descent, :MetricsTotalSurface, :WantDestroy, :LockLoadingFallback, :LastUsedFrame, :BakedId, :ContainerFont, :FontLoaderDatas, if private + fieldnames(typeof(x)) + else + () + end...) +end + const ImFontFlags = Cint const ImS8 = Int8 @@ -663,6 +679,14 @@ function Base.setproperty!(x::Ptr{ImGuiStoragePair}, f::Symbol, v) unsafe_store!(getproperty(x, f), v) end +function Base.propertynames(x::ImGuiStoragePair, private::Bool = false) + (:key, :val_i, :val_f, :val_p, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiStoragePair Size::Cint Capacity::Cint @@ -784,6 +808,14 @@ function Base.setproperty!(x::Ptr{ImFontAtlasRectEntry}, f::Symbol, v) end end +function Base.propertynames(x::ImFontAtlasRectEntry, private::Bool = false) + (:TargetIndex, :Generation, :IsUsed, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImFontAtlasRectEntry Size::Cint Capacity::Cint @@ -1558,6 +1590,14 @@ function Base.setproperty!(x::Ptr{ImGuiInputEvent}, f::Symbol, v) unsafe_store!(getproperty(x, f), v) end +function Base.propertynames(x::ImGuiInputEvent, private::Bool = false) + (:Type, :Source, :EventId, :MousePos, :MouseWheel, :MouseButton, :MouseViewport, :Key, :Text, :AppFocused, :AddedByTestEngine, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiInputEvent Size::Cint Capacity::Cint @@ -1957,6 +1997,14 @@ function Base.setproperty!(x::Ptr{ImGuiDockNode}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiDockNode, private::Bool = false) + (:ID, :SharedFlags, :LocalFlags, :LocalFlagsInWindows, :MergedFlags, :State, :ParentNode, :ChildNodes, :Windows, :TabBar, :Pos, :Size, :SizeRef, :SplitAxis, :WindowClass, :LastBgColor, :HostWindow, :VisibleWindow, :CentralNode, :OnlyNodeWithWindows, :CountNodeWithWindows, :LastFrameAlive, :LastFrameActive, :LastFrameFocused, :LastFocusedNodeId, :SelectedTabId, :WantCloseTabId, :RefViewportId, :AuthorityForPos, :AuthorityForSize, :AuthorityForViewport, :IsVisible, :IsFocused, :IsBgDrawnThisFrame, :HasCloseButton, :HasWindowMenuButton, :HasCentralNodeChild, :WantCloseAll, :WantLockSizeOnce, :WantMouseMove, :WantHiddenTabBarUpdate, :WantHiddenTabBarToggle, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImGuiWindow data::NTuple{1224, UInt8} end @@ -2133,6 +2181,14 @@ function Base.setproperty!(x::Ptr{ImGuiWindow}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiWindow, private::Bool = false) + (:Ctx, :Name, :ID, :Flags, :FlagsPreviousFrame, :ChildFlags, :WindowClass, :Viewport, :ViewportId, :ViewportPos, :ViewportAllowPlatformMonitorExtend, :Pos, :Size, :SizeFull, :ContentSize, :ContentSizeIdeal, :ContentSizeExplicit, :WindowPadding, :WindowRounding, :WindowBorderSize, :TitleBarHeight, :MenuBarHeight, :DecoOuterSizeX1, :DecoOuterSizeY1, :DecoOuterSizeX2, :DecoOuterSizeY2, :DecoInnerSizeX1, :DecoInnerSizeY1, :NameBufLen, :MoveId, :TabId, :ChildId, :PopupId, :Scroll, :ScrollMax, :ScrollTarget, :ScrollTargetCenterRatio, :ScrollTargetEdgeSnapDist, :ScrollbarSizes, :ScrollbarX, :ScrollbarY, :ScrollbarXStabilizeEnabled, :ScrollbarXStabilizeToggledHistory, :ViewportOwned, :Active, :WasActive, :WriteAccessed, :Collapsed, :WantCollapseToggle, :SkipItems, :SkipRefresh, :Appearing, :Hidden, :IsFallbackWindow, :IsExplicitChild, :HasCloseButton, :ResizeBorderHovered, :ResizeBorderHeld, :BeginCount, :BeginCountPreviousFrame, :BeginOrderWithinParent, :BeginOrderWithinContext, :FocusOrder, :AutoFitFramesX, :AutoFitFramesY, :AutoFitOnlyGrows, :AutoPosLastDirection, :HiddenFramesCanSkipItems, :HiddenFramesCannotSkipItems, :HiddenFramesForRenderOnly, :DisableInputsFrames, :SetWindowPosAllowFlags, :SetWindowSizeAllowFlags, :SetWindowCollapsedAllowFlags, :SetWindowDockAllowFlags, :SetWindowPosVal, :SetWindowPosPivot, :IDStack, :DC, :OuterRectClipped, :InnerRect, :InnerClipRect, :WorkRect, :ParentWorkRect, :ClipRect, :ContentRegionRect, :HitTestHoleSize, :HitTestHoleOffset, :LastFrameActive, :LastFrameJustFocused, :LastTimeActive, :ItemWidthDefault, :StateStorage, :ColumnsStorage, :FontWindowScale, :FontWindowScaleParents, :FontRefSize, :SettingsOffset, :DrawList, :DrawListInst, :ParentWindow, :ParentWindowInBeginStack, :RootWindow, :RootWindowPopupTree, :RootWindowDockTree, :RootWindowForTitleBarHighlight, :RootWindowForNav, :ParentWindowForFocusRoute, :NavLastChildNavWindow, :NavLastIds, :NavRectRel, :NavPreferredScoringPosRel, :NavRootFocusScopeId, :MemoryDrawListIdxCapacity, :MemoryDrawListVtxCapacity, :MemoryCompacted, :DockIsActive, :DockNodeIsVisible, :DockTabIsVisible, :DockTabWantClose, :DockOrder, :DockStyle, :DockNode, :DockNodeAsHost, :DockId, if private + fieldnames(typeof(x)) + else + () + end...) +end + const ImGuiItemFlags = Cint struct ImGuiLastItemData @@ -2313,6 +2369,14 @@ function Base.setproperty!(x::Ptr{ImGuiStyleMod}, f::Symbol, v) unsafe_store!(getproperty(x, f), v) end +function Base.propertynames(x::ImGuiStyleMod, private::Bool = false) + (:VarIdx, :BackupInt, :BackupFloat, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiStyleMod Size::Cint Capacity::Cint @@ -2799,6 +2863,14 @@ function Base.setproperty!(x::Ptr{ImGuiTableColumn}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiTableColumn, private::Bool = false) + (:Flags, :WidthGiven, :MinX, :MaxX, :WidthRequest, :WidthAuto, :WidthMax, :StretchWeight, :InitStretchWeightOrWidth, :ClipRect, :UserID, :WorkMinX, :WorkMaxX, :ItemWidth, :ContentMaxXFrozen, :ContentMaxXUnfrozen, :ContentMaxXHeadersUsed, :ContentMaxXHeadersIdeal, :NameOffset, :DisplayOrder, :IndexWithinEnabledSet, :PrevEnabledColumn, :NextEnabledColumn, :SortOrder, :DrawChannelCurrent, :DrawChannelFrozen, :DrawChannelUnfrozen, :IsEnabled, :IsUserEnabled, :IsUserEnabledNextFrame, :IsVisibleX, :IsVisibleY, :IsRequestOutput, :IsSkipItems, :IsPreserveWidthAuto, :NavLayerCurrent, :AutoFitQueue, :CannotSkipItemsQueue, :SortDirection, :SortDirectionsAvailCount, :SortDirectionsAvailMask, :SortDirectionsAvailList, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImSpan_ImGuiTableColumn Data::Ptr{ImGuiTableColumn} DataEnd::Ptr{ImGuiTableColumn} @@ -3027,6 +3099,14 @@ function Base.setproperty!(x::Ptr{ImGuiTable}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiTable, private::Bool = false) + (:ID, :Flags, :RawData, :TempData, :Columns, :DisplayOrderToIndex, :RowCellData, :EnabledMaskByDisplayOrder, :EnabledMaskByIndex, :VisibleMaskByIndex, :SettingsLoadedFlags, :SettingsOffset, :LastFrameActive, :ColumnsCount, :CurrentRow, :CurrentColumn, :InstanceCurrent, :InstanceInteracted, :RowPosY1, :RowPosY2, :RowMinHeight, :RowCellPaddingY, :RowTextBaseline, :RowIndentOffsetX, :RowFlags, :LastRowFlags, :RowBgColorCounter, :RowBgColor, :BorderColorStrong, :BorderColorLight, :BorderX1, :BorderX2, :HostIndentX, :MinColumnWidth, :OuterPaddingX, :CellPaddingX, :CellSpacingX1, :CellSpacingX2, :InnerWidth, :ColumnsGivenWidth, :ColumnsAutoFitWidth, :ColumnsStretchSumWeights, :ResizedColumnNextWidth, :ResizeLockMinContentsX2, :RefScale, :AngledHeadersHeight, :AngledHeadersSlope, :OuterRect, :InnerRect, :WorkRect, :InnerClipRect, :BgClipRect, :Bg0ClipRectForDrawCmd, :Bg2ClipRectForDrawCmd, :HostClipRect, :HostBackupInnerClipRect, :OuterWindow, :InnerWindow, :ColumnsNames, :DrawSplitter, :InstanceDataFirst, :InstanceDataExtra, :SortSpecsSingle, :SortSpecsMulti, :SortSpecs, :SortSpecsCount, :ColumnsEnabledCount, :ColumnsEnabledFixedCount, :DeclColumnsCount, :AngledHeadersCount, :HoveredColumnBody, :HoveredColumnBorder, :HighlightColumnHeader, :AutoFitSingleColumn, :ResizedColumn, :LastResizedColumn, :HeldHeaderColumn, :ReorderColumn, :ReorderColumnDir, :LeftMostEnabledColumn, :RightMostEnabledColumn, :LeftMostStretchedColumn, :RightMostStretchedColumn, :ContextPopupColumn, :FreezeRowsRequest, :FreezeRowsCount, :FreezeColumnsRequest, :FreezeColumnsCount, :RowCellDataCurrent, :DummyDrawChannel, :Bg2DrawChannelCurrent, :Bg2DrawChannelUnfrozen, :NavLayer, :IsLayoutLocked, :IsInsideRow, :IsInitializing, :IsSortSpecsDirty, :IsUsingHeaders, :IsContextPopupOpen, :DisableDefaultContextMenu, :IsSettingsRequestLoad, :IsSettingsDirty, :IsDefaultDisplayOrder, :IsResetAllRequest, :IsResetDisplayOrderRequest, :IsUnfrozenRows, :IsDefaultSizingPolicy, :IsActiveIdAliveBeforeTable, :IsActiveIdInTable, :HasScrollbarYCurr, :HasScrollbarYPrev, :MemoryCompacted, :HostSkipItems, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiTableTempData Size::Cint Capacity::Cint @@ -3150,6 +3230,14 @@ function Base.setproperty!(x::Ptr{ImGuiBoxSelectState}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiBoxSelectState, private::Bool = false) + (:ID, :IsActive, :IsStarting, :IsStartedFromVoid, :IsStartedSetNavIdOnce, :RequestClear, :KeyMods, :StartPosRel, :EndPosRel, :ScrollAccum, :Window, :UnclipMode, :UnclipRect, :BoxSelectRectPrev, :BoxSelectRectCurr, if private + fieldnames(typeof(x)) + else + () + end...) +end + @cenum ImGuiSelectionRequestType::UInt32 begin ImGuiSelectionRequestType_None = 0 ImGuiSelectionRequestType_SetAll = 1 @@ -3481,6 +3569,14 @@ function Base.setproperty!(x::Ptr{ImGuiStackLevelInfo}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiStackLevelInfo, private::Bool = false) + (:ID, :QueryFrameCount, :QuerySuccess, :DataType, :Desc, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiStackLevelInfo Size::Cint Capacity::Cint @@ -3879,6 +3975,14 @@ function Base.setproperty!(x::Ptr{ImGuiContext}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiContext, private::Bool = false) + (:Initialized, :IO, :PlatformIO, :Style, :ConfigFlagsCurrFrame, :ConfigFlagsLastFrame, :FontAtlases, :Font, :FontBaked, :FontSize, :FontSizeBase, :FontBakedScale, :FontRasterizerDensity, :CurrentDpiScale, :DrawListSharedData, :Time, :FrameCount, :FrameCountEnded, :FrameCountPlatformEnded, :FrameCountRendered, :WithinEndChildID, :WithinFrameScope, :WithinFrameScopeWithImplicitWindow, :GcCompactAll, :TestEngineHookItems, :TestEngine, :ContextName, :InputEventsQueue, :InputEventsTrail, :InputEventsNextMouseSource, :InputEventsNextEventId, :Windows, :WindowsFocusOrder, :WindowsTempSortBuffer, :CurrentWindowStack, :WindowsById, :WindowsActiveCount, :WindowsBorderHoverPadding, :DebugBreakInWindow, :CurrentWindow, :HoveredWindow, :HoveredWindowUnderMovingWindow, :HoveredWindowBeforeClear, :MovingWindow, :WheelingWindow, :WheelingWindowRefMousePos, :WheelingWindowStartFrame, :WheelingWindowScrolledFrame, :WheelingWindowReleaseTimer, :WheelingWindowWheelRemainder, :WheelingAxisAvg, :DebugDrawIdConflictsId, :DebugHookIdInfo, :HoveredId, :HoveredIdPreviousFrame, :HoveredIdPreviousFrameItemCount, :HoveredIdTimer, :HoveredIdNotActiveTimer, :HoveredIdAllowOverlap, :HoveredIdIsDisabled, :ItemUnclipByLog, :ActiveId, :ActiveIdIsAlive, :ActiveIdTimer, :ActiveIdIsJustActivated, :ActiveIdAllowOverlap, :ActiveIdNoClearOnFocusLoss, :ActiveIdHasBeenPressedBefore, :ActiveIdHasBeenEditedBefore, :ActiveIdHasBeenEditedThisFrame, :ActiveIdFromShortcut, :ActiveIdMouseButton, :ActiveIdClickOffset, :ActiveIdWindow, :ActiveIdSource, :ActiveIdPreviousFrame, :DeactivatedItemData, :ActiveIdValueOnActivation, :LastActiveId, :LastActiveIdTimer, :LastKeyModsChangeTime, :LastKeyModsChangeFromNoneTime, :LastKeyboardKeyPressTime, :KeysMayBeCharInput, :KeysOwnerData, :KeysRoutingTable, :ActiveIdUsingNavDirMask, :ActiveIdUsingAllKeyboardKeys, :DebugBreakInShortcutRouting, :CurrentFocusScopeId, :CurrentItemFlags, :DebugLocateId, :NextItemData, :LastItemData, :NextWindowData, :DebugShowGroupRects, :DebugFlashStyleColorIdx, :ColorStack, :StyleVarStack, :FontStack, :FocusScopeStack, :ItemFlagsStack, :GroupStack, :OpenPopupStack, :BeginPopupStack, :TreeNodeStack, :Viewports, :CurrentViewport, :MouseViewport, :MouseLastHoveredViewport, :PlatformLastFocusedViewportId, :FallbackMonitor, :PlatformMonitorsFullWorkRect, :ViewportCreatedCount, :PlatformWindowsCreatedCount, :ViewportFocusedStampCount, :NavCursorVisible, :NavHighlightItemUnderNav, :NavMousePosDirty, :NavIdIsAlive, :NavId, :NavWindow, :NavFocusScopeId, :NavLayer, :NavActivateId, :NavActivateDownId, :NavActivatePressedId, :NavActivateFlags, :NavFocusRoute, :NavHighlightActivatedId, :NavHighlightActivatedTimer, :NavNextActivateId, :NavNextActivateFlags, :NavInputSource, :NavLastValidSelectionUserData, :NavCursorHideFrames, :NavAnyRequest, :NavInitRequest, :NavInitRequestFromMove, :NavInitResult, :NavMoveSubmitted, :NavMoveScoringItems, :NavMoveForwardToNextFrame, :NavMoveFlags, :NavMoveScrollFlags, :NavMoveKeyMods, :NavMoveDir, :NavMoveDirForDebug, :NavMoveClipDir, :NavScoringRect, :NavScoringNoClipRect, :NavScoringDebugCount, :NavTabbingDir, :NavTabbingCounter, :NavMoveResultLocal, :NavMoveResultLocalVisible, :NavMoveResultOther, :NavTabbingResultFirst, :NavJustMovedFromFocusScopeId, :NavJustMovedToId, :NavJustMovedToFocusScopeId, :NavJustMovedToKeyMods, :NavJustMovedToIsTabbing, :NavJustMovedToHasSelectionData, :ConfigNavWindowingWithGamepad, :ConfigNavWindowingKeyNext, :ConfigNavWindowingKeyPrev, :NavWindowingTarget, :NavWindowingTargetAnim, :NavWindowingListWindow, :NavWindowingTimer, :NavWindowingHighlightAlpha, :NavWindowingInputSource, :NavWindowingToggleLayer, :NavWindowingToggleKey, :NavWindowingAccumDeltaPos, :NavWindowingAccumDeltaSize, :DimBgRatio, :DragDropActive, :DragDropWithinSource, :DragDropWithinTarget, :DragDropSourceFlags, :DragDropSourceFrameCount, :DragDropMouseButton, :DragDropPayload, :DragDropTargetRect, :DragDropTargetClipRect, :DragDropTargetId, :DragDropAcceptFlags, :DragDropAcceptIdCurrRectSurface, :DragDropAcceptIdCurr, :DragDropAcceptIdPrev, :DragDropAcceptFrameCount, :DragDropHoldJustPressedId, :DragDropPayloadBufHeap, :DragDropPayloadBufLocal, :ClipperTempDataStacked, :ClipperTempData, :CurrentTable, :DebugBreakInTable, :TablesTempDataStacked, :TablesTempData, :Tables, :TablesLastTimeActive, :DrawChannelsTempMergeBuffer, :CurrentTabBar, :TabBars, :CurrentTabBarStack, :ShrinkWidthBuffer, :BoxSelectState, :CurrentMultiSelect, :MultiSelectTempDataStacked, :MultiSelectTempData, :MultiSelectStorage, :HoverItemDelayId, :HoverItemDelayIdPreviousFrame, :HoverItemDelayTimer, :HoverItemDelayClearTimer, :HoverItemUnlockedStationaryId, :HoverWindowUnlockedStationaryId, :MouseCursor, :MouseStationaryTimer, :MouseLastValidPos, :InputTextState, :InputTextDeactivatedState, :InputTextPasswordFontBackupBaked, :InputTextPasswordFontBackupFlags, :TempInputId, :DataTypeZeroValue, :BeginMenuDepth, :BeginComboDepth, :ColorEditOptions, :ColorEditCurrentID, :ColorEditSavedID, :ColorEditSavedHue, :ColorEditSavedSat, :ColorEditSavedColor, :ColorPickerRef, :ComboPreviewData, :WindowResizeBorderExpectedRect, :WindowResizeRelativeMode, :ScrollbarSeekMode, :ScrollbarClickDeltaToGrabCenter, :SliderGrabClickOffset, :SliderCurrentAccum, :SliderCurrentAccumDirty, :DragCurrentAccumDirty, :DragCurrentAccum, :DragSpeedDefaultRatio, :DisabledAlphaBackup, :DisabledStackSize, :TooltipOverrideCount, :TooltipPreviousWindow, :ClipboardHandlerData, :MenusIdSubmittedThisFrame, :TypingSelectState, :PlatformImeData, :PlatformImeDataPrev, :UserTextures, :DockContext, :DockNodeWindowMenuHandler, :SettingsLoaded, :SettingsDirtyTimer, :SettingsIniData, :SettingsHandlers, :SettingsWindows, :SettingsTables, :Hooks, :HookIdNext, :LocalizationTable, :LogEnabled, :LogFlags, :LogWindow, :LogFile, :LogBuffer, :LogNextPrefix, :LogNextSuffix, :LogLinePosY, :LogLineFirstItem, :LogDepthRef, :LogDepthToExpand, :LogDepthToExpandDefault, :ErrorCallback, :ErrorCallbackUserData, :ErrorTooltipLockedPos, :ErrorFirst, :ErrorCountCurrentFrame, :StackSizesInNewFrame, :StackSizesInBeginForCurrentWindow, :DebugDrawIdConflictsCount, :DebugLogFlags, :DebugLogBuf, :DebugLogIndex, :DebugLogSkippedErrors, :DebugLogAutoDisableFlags, :DebugLogAutoDisableFrames, :DebugLocateFrames, :DebugBreakInLocateId, :DebugBreakKeyChord, :DebugBeginReturnValueCullDepth, :DebugItemPickerActive, :DebugItemPickerMouseButton, :DebugItemPickerBreakId, :DebugFlashStyleColorTime, :DebugFlashStyleColorBackup, :DebugMetricsConfig, :DebugIDStackTool, :DebugAllocInfo, :DebugHoveredDockNode, :FramerateSecPerFrame, :FramerateSecPerFrameIdx, :FramerateSecPerFrameCount, :FramerateSecPerFrameAccum, :WantCaptureMouseNextFrame, :WantCaptureKeyboardNextFrame, :WantTextInputNextFrame, :TempBuffer, :TempKeychordName, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImGuiInputTextCallbackData Ctx::Ptr{ImGuiContext} EventFlag::ImGuiInputTextFlags @@ -4051,6 +4155,14 @@ function Base.setproperty!(x::Ptr{ImGuiStyleVarInfo}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiStyleVarInfo, private::Bool = false) + (:Count, :DataType, :Offset, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImGuiTableSettings ID::ImGuiID SaveFlags::ImGuiTableFlags @@ -5202,6 +5314,14 @@ function Base.setproperty!(x::Ptr{ImGuiTableColumnSettings}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiTableColumnSettings, private::Bool = false) + (:WidthOrWeight, :UserID, :Index, :DisplayOrder, :SortOrder, :SortDirection, :IsEnabled, :IsStretch, if private + fieldnames(typeof(x)) + else + () + end...) +end + function ImVec2_ImVec2_Nil() ccall((:ImVec2_ImVec2_Nil, libcimgui), Ptr{ImVec2}, ()) end diff --git a/lib/aarch64-linux-gnu.jl b/lib/aarch64-linux-gnu.jl index 90bb1c4..c95a752 100644 --- a/lib/aarch64-linux-gnu.jl +++ b/lib/aarch64-linux-gnu.jl @@ -1,4 +1,4 @@ -using CEnum +using CEnum: CEnum, @cenum to_c_type(t::Type) = t to_c_type_pairs(va_list) = map(enumerate(to_c_type.(va_list))) do (ind, type) @@ -474,6 +474,14 @@ function Base.setproperty!(x::Ptr{ImFontGlyph}, f::Symbol, v) end end +function Base.propertynames(x::ImFontGlyph, private::Bool = false) + (:Colored, :Visible, :SourceIdx, :Codepoint, :AdvanceX, :X0, :Y0, :X1, :Y1, :U0, :V0, :U1, :V1, :PackId, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImFontGlyph Size::Cint Capacity::Cint @@ -547,6 +555,14 @@ function Base.setproperty!(x::Ptr{ImFontBaked}, f::Symbol, v) end end +function Base.propertynames(x::ImFontBaked, private::Bool = false) + (:IndexAdvanceX, :FallbackAdvanceX, :Size, :RasterizerDensity, :IndexLookup, :Glyphs, :FallbackGlyphIndex, :Ascent, :Descent, :MetricsTotalSurface, :WantDestroy, :LockLoadingFallback, :LastUsedFrame, :BakedId, :ContainerFont, :FontLoaderDatas, if private + fieldnames(typeof(x)) + else + () + end...) +end + const ImFontFlags = Cint const ImS8 = Int8 @@ -663,6 +679,14 @@ function Base.setproperty!(x::Ptr{ImGuiStoragePair}, f::Symbol, v) unsafe_store!(getproperty(x, f), v) end +function Base.propertynames(x::ImGuiStoragePair, private::Bool = false) + (:key, :val_i, :val_f, :val_p, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiStoragePair Size::Cint Capacity::Cint @@ -784,6 +808,14 @@ function Base.setproperty!(x::Ptr{ImFontAtlasRectEntry}, f::Symbol, v) end end +function Base.propertynames(x::ImFontAtlasRectEntry, private::Bool = false) + (:TargetIndex, :Generation, :IsUsed, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImFontAtlasRectEntry Size::Cint Capacity::Cint @@ -1558,6 +1590,14 @@ function Base.setproperty!(x::Ptr{ImGuiInputEvent}, f::Symbol, v) unsafe_store!(getproperty(x, f), v) end +function Base.propertynames(x::ImGuiInputEvent, private::Bool = false) + (:Type, :Source, :EventId, :MousePos, :MouseWheel, :MouseButton, :MouseViewport, :Key, :Text, :AppFocused, :AddedByTestEngine, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiInputEvent Size::Cint Capacity::Cint @@ -1957,6 +1997,14 @@ function Base.setproperty!(x::Ptr{ImGuiDockNode}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiDockNode, private::Bool = false) + (:ID, :SharedFlags, :LocalFlags, :LocalFlagsInWindows, :MergedFlags, :State, :ParentNode, :ChildNodes, :Windows, :TabBar, :Pos, :Size, :SizeRef, :SplitAxis, :WindowClass, :LastBgColor, :HostWindow, :VisibleWindow, :CentralNode, :OnlyNodeWithWindows, :CountNodeWithWindows, :LastFrameAlive, :LastFrameActive, :LastFrameFocused, :LastFocusedNodeId, :SelectedTabId, :WantCloseTabId, :RefViewportId, :AuthorityForPos, :AuthorityForSize, :AuthorityForViewport, :IsVisible, :IsFocused, :IsBgDrawnThisFrame, :HasCloseButton, :HasWindowMenuButton, :HasCentralNodeChild, :WantCloseAll, :WantLockSizeOnce, :WantMouseMove, :WantHiddenTabBarUpdate, :WantHiddenTabBarToggle, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImGuiWindow data::NTuple{1224, UInt8} end @@ -2133,6 +2181,14 @@ function Base.setproperty!(x::Ptr{ImGuiWindow}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiWindow, private::Bool = false) + (:Ctx, :Name, :ID, :Flags, :FlagsPreviousFrame, :ChildFlags, :WindowClass, :Viewport, :ViewportId, :ViewportPos, :ViewportAllowPlatformMonitorExtend, :Pos, :Size, :SizeFull, :ContentSize, :ContentSizeIdeal, :ContentSizeExplicit, :WindowPadding, :WindowRounding, :WindowBorderSize, :TitleBarHeight, :MenuBarHeight, :DecoOuterSizeX1, :DecoOuterSizeY1, :DecoOuterSizeX2, :DecoOuterSizeY2, :DecoInnerSizeX1, :DecoInnerSizeY1, :NameBufLen, :MoveId, :TabId, :ChildId, :PopupId, :Scroll, :ScrollMax, :ScrollTarget, :ScrollTargetCenterRatio, :ScrollTargetEdgeSnapDist, :ScrollbarSizes, :ScrollbarX, :ScrollbarY, :ScrollbarXStabilizeEnabled, :ScrollbarXStabilizeToggledHistory, :ViewportOwned, :Active, :WasActive, :WriteAccessed, :Collapsed, :WantCollapseToggle, :SkipItems, :SkipRefresh, :Appearing, :Hidden, :IsFallbackWindow, :IsExplicitChild, :HasCloseButton, :ResizeBorderHovered, :ResizeBorderHeld, :BeginCount, :BeginCountPreviousFrame, :BeginOrderWithinParent, :BeginOrderWithinContext, :FocusOrder, :AutoFitFramesX, :AutoFitFramesY, :AutoFitOnlyGrows, :AutoPosLastDirection, :HiddenFramesCanSkipItems, :HiddenFramesCannotSkipItems, :HiddenFramesForRenderOnly, :DisableInputsFrames, :SetWindowPosAllowFlags, :SetWindowSizeAllowFlags, :SetWindowCollapsedAllowFlags, :SetWindowDockAllowFlags, :SetWindowPosVal, :SetWindowPosPivot, :IDStack, :DC, :OuterRectClipped, :InnerRect, :InnerClipRect, :WorkRect, :ParentWorkRect, :ClipRect, :ContentRegionRect, :HitTestHoleSize, :HitTestHoleOffset, :LastFrameActive, :LastFrameJustFocused, :LastTimeActive, :ItemWidthDefault, :StateStorage, :ColumnsStorage, :FontWindowScale, :FontWindowScaleParents, :FontRefSize, :SettingsOffset, :DrawList, :DrawListInst, :ParentWindow, :ParentWindowInBeginStack, :RootWindow, :RootWindowPopupTree, :RootWindowDockTree, :RootWindowForTitleBarHighlight, :RootWindowForNav, :ParentWindowForFocusRoute, :NavLastChildNavWindow, :NavLastIds, :NavRectRel, :NavPreferredScoringPosRel, :NavRootFocusScopeId, :MemoryDrawListIdxCapacity, :MemoryDrawListVtxCapacity, :MemoryCompacted, :DockIsActive, :DockNodeIsVisible, :DockTabIsVisible, :DockTabWantClose, :DockOrder, :DockStyle, :DockNode, :DockNodeAsHost, :DockId, if private + fieldnames(typeof(x)) + else + () + end...) +end + const ImGuiItemFlags = Cint struct ImGuiLastItemData @@ -2313,6 +2369,14 @@ function Base.setproperty!(x::Ptr{ImGuiStyleMod}, f::Symbol, v) unsafe_store!(getproperty(x, f), v) end +function Base.propertynames(x::ImGuiStyleMod, private::Bool = false) + (:VarIdx, :BackupInt, :BackupFloat, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiStyleMod Size::Cint Capacity::Cint @@ -2799,6 +2863,14 @@ function Base.setproperty!(x::Ptr{ImGuiTableColumn}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiTableColumn, private::Bool = false) + (:Flags, :WidthGiven, :MinX, :MaxX, :WidthRequest, :WidthAuto, :WidthMax, :StretchWeight, :InitStretchWeightOrWidth, :ClipRect, :UserID, :WorkMinX, :WorkMaxX, :ItemWidth, :ContentMaxXFrozen, :ContentMaxXUnfrozen, :ContentMaxXHeadersUsed, :ContentMaxXHeadersIdeal, :NameOffset, :DisplayOrder, :IndexWithinEnabledSet, :PrevEnabledColumn, :NextEnabledColumn, :SortOrder, :DrawChannelCurrent, :DrawChannelFrozen, :DrawChannelUnfrozen, :IsEnabled, :IsUserEnabled, :IsUserEnabledNextFrame, :IsVisibleX, :IsVisibleY, :IsRequestOutput, :IsSkipItems, :IsPreserveWidthAuto, :NavLayerCurrent, :AutoFitQueue, :CannotSkipItemsQueue, :SortDirection, :SortDirectionsAvailCount, :SortDirectionsAvailMask, :SortDirectionsAvailList, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImSpan_ImGuiTableColumn Data::Ptr{ImGuiTableColumn} DataEnd::Ptr{ImGuiTableColumn} @@ -3027,6 +3099,14 @@ function Base.setproperty!(x::Ptr{ImGuiTable}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiTable, private::Bool = false) + (:ID, :Flags, :RawData, :TempData, :Columns, :DisplayOrderToIndex, :RowCellData, :EnabledMaskByDisplayOrder, :EnabledMaskByIndex, :VisibleMaskByIndex, :SettingsLoadedFlags, :SettingsOffset, :LastFrameActive, :ColumnsCount, :CurrentRow, :CurrentColumn, :InstanceCurrent, :InstanceInteracted, :RowPosY1, :RowPosY2, :RowMinHeight, :RowCellPaddingY, :RowTextBaseline, :RowIndentOffsetX, :RowFlags, :LastRowFlags, :RowBgColorCounter, :RowBgColor, :BorderColorStrong, :BorderColorLight, :BorderX1, :BorderX2, :HostIndentX, :MinColumnWidth, :OuterPaddingX, :CellPaddingX, :CellSpacingX1, :CellSpacingX2, :InnerWidth, :ColumnsGivenWidth, :ColumnsAutoFitWidth, :ColumnsStretchSumWeights, :ResizedColumnNextWidth, :ResizeLockMinContentsX2, :RefScale, :AngledHeadersHeight, :AngledHeadersSlope, :OuterRect, :InnerRect, :WorkRect, :InnerClipRect, :BgClipRect, :Bg0ClipRectForDrawCmd, :Bg2ClipRectForDrawCmd, :HostClipRect, :HostBackupInnerClipRect, :OuterWindow, :InnerWindow, :ColumnsNames, :DrawSplitter, :InstanceDataFirst, :InstanceDataExtra, :SortSpecsSingle, :SortSpecsMulti, :SortSpecs, :SortSpecsCount, :ColumnsEnabledCount, :ColumnsEnabledFixedCount, :DeclColumnsCount, :AngledHeadersCount, :HoveredColumnBody, :HoveredColumnBorder, :HighlightColumnHeader, :AutoFitSingleColumn, :ResizedColumn, :LastResizedColumn, :HeldHeaderColumn, :ReorderColumn, :ReorderColumnDir, :LeftMostEnabledColumn, :RightMostEnabledColumn, :LeftMostStretchedColumn, :RightMostStretchedColumn, :ContextPopupColumn, :FreezeRowsRequest, :FreezeRowsCount, :FreezeColumnsRequest, :FreezeColumnsCount, :RowCellDataCurrent, :DummyDrawChannel, :Bg2DrawChannelCurrent, :Bg2DrawChannelUnfrozen, :NavLayer, :IsLayoutLocked, :IsInsideRow, :IsInitializing, :IsSortSpecsDirty, :IsUsingHeaders, :IsContextPopupOpen, :DisableDefaultContextMenu, :IsSettingsRequestLoad, :IsSettingsDirty, :IsDefaultDisplayOrder, :IsResetAllRequest, :IsResetDisplayOrderRequest, :IsUnfrozenRows, :IsDefaultSizingPolicy, :IsActiveIdAliveBeforeTable, :IsActiveIdInTable, :HasScrollbarYCurr, :HasScrollbarYPrev, :MemoryCompacted, :HostSkipItems, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiTableTempData Size::Cint Capacity::Cint @@ -3150,6 +3230,14 @@ function Base.setproperty!(x::Ptr{ImGuiBoxSelectState}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiBoxSelectState, private::Bool = false) + (:ID, :IsActive, :IsStarting, :IsStartedFromVoid, :IsStartedSetNavIdOnce, :RequestClear, :KeyMods, :StartPosRel, :EndPosRel, :ScrollAccum, :Window, :UnclipMode, :UnclipRect, :BoxSelectRectPrev, :BoxSelectRectCurr, if private + fieldnames(typeof(x)) + else + () + end...) +end + @cenum ImGuiSelectionRequestType::UInt32 begin ImGuiSelectionRequestType_None = 0 ImGuiSelectionRequestType_SetAll = 1 @@ -3481,6 +3569,14 @@ function Base.setproperty!(x::Ptr{ImGuiStackLevelInfo}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiStackLevelInfo, private::Bool = false) + (:ID, :QueryFrameCount, :QuerySuccess, :DataType, :Desc, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiStackLevelInfo Size::Cint Capacity::Cint @@ -3879,6 +3975,14 @@ function Base.setproperty!(x::Ptr{ImGuiContext}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiContext, private::Bool = false) + (:Initialized, :IO, :PlatformIO, :Style, :ConfigFlagsCurrFrame, :ConfigFlagsLastFrame, :FontAtlases, :Font, :FontBaked, :FontSize, :FontSizeBase, :FontBakedScale, :FontRasterizerDensity, :CurrentDpiScale, :DrawListSharedData, :Time, :FrameCount, :FrameCountEnded, :FrameCountPlatformEnded, :FrameCountRendered, :WithinEndChildID, :WithinFrameScope, :WithinFrameScopeWithImplicitWindow, :GcCompactAll, :TestEngineHookItems, :TestEngine, :ContextName, :InputEventsQueue, :InputEventsTrail, :InputEventsNextMouseSource, :InputEventsNextEventId, :Windows, :WindowsFocusOrder, :WindowsTempSortBuffer, :CurrentWindowStack, :WindowsById, :WindowsActiveCount, :WindowsBorderHoverPadding, :DebugBreakInWindow, :CurrentWindow, :HoveredWindow, :HoveredWindowUnderMovingWindow, :HoveredWindowBeforeClear, :MovingWindow, :WheelingWindow, :WheelingWindowRefMousePos, :WheelingWindowStartFrame, :WheelingWindowScrolledFrame, :WheelingWindowReleaseTimer, :WheelingWindowWheelRemainder, :WheelingAxisAvg, :DebugDrawIdConflictsId, :DebugHookIdInfo, :HoveredId, :HoveredIdPreviousFrame, :HoveredIdPreviousFrameItemCount, :HoveredIdTimer, :HoveredIdNotActiveTimer, :HoveredIdAllowOverlap, :HoveredIdIsDisabled, :ItemUnclipByLog, :ActiveId, :ActiveIdIsAlive, :ActiveIdTimer, :ActiveIdIsJustActivated, :ActiveIdAllowOverlap, :ActiveIdNoClearOnFocusLoss, :ActiveIdHasBeenPressedBefore, :ActiveIdHasBeenEditedBefore, :ActiveIdHasBeenEditedThisFrame, :ActiveIdFromShortcut, :ActiveIdMouseButton, :ActiveIdClickOffset, :ActiveIdWindow, :ActiveIdSource, :ActiveIdPreviousFrame, :DeactivatedItemData, :ActiveIdValueOnActivation, :LastActiveId, :LastActiveIdTimer, :LastKeyModsChangeTime, :LastKeyModsChangeFromNoneTime, :LastKeyboardKeyPressTime, :KeysMayBeCharInput, :KeysOwnerData, :KeysRoutingTable, :ActiveIdUsingNavDirMask, :ActiveIdUsingAllKeyboardKeys, :DebugBreakInShortcutRouting, :CurrentFocusScopeId, :CurrentItemFlags, :DebugLocateId, :NextItemData, :LastItemData, :NextWindowData, :DebugShowGroupRects, :DebugFlashStyleColorIdx, :ColorStack, :StyleVarStack, :FontStack, :FocusScopeStack, :ItemFlagsStack, :GroupStack, :OpenPopupStack, :BeginPopupStack, :TreeNodeStack, :Viewports, :CurrentViewport, :MouseViewport, :MouseLastHoveredViewport, :PlatformLastFocusedViewportId, :FallbackMonitor, :PlatformMonitorsFullWorkRect, :ViewportCreatedCount, :PlatformWindowsCreatedCount, :ViewportFocusedStampCount, :NavCursorVisible, :NavHighlightItemUnderNav, :NavMousePosDirty, :NavIdIsAlive, :NavId, :NavWindow, :NavFocusScopeId, :NavLayer, :NavActivateId, :NavActivateDownId, :NavActivatePressedId, :NavActivateFlags, :NavFocusRoute, :NavHighlightActivatedId, :NavHighlightActivatedTimer, :NavNextActivateId, :NavNextActivateFlags, :NavInputSource, :NavLastValidSelectionUserData, :NavCursorHideFrames, :NavAnyRequest, :NavInitRequest, :NavInitRequestFromMove, :NavInitResult, :NavMoveSubmitted, :NavMoveScoringItems, :NavMoveForwardToNextFrame, :NavMoveFlags, :NavMoveScrollFlags, :NavMoveKeyMods, :NavMoveDir, :NavMoveDirForDebug, :NavMoveClipDir, :NavScoringRect, :NavScoringNoClipRect, :NavScoringDebugCount, :NavTabbingDir, :NavTabbingCounter, :NavMoveResultLocal, :NavMoveResultLocalVisible, :NavMoveResultOther, :NavTabbingResultFirst, :NavJustMovedFromFocusScopeId, :NavJustMovedToId, :NavJustMovedToFocusScopeId, :NavJustMovedToKeyMods, :NavJustMovedToIsTabbing, :NavJustMovedToHasSelectionData, :ConfigNavWindowingWithGamepad, :ConfigNavWindowingKeyNext, :ConfigNavWindowingKeyPrev, :NavWindowingTarget, :NavWindowingTargetAnim, :NavWindowingListWindow, :NavWindowingTimer, :NavWindowingHighlightAlpha, :NavWindowingInputSource, :NavWindowingToggleLayer, :NavWindowingToggleKey, :NavWindowingAccumDeltaPos, :NavWindowingAccumDeltaSize, :DimBgRatio, :DragDropActive, :DragDropWithinSource, :DragDropWithinTarget, :DragDropSourceFlags, :DragDropSourceFrameCount, :DragDropMouseButton, :DragDropPayload, :DragDropTargetRect, :DragDropTargetClipRect, :DragDropTargetId, :DragDropAcceptFlags, :DragDropAcceptIdCurrRectSurface, :DragDropAcceptIdCurr, :DragDropAcceptIdPrev, :DragDropAcceptFrameCount, :DragDropHoldJustPressedId, :DragDropPayloadBufHeap, :DragDropPayloadBufLocal, :ClipperTempDataStacked, :ClipperTempData, :CurrentTable, :DebugBreakInTable, :TablesTempDataStacked, :TablesTempData, :Tables, :TablesLastTimeActive, :DrawChannelsTempMergeBuffer, :CurrentTabBar, :TabBars, :CurrentTabBarStack, :ShrinkWidthBuffer, :BoxSelectState, :CurrentMultiSelect, :MultiSelectTempDataStacked, :MultiSelectTempData, :MultiSelectStorage, :HoverItemDelayId, :HoverItemDelayIdPreviousFrame, :HoverItemDelayTimer, :HoverItemDelayClearTimer, :HoverItemUnlockedStationaryId, :HoverWindowUnlockedStationaryId, :MouseCursor, :MouseStationaryTimer, :MouseLastValidPos, :InputTextState, :InputTextDeactivatedState, :InputTextPasswordFontBackupBaked, :InputTextPasswordFontBackupFlags, :TempInputId, :DataTypeZeroValue, :BeginMenuDepth, :BeginComboDepth, :ColorEditOptions, :ColorEditCurrentID, :ColorEditSavedID, :ColorEditSavedHue, :ColorEditSavedSat, :ColorEditSavedColor, :ColorPickerRef, :ComboPreviewData, :WindowResizeBorderExpectedRect, :WindowResizeRelativeMode, :ScrollbarSeekMode, :ScrollbarClickDeltaToGrabCenter, :SliderGrabClickOffset, :SliderCurrentAccum, :SliderCurrentAccumDirty, :DragCurrentAccumDirty, :DragCurrentAccum, :DragSpeedDefaultRatio, :DisabledAlphaBackup, :DisabledStackSize, :TooltipOverrideCount, :TooltipPreviousWindow, :ClipboardHandlerData, :MenusIdSubmittedThisFrame, :TypingSelectState, :PlatformImeData, :PlatformImeDataPrev, :UserTextures, :DockContext, :DockNodeWindowMenuHandler, :SettingsLoaded, :SettingsDirtyTimer, :SettingsIniData, :SettingsHandlers, :SettingsWindows, :SettingsTables, :Hooks, :HookIdNext, :LocalizationTable, :LogEnabled, :LogFlags, :LogWindow, :LogFile, :LogBuffer, :LogNextPrefix, :LogNextSuffix, :LogLinePosY, :LogLineFirstItem, :LogDepthRef, :LogDepthToExpand, :LogDepthToExpandDefault, :ErrorCallback, :ErrorCallbackUserData, :ErrorTooltipLockedPos, :ErrorFirst, :ErrorCountCurrentFrame, :StackSizesInNewFrame, :StackSizesInBeginForCurrentWindow, :DebugDrawIdConflictsCount, :DebugLogFlags, :DebugLogBuf, :DebugLogIndex, :DebugLogSkippedErrors, :DebugLogAutoDisableFlags, :DebugLogAutoDisableFrames, :DebugLocateFrames, :DebugBreakInLocateId, :DebugBreakKeyChord, :DebugBeginReturnValueCullDepth, :DebugItemPickerActive, :DebugItemPickerMouseButton, :DebugItemPickerBreakId, :DebugFlashStyleColorTime, :DebugFlashStyleColorBackup, :DebugMetricsConfig, :DebugIDStackTool, :DebugAllocInfo, :DebugHoveredDockNode, :FramerateSecPerFrame, :FramerateSecPerFrameIdx, :FramerateSecPerFrameCount, :FramerateSecPerFrameAccum, :WantCaptureMouseNextFrame, :WantCaptureKeyboardNextFrame, :WantTextInputNextFrame, :TempBuffer, :TempKeychordName, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImGuiInputTextCallbackData Ctx::Ptr{ImGuiContext} EventFlag::ImGuiInputTextFlags @@ -4051,6 +4155,14 @@ function Base.setproperty!(x::Ptr{ImGuiStyleVarInfo}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiStyleVarInfo, private::Bool = false) + (:Count, :DataType, :Offset, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImGuiTableSettings ID::ImGuiID SaveFlags::ImGuiTableFlags @@ -5202,6 +5314,14 @@ function Base.setproperty!(x::Ptr{ImGuiTableColumnSettings}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiTableColumnSettings, private::Bool = false) + (:WidthOrWeight, :UserID, :Index, :DisplayOrder, :SortOrder, :SortDirection, :IsEnabled, :IsStretch, if private + fieldnames(typeof(x)) + else + () + end...) +end + function ImVec2_ImVec2_Nil() ccall((:ImVec2_ImVec2_Nil, libcimgui), Ptr{ImVec2}, ()) end diff --git a/lib/aarch64-linux-musl.jl b/lib/aarch64-linux-musl.jl index eec4f73..7e6979d 100644 --- a/lib/aarch64-linux-musl.jl +++ b/lib/aarch64-linux-musl.jl @@ -1,4 +1,4 @@ -using CEnum +using CEnum: CEnum, @cenum to_c_type(t::Type) = t to_c_type_pairs(va_list) = map(enumerate(to_c_type.(va_list))) do (ind, type) @@ -472,6 +472,14 @@ function Base.setproperty!(x::Ptr{ImFontGlyph}, f::Symbol, v) end end +function Base.propertynames(x::ImFontGlyph, private::Bool = false) + (:Colored, :Visible, :SourceIdx, :Codepoint, :AdvanceX, :X0, :Y0, :X1, :Y1, :U0, :V0, :U1, :V1, :PackId, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImFontGlyph Size::Cint Capacity::Cint @@ -545,6 +553,14 @@ function Base.setproperty!(x::Ptr{ImFontBaked}, f::Symbol, v) end end +function Base.propertynames(x::ImFontBaked, private::Bool = false) + (:IndexAdvanceX, :FallbackAdvanceX, :Size, :RasterizerDensity, :IndexLookup, :Glyphs, :FallbackGlyphIndex, :Ascent, :Descent, :MetricsTotalSurface, :WantDestroy, :LockLoadingFallback, :LastUsedFrame, :BakedId, :ContainerFont, :FontLoaderDatas, if private + fieldnames(typeof(x)) + else + () + end...) +end + const ImFontFlags = Cint const ImS8 = Int8 @@ -661,6 +677,14 @@ function Base.setproperty!(x::Ptr{ImGuiStoragePair}, f::Symbol, v) unsafe_store!(getproperty(x, f), v) end +function Base.propertynames(x::ImGuiStoragePair, private::Bool = false) + (:key, :val_i, :val_f, :val_p, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiStoragePair Size::Cint Capacity::Cint @@ -782,6 +806,14 @@ function Base.setproperty!(x::Ptr{ImFontAtlasRectEntry}, f::Symbol, v) end end +function Base.propertynames(x::ImFontAtlasRectEntry, private::Bool = false) + (:TargetIndex, :Generation, :IsUsed, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImFontAtlasRectEntry Size::Cint Capacity::Cint @@ -1556,6 +1588,14 @@ function Base.setproperty!(x::Ptr{ImGuiInputEvent}, f::Symbol, v) unsafe_store!(getproperty(x, f), v) end +function Base.propertynames(x::ImGuiInputEvent, private::Bool = false) + (:Type, :Source, :EventId, :MousePos, :MouseWheel, :MouseButton, :MouseViewport, :Key, :Text, :AppFocused, :AddedByTestEngine, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiInputEvent Size::Cint Capacity::Cint @@ -1955,6 +1995,14 @@ function Base.setproperty!(x::Ptr{ImGuiDockNode}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiDockNode, private::Bool = false) + (:ID, :SharedFlags, :LocalFlags, :LocalFlagsInWindows, :MergedFlags, :State, :ParentNode, :ChildNodes, :Windows, :TabBar, :Pos, :Size, :SizeRef, :SplitAxis, :WindowClass, :LastBgColor, :HostWindow, :VisibleWindow, :CentralNode, :OnlyNodeWithWindows, :CountNodeWithWindows, :LastFrameAlive, :LastFrameActive, :LastFrameFocused, :LastFocusedNodeId, :SelectedTabId, :WantCloseTabId, :RefViewportId, :AuthorityForPos, :AuthorityForSize, :AuthorityForViewport, :IsVisible, :IsFocused, :IsBgDrawnThisFrame, :HasCloseButton, :HasWindowMenuButton, :HasCentralNodeChild, :WantCloseAll, :WantLockSizeOnce, :WantMouseMove, :WantHiddenTabBarUpdate, :WantHiddenTabBarToggle, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImGuiWindow data::NTuple{1224, UInt8} end @@ -2131,6 +2179,14 @@ function Base.setproperty!(x::Ptr{ImGuiWindow}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiWindow, private::Bool = false) + (:Ctx, :Name, :ID, :Flags, :FlagsPreviousFrame, :ChildFlags, :WindowClass, :Viewport, :ViewportId, :ViewportPos, :ViewportAllowPlatformMonitorExtend, :Pos, :Size, :SizeFull, :ContentSize, :ContentSizeIdeal, :ContentSizeExplicit, :WindowPadding, :WindowRounding, :WindowBorderSize, :TitleBarHeight, :MenuBarHeight, :DecoOuterSizeX1, :DecoOuterSizeY1, :DecoOuterSizeX2, :DecoOuterSizeY2, :DecoInnerSizeX1, :DecoInnerSizeY1, :NameBufLen, :MoveId, :TabId, :ChildId, :PopupId, :Scroll, :ScrollMax, :ScrollTarget, :ScrollTargetCenterRatio, :ScrollTargetEdgeSnapDist, :ScrollbarSizes, :ScrollbarX, :ScrollbarY, :ScrollbarXStabilizeEnabled, :ScrollbarXStabilizeToggledHistory, :ViewportOwned, :Active, :WasActive, :WriteAccessed, :Collapsed, :WantCollapseToggle, :SkipItems, :SkipRefresh, :Appearing, :Hidden, :IsFallbackWindow, :IsExplicitChild, :HasCloseButton, :ResizeBorderHovered, :ResizeBorderHeld, :BeginCount, :BeginCountPreviousFrame, :BeginOrderWithinParent, :BeginOrderWithinContext, :FocusOrder, :AutoFitFramesX, :AutoFitFramesY, :AutoFitOnlyGrows, :AutoPosLastDirection, :HiddenFramesCanSkipItems, :HiddenFramesCannotSkipItems, :HiddenFramesForRenderOnly, :DisableInputsFrames, :SetWindowPosAllowFlags, :SetWindowSizeAllowFlags, :SetWindowCollapsedAllowFlags, :SetWindowDockAllowFlags, :SetWindowPosVal, :SetWindowPosPivot, :IDStack, :DC, :OuterRectClipped, :InnerRect, :InnerClipRect, :WorkRect, :ParentWorkRect, :ClipRect, :ContentRegionRect, :HitTestHoleSize, :HitTestHoleOffset, :LastFrameActive, :LastFrameJustFocused, :LastTimeActive, :ItemWidthDefault, :StateStorage, :ColumnsStorage, :FontWindowScale, :FontWindowScaleParents, :FontRefSize, :SettingsOffset, :DrawList, :DrawListInst, :ParentWindow, :ParentWindowInBeginStack, :RootWindow, :RootWindowPopupTree, :RootWindowDockTree, :RootWindowForTitleBarHighlight, :RootWindowForNav, :ParentWindowForFocusRoute, :NavLastChildNavWindow, :NavLastIds, :NavRectRel, :NavPreferredScoringPosRel, :NavRootFocusScopeId, :MemoryDrawListIdxCapacity, :MemoryDrawListVtxCapacity, :MemoryCompacted, :DockIsActive, :DockNodeIsVisible, :DockTabIsVisible, :DockTabWantClose, :DockOrder, :DockStyle, :DockNode, :DockNodeAsHost, :DockId, if private + fieldnames(typeof(x)) + else + () + end...) +end + const ImGuiItemFlags = Cint struct ImGuiLastItemData @@ -2311,6 +2367,14 @@ function Base.setproperty!(x::Ptr{ImGuiStyleMod}, f::Symbol, v) unsafe_store!(getproperty(x, f), v) end +function Base.propertynames(x::ImGuiStyleMod, private::Bool = false) + (:VarIdx, :BackupInt, :BackupFloat, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiStyleMod Size::Cint Capacity::Cint @@ -2797,6 +2861,14 @@ function Base.setproperty!(x::Ptr{ImGuiTableColumn}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiTableColumn, private::Bool = false) + (:Flags, :WidthGiven, :MinX, :MaxX, :WidthRequest, :WidthAuto, :WidthMax, :StretchWeight, :InitStretchWeightOrWidth, :ClipRect, :UserID, :WorkMinX, :WorkMaxX, :ItemWidth, :ContentMaxXFrozen, :ContentMaxXUnfrozen, :ContentMaxXHeadersUsed, :ContentMaxXHeadersIdeal, :NameOffset, :DisplayOrder, :IndexWithinEnabledSet, :PrevEnabledColumn, :NextEnabledColumn, :SortOrder, :DrawChannelCurrent, :DrawChannelFrozen, :DrawChannelUnfrozen, :IsEnabled, :IsUserEnabled, :IsUserEnabledNextFrame, :IsVisibleX, :IsVisibleY, :IsRequestOutput, :IsSkipItems, :IsPreserveWidthAuto, :NavLayerCurrent, :AutoFitQueue, :CannotSkipItemsQueue, :SortDirection, :SortDirectionsAvailCount, :SortDirectionsAvailMask, :SortDirectionsAvailList, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImSpan_ImGuiTableColumn Data::Ptr{ImGuiTableColumn} DataEnd::Ptr{ImGuiTableColumn} @@ -3025,6 +3097,14 @@ function Base.setproperty!(x::Ptr{ImGuiTable}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiTable, private::Bool = false) + (:ID, :Flags, :RawData, :TempData, :Columns, :DisplayOrderToIndex, :RowCellData, :EnabledMaskByDisplayOrder, :EnabledMaskByIndex, :VisibleMaskByIndex, :SettingsLoadedFlags, :SettingsOffset, :LastFrameActive, :ColumnsCount, :CurrentRow, :CurrentColumn, :InstanceCurrent, :InstanceInteracted, :RowPosY1, :RowPosY2, :RowMinHeight, :RowCellPaddingY, :RowTextBaseline, :RowIndentOffsetX, :RowFlags, :LastRowFlags, :RowBgColorCounter, :RowBgColor, :BorderColorStrong, :BorderColorLight, :BorderX1, :BorderX2, :HostIndentX, :MinColumnWidth, :OuterPaddingX, :CellPaddingX, :CellSpacingX1, :CellSpacingX2, :InnerWidth, :ColumnsGivenWidth, :ColumnsAutoFitWidth, :ColumnsStretchSumWeights, :ResizedColumnNextWidth, :ResizeLockMinContentsX2, :RefScale, :AngledHeadersHeight, :AngledHeadersSlope, :OuterRect, :InnerRect, :WorkRect, :InnerClipRect, :BgClipRect, :Bg0ClipRectForDrawCmd, :Bg2ClipRectForDrawCmd, :HostClipRect, :HostBackupInnerClipRect, :OuterWindow, :InnerWindow, :ColumnsNames, :DrawSplitter, :InstanceDataFirst, :InstanceDataExtra, :SortSpecsSingle, :SortSpecsMulti, :SortSpecs, :SortSpecsCount, :ColumnsEnabledCount, :ColumnsEnabledFixedCount, :DeclColumnsCount, :AngledHeadersCount, :HoveredColumnBody, :HoveredColumnBorder, :HighlightColumnHeader, :AutoFitSingleColumn, :ResizedColumn, :LastResizedColumn, :HeldHeaderColumn, :ReorderColumn, :ReorderColumnDir, :LeftMostEnabledColumn, :RightMostEnabledColumn, :LeftMostStretchedColumn, :RightMostStretchedColumn, :ContextPopupColumn, :FreezeRowsRequest, :FreezeRowsCount, :FreezeColumnsRequest, :FreezeColumnsCount, :RowCellDataCurrent, :DummyDrawChannel, :Bg2DrawChannelCurrent, :Bg2DrawChannelUnfrozen, :NavLayer, :IsLayoutLocked, :IsInsideRow, :IsInitializing, :IsSortSpecsDirty, :IsUsingHeaders, :IsContextPopupOpen, :DisableDefaultContextMenu, :IsSettingsRequestLoad, :IsSettingsDirty, :IsDefaultDisplayOrder, :IsResetAllRequest, :IsResetDisplayOrderRequest, :IsUnfrozenRows, :IsDefaultSizingPolicy, :IsActiveIdAliveBeforeTable, :IsActiveIdInTable, :HasScrollbarYCurr, :HasScrollbarYPrev, :MemoryCompacted, :HostSkipItems, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiTableTempData Size::Cint Capacity::Cint @@ -3148,6 +3228,14 @@ function Base.setproperty!(x::Ptr{ImGuiBoxSelectState}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiBoxSelectState, private::Bool = false) + (:ID, :IsActive, :IsStarting, :IsStartedFromVoid, :IsStartedSetNavIdOnce, :RequestClear, :KeyMods, :StartPosRel, :EndPosRel, :ScrollAccum, :Window, :UnclipMode, :UnclipRect, :BoxSelectRectPrev, :BoxSelectRectCurr, if private + fieldnames(typeof(x)) + else + () + end...) +end + @cenum ImGuiSelectionRequestType::UInt32 begin ImGuiSelectionRequestType_None = 0 ImGuiSelectionRequestType_SetAll = 1 @@ -3479,6 +3567,14 @@ function Base.setproperty!(x::Ptr{ImGuiStackLevelInfo}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiStackLevelInfo, private::Bool = false) + (:ID, :QueryFrameCount, :QuerySuccess, :DataType, :Desc, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiStackLevelInfo Size::Cint Capacity::Cint @@ -3877,6 +3973,14 @@ function Base.setproperty!(x::Ptr{ImGuiContext}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiContext, private::Bool = false) + (:Initialized, :IO, :PlatformIO, :Style, :ConfigFlagsCurrFrame, :ConfigFlagsLastFrame, :FontAtlases, :Font, :FontBaked, :FontSize, :FontSizeBase, :FontBakedScale, :FontRasterizerDensity, :CurrentDpiScale, :DrawListSharedData, :Time, :FrameCount, :FrameCountEnded, :FrameCountPlatformEnded, :FrameCountRendered, :WithinEndChildID, :WithinFrameScope, :WithinFrameScopeWithImplicitWindow, :GcCompactAll, :TestEngineHookItems, :TestEngine, :ContextName, :InputEventsQueue, :InputEventsTrail, :InputEventsNextMouseSource, :InputEventsNextEventId, :Windows, :WindowsFocusOrder, :WindowsTempSortBuffer, :CurrentWindowStack, :WindowsById, :WindowsActiveCount, :WindowsBorderHoverPadding, :DebugBreakInWindow, :CurrentWindow, :HoveredWindow, :HoveredWindowUnderMovingWindow, :HoveredWindowBeforeClear, :MovingWindow, :WheelingWindow, :WheelingWindowRefMousePos, :WheelingWindowStartFrame, :WheelingWindowScrolledFrame, :WheelingWindowReleaseTimer, :WheelingWindowWheelRemainder, :WheelingAxisAvg, :DebugDrawIdConflictsId, :DebugHookIdInfo, :HoveredId, :HoveredIdPreviousFrame, :HoveredIdPreviousFrameItemCount, :HoveredIdTimer, :HoveredIdNotActiveTimer, :HoveredIdAllowOverlap, :HoveredIdIsDisabled, :ItemUnclipByLog, :ActiveId, :ActiveIdIsAlive, :ActiveIdTimer, :ActiveIdIsJustActivated, :ActiveIdAllowOverlap, :ActiveIdNoClearOnFocusLoss, :ActiveIdHasBeenPressedBefore, :ActiveIdHasBeenEditedBefore, :ActiveIdHasBeenEditedThisFrame, :ActiveIdFromShortcut, :ActiveIdMouseButton, :ActiveIdClickOffset, :ActiveIdWindow, :ActiveIdSource, :ActiveIdPreviousFrame, :DeactivatedItemData, :ActiveIdValueOnActivation, :LastActiveId, :LastActiveIdTimer, :LastKeyModsChangeTime, :LastKeyModsChangeFromNoneTime, :LastKeyboardKeyPressTime, :KeysMayBeCharInput, :KeysOwnerData, :KeysRoutingTable, :ActiveIdUsingNavDirMask, :ActiveIdUsingAllKeyboardKeys, :DebugBreakInShortcutRouting, :CurrentFocusScopeId, :CurrentItemFlags, :DebugLocateId, :NextItemData, :LastItemData, :NextWindowData, :DebugShowGroupRects, :DebugFlashStyleColorIdx, :ColorStack, :StyleVarStack, :FontStack, :FocusScopeStack, :ItemFlagsStack, :GroupStack, :OpenPopupStack, :BeginPopupStack, :TreeNodeStack, :Viewports, :CurrentViewport, :MouseViewport, :MouseLastHoveredViewport, :PlatformLastFocusedViewportId, :FallbackMonitor, :PlatformMonitorsFullWorkRect, :ViewportCreatedCount, :PlatformWindowsCreatedCount, :ViewportFocusedStampCount, :NavCursorVisible, :NavHighlightItemUnderNav, :NavMousePosDirty, :NavIdIsAlive, :NavId, :NavWindow, :NavFocusScopeId, :NavLayer, :NavActivateId, :NavActivateDownId, :NavActivatePressedId, :NavActivateFlags, :NavFocusRoute, :NavHighlightActivatedId, :NavHighlightActivatedTimer, :NavNextActivateId, :NavNextActivateFlags, :NavInputSource, :NavLastValidSelectionUserData, :NavCursorHideFrames, :NavAnyRequest, :NavInitRequest, :NavInitRequestFromMove, :NavInitResult, :NavMoveSubmitted, :NavMoveScoringItems, :NavMoveForwardToNextFrame, :NavMoveFlags, :NavMoveScrollFlags, :NavMoveKeyMods, :NavMoveDir, :NavMoveDirForDebug, :NavMoveClipDir, :NavScoringRect, :NavScoringNoClipRect, :NavScoringDebugCount, :NavTabbingDir, :NavTabbingCounter, :NavMoveResultLocal, :NavMoveResultLocalVisible, :NavMoveResultOther, :NavTabbingResultFirst, :NavJustMovedFromFocusScopeId, :NavJustMovedToId, :NavJustMovedToFocusScopeId, :NavJustMovedToKeyMods, :NavJustMovedToIsTabbing, :NavJustMovedToHasSelectionData, :ConfigNavWindowingWithGamepad, :ConfigNavWindowingKeyNext, :ConfigNavWindowingKeyPrev, :NavWindowingTarget, :NavWindowingTargetAnim, :NavWindowingListWindow, :NavWindowingTimer, :NavWindowingHighlightAlpha, :NavWindowingInputSource, :NavWindowingToggleLayer, :NavWindowingToggleKey, :NavWindowingAccumDeltaPos, :NavWindowingAccumDeltaSize, :DimBgRatio, :DragDropActive, :DragDropWithinSource, :DragDropWithinTarget, :DragDropSourceFlags, :DragDropSourceFrameCount, :DragDropMouseButton, :DragDropPayload, :DragDropTargetRect, :DragDropTargetClipRect, :DragDropTargetId, :DragDropAcceptFlags, :DragDropAcceptIdCurrRectSurface, :DragDropAcceptIdCurr, :DragDropAcceptIdPrev, :DragDropAcceptFrameCount, :DragDropHoldJustPressedId, :DragDropPayloadBufHeap, :DragDropPayloadBufLocal, :ClipperTempDataStacked, :ClipperTempData, :CurrentTable, :DebugBreakInTable, :TablesTempDataStacked, :TablesTempData, :Tables, :TablesLastTimeActive, :DrawChannelsTempMergeBuffer, :CurrentTabBar, :TabBars, :CurrentTabBarStack, :ShrinkWidthBuffer, :BoxSelectState, :CurrentMultiSelect, :MultiSelectTempDataStacked, :MultiSelectTempData, :MultiSelectStorage, :HoverItemDelayId, :HoverItemDelayIdPreviousFrame, :HoverItemDelayTimer, :HoverItemDelayClearTimer, :HoverItemUnlockedStationaryId, :HoverWindowUnlockedStationaryId, :MouseCursor, :MouseStationaryTimer, :MouseLastValidPos, :InputTextState, :InputTextDeactivatedState, :InputTextPasswordFontBackupBaked, :InputTextPasswordFontBackupFlags, :TempInputId, :DataTypeZeroValue, :BeginMenuDepth, :BeginComboDepth, :ColorEditOptions, :ColorEditCurrentID, :ColorEditSavedID, :ColorEditSavedHue, :ColorEditSavedSat, :ColorEditSavedColor, :ColorPickerRef, :ComboPreviewData, :WindowResizeBorderExpectedRect, :WindowResizeRelativeMode, :ScrollbarSeekMode, :ScrollbarClickDeltaToGrabCenter, :SliderGrabClickOffset, :SliderCurrentAccum, :SliderCurrentAccumDirty, :DragCurrentAccumDirty, :DragCurrentAccum, :DragSpeedDefaultRatio, :DisabledAlphaBackup, :DisabledStackSize, :TooltipOverrideCount, :TooltipPreviousWindow, :ClipboardHandlerData, :MenusIdSubmittedThisFrame, :TypingSelectState, :PlatformImeData, :PlatformImeDataPrev, :UserTextures, :DockContext, :DockNodeWindowMenuHandler, :SettingsLoaded, :SettingsDirtyTimer, :SettingsIniData, :SettingsHandlers, :SettingsWindows, :SettingsTables, :Hooks, :HookIdNext, :LocalizationTable, :LogEnabled, :LogFlags, :LogWindow, :LogFile, :LogBuffer, :LogNextPrefix, :LogNextSuffix, :LogLinePosY, :LogLineFirstItem, :LogDepthRef, :LogDepthToExpand, :LogDepthToExpandDefault, :ErrorCallback, :ErrorCallbackUserData, :ErrorTooltipLockedPos, :ErrorFirst, :ErrorCountCurrentFrame, :StackSizesInNewFrame, :StackSizesInBeginForCurrentWindow, :DebugDrawIdConflictsCount, :DebugLogFlags, :DebugLogBuf, :DebugLogIndex, :DebugLogSkippedErrors, :DebugLogAutoDisableFlags, :DebugLogAutoDisableFrames, :DebugLocateFrames, :DebugBreakInLocateId, :DebugBreakKeyChord, :DebugBeginReturnValueCullDepth, :DebugItemPickerActive, :DebugItemPickerMouseButton, :DebugItemPickerBreakId, :DebugFlashStyleColorTime, :DebugFlashStyleColorBackup, :DebugMetricsConfig, :DebugIDStackTool, :DebugAllocInfo, :DebugHoveredDockNode, :FramerateSecPerFrame, :FramerateSecPerFrameIdx, :FramerateSecPerFrameCount, :FramerateSecPerFrameAccum, :WantCaptureMouseNextFrame, :WantCaptureKeyboardNextFrame, :WantTextInputNextFrame, :TempBuffer, :TempKeychordName, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImGuiInputTextCallbackData Ctx::Ptr{ImGuiContext} EventFlag::ImGuiInputTextFlags @@ -4049,6 +4153,14 @@ function Base.setproperty!(x::Ptr{ImGuiStyleVarInfo}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiStyleVarInfo, private::Bool = false) + (:Count, :DataType, :Offset, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImGuiTableSettings ID::ImGuiID SaveFlags::ImGuiTableFlags @@ -5200,6 +5312,14 @@ function Base.setproperty!(x::Ptr{ImGuiTableColumnSettings}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiTableColumnSettings, private::Bool = false) + (:WidthOrWeight, :UserID, :Index, :DisplayOrder, :SortOrder, :SortDirection, :IsEnabled, :IsStretch, if private + fieldnames(typeof(x)) + else + () + end...) +end + function ImVec2_ImVec2_Nil() ccall((:ImVec2_ImVec2_Nil, libcimgui), Ptr{ImVec2}, ()) end diff --git a/lib/armv7l-linux-gnueabihf.jl b/lib/armv7l-linux-gnueabihf.jl index 6dc3cad..dbef28e 100644 --- a/lib/armv7l-linux-gnueabihf.jl +++ b/lib/armv7l-linux-gnueabihf.jl @@ -1,4 +1,4 @@ -using CEnum +using CEnum: CEnum, @cenum to_c_type(t::Type) = t to_c_type_pairs(va_list) = map(enumerate(to_c_type.(va_list))) do (ind, type) @@ -474,6 +474,14 @@ function Base.setproperty!(x::Ptr{ImFontGlyph}, f::Symbol, v) end end +function Base.propertynames(x::ImFontGlyph, private::Bool = false) + (:Colored, :Visible, :SourceIdx, :Codepoint, :AdvanceX, :X0, :Y0, :X1, :Y1, :U0, :V0, :U1, :V1, :PackId, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImFontGlyph Size::Cint Capacity::Cint @@ -547,6 +555,14 @@ function Base.setproperty!(x::Ptr{ImFontBaked}, f::Symbol, v) end end +function Base.propertynames(x::ImFontBaked, private::Bool = false) + (:IndexAdvanceX, :FallbackAdvanceX, :Size, :RasterizerDensity, :IndexLookup, :Glyphs, :FallbackGlyphIndex, :Ascent, :Descent, :MetricsTotalSurface, :WantDestroy, :LockLoadingFallback, :LastUsedFrame, :BakedId, :ContainerFont, :FontLoaderDatas, if private + fieldnames(typeof(x)) + else + () + end...) +end + const ImFontFlags = Cint const ImS8 = Int8 @@ -663,6 +679,14 @@ function Base.setproperty!(x::Ptr{ImGuiStoragePair}, f::Symbol, v) unsafe_store!(getproperty(x, f), v) end +function Base.propertynames(x::ImGuiStoragePair, private::Bool = false) + (:key, :val_i, :val_f, :val_p, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiStoragePair Size::Cint Capacity::Cint @@ -784,6 +808,14 @@ function Base.setproperty!(x::Ptr{ImFontAtlasRectEntry}, f::Symbol, v) end end +function Base.propertynames(x::ImFontAtlasRectEntry, private::Bool = false) + (:TargetIndex, :Generation, :IsUsed, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImFontAtlasRectEntry Size::Cint Capacity::Cint @@ -1558,6 +1590,14 @@ function Base.setproperty!(x::Ptr{ImGuiInputEvent}, f::Symbol, v) unsafe_store!(getproperty(x, f), v) end +function Base.propertynames(x::ImGuiInputEvent, private::Bool = false) + (:Type, :Source, :EventId, :MousePos, :MouseWheel, :MouseButton, :MouseViewport, :Key, :Text, :AppFocused, :AddedByTestEngine, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiInputEvent Size::Cint Capacity::Cint @@ -1957,6 +1997,14 @@ function Base.setproperty!(x::Ptr{ImGuiDockNode}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiDockNode, private::Bool = false) + (:ID, :SharedFlags, :LocalFlags, :LocalFlagsInWindows, :MergedFlags, :State, :ParentNode, :ChildNodes, :Windows, :TabBar, :Pos, :Size, :SizeRef, :SplitAxis, :WindowClass, :LastBgColor, :HostWindow, :VisibleWindow, :CentralNode, :OnlyNodeWithWindows, :CountNodeWithWindows, :LastFrameAlive, :LastFrameActive, :LastFrameFocused, :LastFocusedNodeId, :SelectedTabId, :WantCloseTabId, :RefViewportId, :AuthorityForPos, :AuthorityForSize, :AuthorityForViewport, :IsVisible, :IsFocused, :IsBgDrawnThisFrame, :HasCloseButton, :HasWindowMenuButton, :HasCentralNodeChild, :WantCloseAll, :WantLockSizeOnce, :WantMouseMove, :WantHiddenTabBarUpdate, :WantHiddenTabBarToggle, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImGuiWindow data::NTuple{1072, UInt8} end @@ -2133,6 +2181,14 @@ function Base.setproperty!(x::Ptr{ImGuiWindow}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiWindow, private::Bool = false) + (:Ctx, :Name, :ID, :Flags, :FlagsPreviousFrame, :ChildFlags, :WindowClass, :Viewport, :ViewportId, :ViewportPos, :ViewportAllowPlatformMonitorExtend, :Pos, :Size, :SizeFull, :ContentSize, :ContentSizeIdeal, :ContentSizeExplicit, :WindowPadding, :WindowRounding, :WindowBorderSize, :TitleBarHeight, :MenuBarHeight, :DecoOuterSizeX1, :DecoOuterSizeY1, :DecoOuterSizeX2, :DecoOuterSizeY2, :DecoInnerSizeX1, :DecoInnerSizeY1, :NameBufLen, :MoveId, :TabId, :ChildId, :PopupId, :Scroll, :ScrollMax, :ScrollTarget, :ScrollTargetCenterRatio, :ScrollTargetEdgeSnapDist, :ScrollbarSizes, :ScrollbarX, :ScrollbarY, :ScrollbarXStabilizeEnabled, :ScrollbarXStabilizeToggledHistory, :ViewportOwned, :Active, :WasActive, :WriteAccessed, :Collapsed, :WantCollapseToggle, :SkipItems, :SkipRefresh, :Appearing, :Hidden, :IsFallbackWindow, :IsExplicitChild, :HasCloseButton, :ResizeBorderHovered, :ResizeBorderHeld, :BeginCount, :BeginCountPreviousFrame, :BeginOrderWithinParent, :BeginOrderWithinContext, :FocusOrder, :AutoFitFramesX, :AutoFitFramesY, :AutoFitOnlyGrows, :AutoPosLastDirection, :HiddenFramesCanSkipItems, :HiddenFramesCannotSkipItems, :HiddenFramesForRenderOnly, :DisableInputsFrames, :SetWindowPosAllowFlags, :SetWindowSizeAllowFlags, :SetWindowCollapsedAllowFlags, :SetWindowDockAllowFlags, :SetWindowPosVal, :SetWindowPosPivot, :IDStack, :DC, :OuterRectClipped, :InnerRect, :InnerClipRect, :WorkRect, :ParentWorkRect, :ClipRect, :ContentRegionRect, :HitTestHoleSize, :HitTestHoleOffset, :LastFrameActive, :LastFrameJustFocused, :LastTimeActive, :ItemWidthDefault, :StateStorage, :ColumnsStorage, :FontWindowScale, :FontWindowScaleParents, :FontRefSize, :SettingsOffset, :DrawList, :DrawListInst, :ParentWindow, :ParentWindowInBeginStack, :RootWindow, :RootWindowPopupTree, :RootWindowDockTree, :RootWindowForTitleBarHighlight, :RootWindowForNav, :ParentWindowForFocusRoute, :NavLastChildNavWindow, :NavLastIds, :NavRectRel, :NavPreferredScoringPosRel, :NavRootFocusScopeId, :MemoryDrawListIdxCapacity, :MemoryDrawListVtxCapacity, :MemoryCompacted, :DockIsActive, :DockNodeIsVisible, :DockTabIsVisible, :DockTabWantClose, :DockOrder, :DockStyle, :DockNode, :DockNodeAsHost, :DockId, if private + fieldnames(typeof(x)) + else + () + end...) +end + const ImGuiItemFlags = Cint struct ImGuiLastItemData @@ -2313,6 +2369,14 @@ function Base.setproperty!(x::Ptr{ImGuiStyleMod}, f::Symbol, v) unsafe_store!(getproperty(x, f), v) end +function Base.propertynames(x::ImGuiStyleMod, private::Bool = false) + (:VarIdx, :BackupInt, :BackupFloat, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiStyleMod Size::Cint Capacity::Cint @@ -2799,6 +2863,14 @@ function Base.setproperty!(x::Ptr{ImGuiTableColumn}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiTableColumn, private::Bool = false) + (:Flags, :WidthGiven, :MinX, :MaxX, :WidthRequest, :WidthAuto, :WidthMax, :StretchWeight, :InitStretchWeightOrWidth, :ClipRect, :UserID, :WorkMinX, :WorkMaxX, :ItemWidth, :ContentMaxXFrozen, :ContentMaxXUnfrozen, :ContentMaxXHeadersUsed, :ContentMaxXHeadersIdeal, :NameOffset, :DisplayOrder, :IndexWithinEnabledSet, :PrevEnabledColumn, :NextEnabledColumn, :SortOrder, :DrawChannelCurrent, :DrawChannelFrozen, :DrawChannelUnfrozen, :IsEnabled, :IsUserEnabled, :IsUserEnabledNextFrame, :IsVisibleX, :IsVisibleY, :IsRequestOutput, :IsSkipItems, :IsPreserveWidthAuto, :NavLayerCurrent, :AutoFitQueue, :CannotSkipItemsQueue, :SortDirection, :SortDirectionsAvailCount, :SortDirectionsAvailMask, :SortDirectionsAvailList, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImSpan_ImGuiTableColumn Data::Ptr{ImGuiTableColumn} DataEnd::Ptr{ImGuiTableColumn} @@ -3027,6 +3099,14 @@ function Base.setproperty!(x::Ptr{ImGuiTable}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiTable, private::Bool = false) + (:ID, :Flags, :RawData, :TempData, :Columns, :DisplayOrderToIndex, :RowCellData, :EnabledMaskByDisplayOrder, :EnabledMaskByIndex, :VisibleMaskByIndex, :SettingsLoadedFlags, :SettingsOffset, :LastFrameActive, :ColumnsCount, :CurrentRow, :CurrentColumn, :InstanceCurrent, :InstanceInteracted, :RowPosY1, :RowPosY2, :RowMinHeight, :RowCellPaddingY, :RowTextBaseline, :RowIndentOffsetX, :RowFlags, :LastRowFlags, :RowBgColorCounter, :RowBgColor, :BorderColorStrong, :BorderColorLight, :BorderX1, :BorderX2, :HostIndentX, :MinColumnWidth, :OuterPaddingX, :CellPaddingX, :CellSpacingX1, :CellSpacingX2, :InnerWidth, :ColumnsGivenWidth, :ColumnsAutoFitWidth, :ColumnsStretchSumWeights, :ResizedColumnNextWidth, :ResizeLockMinContentsX2, :RefScale, :AngledHeadersHeight, :AngledHeadersSlope, :OuterRect, :InnerRect, :WorkRect, :InnerClipRect, :BgClipRect, :Bg0ClipRectForDrawCmd, :Bg2ClipRectForDrawCmd, :HostClipRect, :HostBackupInnerClipRect, :OuterWindow, :InnerWindow, :ColumnsNames, :DrawSplitter, :InstanceDataFirst, :InstanceDataExtra, :SortSpecsSingle, :SortSpecsMulti, :SortSpecs, :SortSpecsCount, :ColumnsEnabledCount, :ColumnsEnabledFixedCount, :DeclColumnsCount, :AngledHeadersCount, :HoveredColumnBody, :HoveredColumnBorder, :HighlightColumnHeader, :AutoFitSingleColumn, :ResizedColumn, :LastResizedColumn, :HeldHeaderColumn, :ReorderColumn, :ReorderColumnDir, :LeftMostEnabledColumn, :RightMostEnabledColumn, :LeftMostStretchedColumn, :RightMostStretchedColumn, :ContextPopupColumn, :FreezeRowsRequest, :FreezeRowsCount, :FreezeColumnsRequest, :FreezeColumnsCount, :RowCellDataCurrent, :DummyDrawChannel, :Bg2DrawChannelCurrent, :Bg2DrawChannelUnfrozen, :NavLayer, :IsLayoutLocked, :IsInsideRow, :IsInitializing, :IsSortSpecsDirty, :IsUsingHeaders, :IsContextPopupOpen, :DisableDefaultContextMenu, :IsSettingsRequestLoad, :IsSettingsDirty, :IsDefaultDisplayOrder, :IsResetAllRequest, :IsResetDisplayOrderRequest, :IsUnfrozenRows, :IsDefaultSizingPolicy, :IsActiveIdAliveBeforeTable, :IsActiveIdInTable, :HasScrollbarYCurr, :HasScrollbarYPrev, :MemoryCompacted, :HostSkipItems, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiTableTempData Size::Cint Capacity::Cint @@ -3150,6 +3230,14 @@ function Base.setproperty!(x::Ptr{ImGuiBoxSelectState}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiBoxSelectState, private::Bool = false) + (:ID, :IsActive, :IsStarting, :IsStartedFromVoid, :IsStartedSetNavIdOnce, :RequestClear, :KeyMods, :StartPosRel, :EndPosRel, :ScrollAccum, :Window, :UnclipMode, :UnclipRect, :BoxSelectRectPrev, :BoxSelectRectCurr, if private + fieldnames(typeof(x)) + else + () + end...) +end + @cenum ImGuiSelectionRequestType::UInt32 begin ImGuiSelectionRequestType_None = 0 ImGuiSelectionRequestType_SetAll = 1 @@ -3481,6 +3569,14 @@ function Base.setproperty!(x::Ptr{ImGuiStackLevelInfo}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiStackLevelInfo, private::Bool = false) + (:ID, :QueryFrameCount, :QuerySuccess, :DataType, :Desc, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiStackLevelInfo Size::Cint Capacity::Cint @@ -3879,6 +3975,14 @@ function Base.setproperty!(x::Ptr{ImGuiContext}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiContext, private::Bool = false) + (:Initialized, :IO, :PlatformIO, :Style, :ConfigFlagsCurrFrame, :ConfigFlagsLastFrame, :FontAtlases, :Font, :FontBaked, :FontSize, :FontSizeBase, :FontBakedScale, :FontRasterizerDensity, :CurrentDpiScale, :DrawListSharedData, :Time, :FrameCount, :FrameCountEnded, :FrameCountPlatformEnded, :FrameCountRendered, :WithinEndChildID, :WithinFrameScope, :WithinFrameScopeWithImplicitWindow, :GcCompactAll, :TestEngineHookItems, :TestEngine, :ContextName, :InputEventsQueue, :InputEventsTrail, :InputEventsNextMouseSource, :InputEventsNextEventId, :Windows, :WindowsFocusOrder, :WindowsTempSortBuffer, :CurrentWindowStack, :WindowsById, :WindowsActiveCount, :WindowsBorderHoverPadding, :DebugBreakInWindow, :CurrentWindow, :HoveredWindow, :HoveredWindowUnderMovingWindow, :HoveredWindowBeforeClear, :MovingWindow, :WheelingWindow, :WheelingWindowRefMousePos, :WheelingWindowStartFrame, :WheelingWindowScrolledFrame, :WheelingWindowReleaseTimer, :WheelingWindowWheelRemainder, :WheelingAxisAvg, :DebugDrawIdConflictsId, :DebugHookIdInfo, :HoveredId, :HoveredIdPreviousFrame, :HoveredIdPreviousFrameItemCount, :HoveredIdTimer, :HoveredIdNotActiveTimer, :HoveredIdAllowOverlap, :HoveredIdIsDisabled, :ItemUnclipByLog, :ActiveId, :ActiveIdIsAlive, :ActiveIdTimer, :ActiveIdIsJustActivated, :ActiveIdAllowOverlap, :ActiveIdNoClearOnFocusLoss, :ActiveIdHasBeenPressedBefore, :ActiveIdHasBeenEditedBefore, :ActiveIdHasBeenEditedThisFrame, :ActiveIdFromShortcut, :ActiveIdMouseButton, :ActiveIdClickOffset, :ActiveIdWindow, :ActiveIdSource, :ActiveIdPreviousFrame, :DeactivatedItemData, :ActiveIdValueOnActivation, :LastActiveId, :LastActiveIdTimer, :LastKeyModsChangeTime, :LastKeyModsChangeFromNoneTime, :LastKeyboardKeyPressTime, :KeysMayBeCharInput, :KeysOwnerData, :KeysRoutingTable, :ActiveIdUsingNavDirMask, :ActiveIdUsingAllKeyboardKeys, :DebugBreakInShortcutRouting, :CurrentFocusScopeId, :CurrentItemFlags, :DebugLocateId, :NextItemData, :LastItemData, :NextWindowData, :DebugShowGroupRects, :DebugFlashStyleColorIdx, :ColorStack, :StyleVarStack, :FontStack, :FocusScopeStack, :ItemFlagsStack, :GroupStack, :OpenPopupStack, :BeginPopupStack, :TreeNodeStack, :Viewports, :CurrentViewport, :MouseViewport, :MouseLastHoveredViewport, :PlatformLastFocusedViewportId, :FallbackMonitor, :PlatformMonitorsFullWorkRect, :ViewportCreatedCount, :PlatformWindowsCreatedCount, :ViewportFocusedStampCount, :NavCursorVisible, :NavHighlightItemUnderNav, :NavMousePosDirty, :NavIdIsAlive, :NavId, :NavWindow, :NavFocusScopeId, :NavLayer, :NavActivateId, :NavActivateDownId, :NavActivatePressedId, :NavActivateFlags, :NavFocusRoute, :NavHighlightActivatedId, :NavHighlightActivatedTimer, :NavNextActivateId, :NavNextActivateFlags, :NavInputSource, :NavLastValidSelectionUserData, :NavCursorHideFrames, :NavAnyRequest, :NavInitRequest, :NavInitRequestFromMove, :NavInitResult, :NavMoveSubmitted, :NavMoveScoringItems, :NavMoveForwardToNextFrame, :NavMoveFlags, :NavMoveScrollFlags, :NavMoveKeyMods, :NavMoveDir, :NavMoveDirForDebug, :NavMoveClipDir, :NavScoringRect, :NavScoringNoClipRect, :NavScoringDebugCount, :NavTabbingDir, :NavTabbingCounter, :NavMoveResultLocal, :NavMoveResultLocalVisible, :NavMoveResultOther, :NavTabbingResultFirst, :NavJustMovedFromFocusScopeId, :NavJustMovedToId, :NavJustMovedToFocusScopeId, :NavJustMovedToKeyMods, :NavJustMovedToIsTabbing, :NavJustMovedToHasSelectionData, :ConfigNavWindowingWithGamepad, :ConfigNavWindowingKeyNext, :ConfigNavWindowingKeyPrev, :NavWindowingTarget, :NavWindowingTargetAnim, :NavWindowingListWindow, :NavWindowingTimer, :NavWindowingHighlightAlpha, :NavWindowingInputSource, :NavWindowingToggleLayer, :NavWindowingToggleKey, :NavWindowingAccumDeltaPos, :NavWindowingAccumDeltaSize, :DimBgRatio, :DragDropActive, :DragDropWithinSource, :DragDropWithinTarget, :DragDropSourceFlags, :DragDropSourceFrameCount, :DragDropMouseButton, :DragDropPayload, :DragDropTargetRect, :DragDropTargetClipRect, :DragDropTargetId, :DragDropAcceptFlags, :DragDropAcceptIdCurrRectSurface, :DragDropAcceptIdCurr, :DragDropAcceptIdPrev, :DragDropAcceptFrameCount, :DragDropHoldJustPressedId, :DragDropPayloadBufHeap, :DragDropPayloadBufLocal, :ClipperTempDataStacked, :ClipperTempData, :CurrentTable, :DebugBreakInTable, :TablesTempDataStacked, :TablesTempData, :Tables, :TablesLastTimeActive, :DrawChannelsTempMergeBuffer, :CurrentTabBar, :TabBars, :CurrentTabBarStack, :ShrinkWidthBuffer, :BoxSelectState, :CurrentMultiSelect, :MultiSelectTempDataStacked, :MultiSelectTempData, :MultiSelectStorage, :HoverItemDelayId, :HoverItemDelayIdPreviousFrame, :HoverItemDelayTimer, :HoverItemDelayClearTimer, :HoverItemUnlockedStationaryId, :HoverWindowUnlockedStationaryId, :MouseCursor, :MouseStationaryTimer, :MouseLastValidPos, :InputTextState, :InputTextDeactivatedState, :InputTextPasswordFontBackupBaked, :InputTextPasswordFontBackupFlags, :TempInputId, :DataTypeZeroValue, :BeginMenuDepth, :BeginComboDepth, :ColorEditOptions, :ColorEditCurrentID, :ColorEditSavedID, :ColorEditSavedHue, :ColorEditSavedSat, :ColorEditSavedColor, :ColorPickerRef, :ComboPreviewData, :WindowResizeBorderExpectedRect, :WindowResizeRelativeMode, :ScrollbarSeekMode, :ScrollbarClickDeltaToGrabCenter, :SliderGrabClickOffset, :SliderCurrentAccum, :SliderCurrentAccumDirty, :DragCurrentAccumDirty, :DragCurrentAccum, :DragSpeedDefaultRatio, :DisabledAlphaBackup, :DisabledStackSize, :TooltipOverrideCount, :TooltipPreviousWindow, :ClipboardHandlerData, :MenusIdSubmittedThisFrame, :TypingSelectState, :PlatformImeData, :PlatformImeDataPrev, :UserTextures, :DockContext, :DockNodeWindowMenuHandler, :SettingsLoaded, :SettingsDirtyTimer, :SettingsIniData, :SettingsHandlers, :SettingsWindows, :SettingsTables, :Hooks, :HookIdNext, :LocalizationTable, :LogEnabled, :LogFlags, :LogWindow, :LogFile, :LogBuffer, :LogNextPrefix, :LogNextSuffix, :LogLinePosY, :LogLineFirstItem, :LogDepthRef, :LogDepthToExpand, :LogDepthToExpandDefault, :ErrorCallback, :ErrorCallbackUserData, :ErrorTooltipLockedPos, :ErrorFirst, :ErrorCountCurrentFrame, :StackSizesInNewFrame, :StackSizesInBeginForCurrentWindow, :DebugDrawIdConflictsCount, :DebugLogFlags, :DebugLogBuf, :DebugLogIndex, :DebugLogSkippedErrors, :DebugLogAutoDisableFlags, :DebugLogAutoDisableFrames, :DebugLocateFrames, :DebugBreakInLocateId, :DebugBreakKeyChord, :DebugBeginReturnValueCullDepth, :DebugItemPickerActive, :DebugItemPickerMouseButton, :DebugItemPickerBreakId, :DebugFlashStyleColorTime, :DebugFlashStyleColorBackup, :DebugMetricsConfig, :DebugIDStackTool, :DebugAllocInfo, :DebugHoveredDockNode, :FramerateSecPerFrame, :FramerateSecPerFrameIdx, :FramerateSecPerFrameCount, :FramerateSecPerFrameAccum, :WantCaptureMouseNextFrame, :WantCaptureKeyboardNextFrame, :WantTextInputNextFrame, :TempBuffer, :TempKeychordName, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImGuiInputTextCallbackData Ctx::Ptr{ImGuiContext} EventFlag::ImGuiInputTextFlags @@ -4051,6 +4155,14 @@ function Base.setproperty!(x::Ptr{ImGuiStyleVarInfo}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiStyleVarInfo, private::Bool = false) + (:Count, :DataType, :Offset, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImGuiTableSettings ID::ImGuiID SaveFlags::ImGuiTableFlags @@ -5202,6 +5314,14 @@ function Base.setproperty!(x::Ptr{ImGuiTableColumnSettings}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiTableColumnSettings, private::Bool = false) + (:WidthOrWeight, :UserID, :Index, :DisplayOrder, :SortOrder, :SortDirection, :IsEnabled, :IsStretch, if private + fieldnames(typeof(x)) + else + () + end...) +end + function ImVec2_ImVec2_Nil() ccall((:ImVec2_ImVec2_Nil, libcimgui), Ptr{ImVec2}, ()) end diff --git a/lib/armv7l-linux-musleabihf.jl b/lib/armv7l-linux-musleabihf.jl index 731e8e8..d42153c 100644 --- a/lib/armv7l-linux-musleabihf.jl +++ b/lib/armv7l-linux-musleabihf.jl @@ -1,4 +1,4 @@ -using CEnum +using CEnum: CEnum, @cenum to_c_type(t::Type) = t to_c_type_pairs(va_list) = map(enumerate(to_c_type.(va_list))) do (ind, type) @@ -472,6 +472,14 @@ function Base.setproperty!(x::Ptr{ImFontGlyph}, f::Symbol, v) end end +function Base.propertynames(x::ImFontGlyph, private::Bool = false) + (:Colored, :Visible, :SourceIdx, :Codepoint, :AdvanceX, :X0, :Y0, :X1, :Y1, :U0, :V0, :U1, :V1, :PackId, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImFontGlyph Size::Cint Capacity::Cint @@ -545,6 +553,14 @@ function Base.setproperty!(x::Ptr{ImFontBaked}, f::Symbol, v) end end +function Base.propertynames(x::ImFontBaked, private::Bool = false) + (:IndexAdvanceX, :FallbackAdvanceX, :Size, :RasterizerDensity, :IndexLookup, :Glyphs, :FallbackGlyphIndex, :Ascent, :Descent, :MetricsTotalSurface, :WantDestroy, :LockLoadingFallback, :LastUsedFrame, :BakedId, :ContainerFont, :FontLoaderDatas, if private + fieldnames(typeof(x)) + else + () + end...) +end + const ImFontFlags = Cint const ImS8 = Int8 @@ -661,6 +677,14 @@ function Base.setproperty!(x::Ptr{ImGuiStoragePair}, f::Symbol, v) unsafe_store!(getproperty(x, f), v) end +function Base.propertynames(x::ImGuiStoragePair, private::Bool = false) + (:key, :val_i, :val_f, :val_p, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiStoragePair Size::Cint Capacity::Cint @@ -782,6 +806,14 @@ function Base.setproperty!(x::Ptr{ImFontAtlasRectEntry}, f::Symbol, v) end end +function Base.propertynames(x::ImFontAtlasRectEntry, private::Bool = false) + (:TargetIndex, :Generation, :IsUsed, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImFontAtlasRectEntry Size::Cint Capacity::Cint @@ -1556,6 +1588,14 @@ function Base.setproperty!(x::Ptr{ImGuiInputEvent}, f::Symbol, v) unsafe_store!(getproperty(x, f), v) end +function Base.propertynames(x::ImGuiInputEvent, private::Bool = false) + (:Type, :Source, :EventId, :MousePos, :MouseWheel, :MouseButton, :MouseViewport, :Key, :Text, :AppFocused, :AddedByTestEngine, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiInputEvent Size::Cint Capacity::Cint @@ -1955,6 +1995,14 @@ function Base.setproperty!(x::Ptr{ImGuiDockNode}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiDockNode, private::Bool = false) + (:ID, :SharedFlags, :LocalFlags, :LocalFlagsInWindows, :MergedFlags, :State, :ParentNode, :ChildNodes, :Windows, :TabBar, :Pos, :Size, :SizeRef, :SplitAxis, :WindowClass, :LastBgColor, :HostWindow, :VisibleWindow, :CentralNode, :OnlyNodeWithWindows, :CountNodeWithWindows, :LastFrameAlive, :LastFrameActive, :LastFrameFocused, :LastFocusedNodeId, :SelectedTabId, :WantCloseTabId, :RefViewportId, :AuthorityForPos, :AuthorityForSize, :AuthorityForViewport, :IsVisible, :IsFocused, :IsBgDrawnThisFrame, :HasCloseButton, :HasWindowMenuButton, :HasCentralNodeChild, :WantCloseAll, :WantLockSizeOnce, :WantMouseMove, :WantHiddenTabBarUpdate, :WantHiddenTabBarToggle, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImGuiWindow data::NTuple{1072, UInt8} end @@ -2131,6 +2179,14 @@ function Base.setproperty!(x::Ptr{ImGuiWindow}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiWindow, private::Bool = false) + (:Ctx, :Name, :ID, :Flags, :FlagsPreviousFrame, :ChildFlags, :WindowClass, :Viewport, :ViewportId, :ViewportPos, :ViewportAllowPlatformMonitorExtend, :Pos, :Size, :SizeFull, :ContentSize, :ContentSizeIdeal, :ContentSizeExplicit, :WindowPadding, :WindowRounding, :WindowBorderSize, :TitleBarHeight, :MenuBarHeight, :DecoOuterSizeX1, :DecoOuterSizeY1, :DecoOuterSizeX2, :DecoOuterSizeY2, :DecoInnerSizeX1, :DecoInnerSizeY1, :NameBufLen, :MoveId, :TabId, :ChildId, :PopupId, :Scroll, :ScrollMax, :ScrollTarget, :ScrollTargetCenterRatio, :ScrollTargetEdgeSnapDist, :ScrollbarSizes, :ScrollbarX, :ScrollbarY, :ScrollbarXStabilizeEnabled, :ScrollbarXStabilizeToggledHistory, :ViewportOwned, :Active, :WasActive, :WriteAccessed, :Collapsed, :WantCollapseToggle, :SkipItems, :SkipRefresh, :Appearing, :Hidden, :IsFallbackWindow, :IsExplicitChild, :HasCloseButton, :ResizeBorderHovered, :ResizeBorderHeld, :BeginCount, :BeginCountPreviousFrame, :BeginOrderWithinParent, :BeginOrderWithinContext, :FocusOrder, :AutoFitFramesX, :AutoFitFramesY, :AutoFitOnlyGrows, :AutoPosLastDirection, :HiddenFramesCanSkipItems, :HiddenFramesCannotSkipItems, :HiddenFramesForRenderOnly, :DisableInputsFrames, :SetWindowPosAllowFlags, :SetWindowSizeAllowFlags, :SetWindowCollapsedAllowFlags, :SetWindowDockAllowFlags, :SetWindowPosVal, :SetWindowPosPivot, :IDStack, :DC, :OuterRectClipped, :InnerRect, :InnerClipRect, :WorkRect, :ParentWorkRect, :ClipRect, :ContentRegionRect, :HitTestHoleSize, :HitTestHoleOffset, :LastFrameActive, :LastFrameJustFocused, :LastTimeActive, :ItemWidthDefault, :StateStorage, :ColumnsStorage, :FontWindowScale, :FontWindowScaleParents, :FontRefSize, :SettingsOffset, :DrawList, :DrawListInst, :ParentWindow, :ParentWindowInBeginStack, :RootWindow, :RootWindowPopupTree, :RootWindowDockTree, :RootWindowForTitleBarHighlight, :RootWindowForNav, :ParentWindowForFocusRoute, :NavLastChildNavWindow, :NavLastIds, :NavRectRel, :NavPreferredScoringPosRel, :NavRootFocusScopeId, :MemoryDrawListIdxCapacity, :MemoryDrawListVtxCapacity, :MemoryCompacted, :DockIsActive, :DockNodeIsVisible, :DockTabIsVisible, :DockTabWantClose, :DockOrder, :DockStyle, :DockNode, :DockNodeAsHost, :DockId, if private + fieldnames(typeof(x)) + else + () + end...) +end + const ImGuiItemFlags = Cint struct ImGuiLastItemData @@ -2311,6 +2367,14 @@ function Base.setproperty!(x::Ptr{ImGuiStyleMod}, f::Symbol, v) unsafe_store!(getproperty(x, f), v) end +function Base.propertynames(x::ImGuiStyleMod, private::Bool = false) + (:VarIdx, :BackupInt, :BackupFloat, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiStyleMod Size::Cint Capacity::Cint @@ -2797,6 +2861,14 @@ function Base.setproperty!(x::Ptr{ImGuiTableColumn}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiTableColumn, private::Bool = false) + (:Flags, :WidthGiven, :MinX, :MaxX, :WidthRequest, :WidthAuto, :WidthMax, :StretchWeight, :InitStretchWeightOrWidth, :ClipRect, :UserID, :WorkMinX, :WorkMaxX, :ItemWidth, :ContentMaxXFrozen, :ContentMaxXUnfrozen, :ContentMaxXHeadersUsed, :ContentMaxXHeadersIdeal, :NameOffset, :DisplayOrder, :IndexWithinEnabledSet, :PrevEnabledColumn, :NextEnabledColumn, :SortOrder, :DrawChannelCurrent, :DrawChannelFrozen, :DrawChannelUnfrozen, :IsEnabled, :IsUserEnabled, :IsUserEnabledNextFrame, :IsVisibleX, :IsVisibleY, :IsRequestOutput, :IsSkipItems, :IsPreserveWidthAuto, :NavLayerCurrent, :AutoFitQueue, :CannotSkipItemsQueue, :SortDirection, :SortDirectionsAvailCount, :SortDirectionsAvailMask, :SortDirectionsAvailList, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImSpan_ImGuiTableColumn Data::Ptr{ImGuiTableColumn} DataEnd::Ptr{ImGuiTableColumn} @@ -3025,6 +3097,14 @@ function Base.setproperty!(x::Ptr{ImGuiTable}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiTable, private::Bool = false) + (:ID, :Flags, :RawData, :TempData, :Columns, :DisplayOrderToIndex, :RowCellData, :EnabledMaskByDisplayOrder, :EnabledMaskByIndex, :VisibleMaskByIndex, :SettingsLoadedFlags, :SettingsOffset, :LastFrameActive, :ColumnsCount, :CurrentRow, :CurrentColumn, :InstanceCurrent, :InstanceInteracted, :RowPosY1, :RowPosY2, :RowMinHeight, :RowCellPaddingY, :RowTextBaseline, :RowIndentOffsetX, :RowFlags, :LastRowFlags, :RowBgColorCounter, :RowBgColor, :BorderColorStrong, :BorderColorLight, :BorderX1, :BorderX2, :HostIndentX, :MinColumnWidth, :OuterPaddingX, :CellPaddingX, :CellSpacingX1, :CellSpacingX2, :InnerWidth, :ColumnsGivenWidth, :ColumnsAutoFitWidth, :ColumnsStretchSumWeights, :ResizedColumnNextWidth, :ResizeLockMinContentsX2, :RefScale, :AngledHeadersHeight, :AngledHeadersSlope, :OuterRect, :InnerRect, :WorkRect, :InnerClipRect, :BgClipRect, :Bg0ClipRectForDrawCmd, :Bg2ClipRectForDrawCmd, :HostClipRect, :HostBackupInnerClipRect, :OuterWindow, :InnerWindow, :ColumnsNames, :DrawSplitter, :InstanceDataFirst, :InstanceDataExtra, :SortSpecsSingle, :SortSpecsMulti, :SortSpecs, :SortSpecsCount, :ColumnsEnabledCount, :ColumnsEnabledFixedCount, :DeclColumnsCount, :AngledHeadersCount, :HoveredColumnBody, :HoveredColumnBorder, :HighlightColumnHeader, :AutoFitSingleColumn, :ResizedColumn, :LastResizedColumn, :HeldHeaderColumn, :ReorderColumn, :ReorderColumnDir, :LeftMostEnabledColumn, :RightMostEnabledColumn, :LeftMostStretchedColumn, :RightMostStretchedColumn, :ContextPopupColumn, :FreezeRowsRequest, :FreezeRowsCount, :FreezeColumnsRequest, :FreezeColumnsCount, :RowCellDataCurrent, :DummyDrawChannel, :Bg2DrawChannelCurrent, :Bg2DrawChannelUnfrozen, :NavLayer, :IsLayoutLocked, :IsInsideRow, :IsInitializing, :IsSortSpecsDirty, :IsUsingHeaders, :IsContextPopupOpen, :DisableDefaultContextMenu, :IsSettingsRequestLoad, :IsSettingsDirty, :IsDefaultDisplayOrder, :IsResetAllRequest, :IsResetDisplayOrderRequest, :IsUnfrozenRows, :IsDefaultSizingPolicy, :IsActiveIdAliveBeforeTable, :IsActiveIdInTable, :HasScrollbarYCurr, :HasScrollbarYPrev, :MemoryCompacted, :HostSkipItems, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiTableTempData Size::Cint Capacity::Cint @@ -3148,6 +3228,14 @@ function Base.setproperty!(x::Ptr{ImGuiBoxSelectState}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiBoxSelectState, private::Bool = false) + (:ID, :IsActive, :IsStarting, :IsStartedFromVoid, :IsStartedSetNavIdOnce, :RequestClear, :KeyMods, :StartPosRel, :EndPosRel, :ScrollAccum, :Window, :UnclipMode, :UnclipRect, :BoxSelectRectPrev, :BoxSelectRectCurr, if private + fieldnames(typeof(x)) + else + () + end...) +end + @cenum ImGuiSelectionRequestType::UInt32 begin ImGuiSelectionRequestType_None = 0 ImGuiSelectionRequestType_SetAll = 1 @@ -3479,6 +3567,14 @@ function Base.setproperty!(x::Ptr{ImGuiStackLevelInfo}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiStackLevelInfo, private::Bool = false) + (:ID, :QueryFrameCount, :QuerySuccess, :DataType, :Desc, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiStackLevelInfo Size::Cint Capacity::Cint @@ -3877,6 +3973,14 @@ function Base.setproperty!(x::Ptr{ImGuiContext}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiContext, private::Bool = false) + (:Initialized, :IO, :PlatformIO, :Style, :ConfigFlagsCurrFrame, :ConfigFlagsLastFrame, :FontAtlases, :Font, :FontBaked, :FontSize, :FontSizeBase, :FontBakedScale, :FontRasterizerDensity, :CurrentDpiScale, :DrawListSharedData, :Time, :FrameCount, :FrameCountEnded, :FrameCountPlatformEnded, :FrameCountRendered, :WithinEndChildID, :WithinFrameScope, :WithinFrameScopeWithImplicitWindow, :GcCompactAll, :TestEngineHookItems, :TestEngine, :ContextName, :InputEventsQueue, :InputEventsTrail, :InputEventsNextMouseSource, :InputEventsNextEventId, :Windows, :WindowsFocusOrder, :WindowsTempSortBuffer, :CurrentWindowStack, :WindowsById, :WindowsActiveCount, :WindowsBorderHoverPadding, :DebugBreakInWindow, :CurrentWindow, :HoveredWindow, :HoveredWindowUnderMovingWindow, :HoveredWindowBeforeClear, :MovingWindow, :WheelingWindow, :WheelingWindowRefMousePos, :WheelingWindowStartFrame, :WheelingWindowScrolledFrame, :WheelingWindowReleaseTimer, :WheelingWindowWheelRemainder, :WheelingAxisAvg, :DebugDrawIdConflictsId, :DebugHookIdInfo, :HoveredId, :HoveredIdPreviousFrame, :HoveredIdPreviousFrameItemCount, :HoveredIdTimer, :HoveredIdNotActiveTimer, :HoveredIdAllowOverlap, :HoveredIdIsDisabled, :ItemUnclipByLog, :ActiveId, :ActiveIdIsAlive, :ActiveIdTimer, :ActiveIdIsJustActivated, :ActiveIdAllowOverlap, :ActiveIdNoClearOnFocusLoss, :ActiveIdHasBeenPressedBefore, :ActiveIdHasBeenEditedBefore, :ActiveIdHasBeenEditedThisFrame, :ActiveIdFromShortcut, :ActiveIdMouseButton, :ActiveIdClickOffset, :ActiveIdWindow, :ActiveIdSource, :ActiveIdPreviousFrame, :DeactivatedItemData, :ActiveIdValueOnActivation, :LastActiveId, :LastActiveIdTimer, :LastKeyModsChangeTime, :LastKeyModsChangeFromNoneTime, :LastKeyboardKeyPressTime, :KeysMayBeCharInput, :KeysOwnerData, :KeysRoutingTable, :ActiveIdUsingNavDirMask, :ActiveIdUsingAllKeyboardKeys, :DebugBreakInShortcutRouting, :CurrentFocusScopeId, :CurrentItemFlags, :DebugLocateId, :NextItemData, :LastItemData, :NextWindowData, :DebugShowGroupRects, :DebugFlashStyleColorIdx, :ColorStack, :StyleVarStack, :FontStack, :FocusScopeStack, :ItemFlagsStack, :GroupStack, :OpenPopupStack, :BeginPopupStack, :TreeNodeStack, :Viewports, :CurrentViewport, :MouseViewport, :MouseLastHoveredViewport, :PlatformLastFocusedViewportId, :FallbackMonitor, :PlatformMonitorsFullWorkRect, :ViewportCreatedCount, :PlatformWindowsCreatedCount, :ViewportFocusedStampCount, :NavCursorVisible, :NavHighlightItemUnderNav, :NavMousePosDirty, :NavIdIsAlive, :NavId, :NavWindow, :NavFocusScopeId, :NavLayer, :NavActivateId, :NavActivateDownId, :NavActivatePressedId, :NavActivateFlags, :NavFocusRoute, :NavHighlightActivatedId, :NavHighlightActivatedTimer, :NavNextActivateId, :NavNextActivateFlags, :NavInputSource, :NavLastValidSelectionUserData, :NavCursorHideFrames, :NavAnyRequest, :NavInitRequest, :NavInitRequestFromMove, :NavInitResult, :NavMoveSubmitted, :NavMoveScoringItems, :NavMoveForwardToNextFrame, :NavMoveFlags, :NavMoveScrollFlags, :NavMoveKeyMods, :NavMoveDir, :NavMoveDirForDebug, :NavMoveClipDir, :NavScoringRect, :NavScoringNoClipRect, :NavScoringDebugCount, :NavTabbingDir, :NavTabbingCounter, :NavMoveResultLocal, :NavMoveResultLocalVisible, :NavMoveResultOther, :NavTabbingResultFirst, :NavJustMovedFromFocusScopeId, :NavJustMovedToId, :NavJustMovedToFocusScopeId, :NavJustMovedToKeyMods, :NavJustMovedToIsTabbing, :NavJustMovedToHasSelectionData, :ConfigNavWindowingWithGamepad, :ConfigNavWindowingKeyNext, :ConfigNavWindowingKeyPrev, :NavWindowingTarget, :NavWindowingTargetAnim, :NavWindowingListWindow, :NavWindowingTimer, :NavWindowingHighlightAlpha, :NavWindowingInputSource, :NavWindowingToggleLayer, :NavWindowingToggleKey, :NavWindowingAccumDeltaPos, :NavWindowingAccumDeltaSize, :DimBgRatio, :DragDropActive, :DragDropWithinSource, :DragDropWithinTarget, :DragDropSourceFlags, :DragDropSourceFrameCount, :DragDropMouseButton, :DragDropPayload, :DragDropTargetRect, :DragDropTargetClipRect, :DragDropTargetId, :DragDropAcceptFlags, :DragDropAcceptIdCurrRectSurface, :DragDropAcceptIdCurr, :DragDropAcceptIdPrev, :DragDropAcceptFrameCount, :DragDropHoldJustPressedId, :DragDropPayloadBufHeap, :DragDropPayloadBufLocal, :ClipperTempDataStacked, :ClipperTempData, :CurrentTable, :DebugBreakInTable, :TablesTempDataStacked, :TablesTempData, :Tables, :TablesLastTimeActive, :DrawChannelsTempMergeBuffer, :CurrentTabBar, :TabBars, :CurrentTabBarStack, :ShrinkWidthBuffer, :BoxSelectState, :CurrentMultiSelect, :MultiSelectTempDataStacked, :MultiSelectTempData, :MultiSelectStorage, :HoverItemDelayId, :HoverItemDelayIdPreviousFrame, :HoverItemDelayTimer, :HoverItemDelayClearTimer, :HoverItemUnlockedStationaryId, :HoverWindowUnlockedStationaryId, :MouseCursor, :MouseStationaryTimer, :MouseLastValidPos, :InputTextState, :InputTextDeactivatedState, :InputTextPasswordFontBackupBaked, :InputTextPasswordFontBackupFlags, :TempInputId, :DataTypeZeroValue, :BeginMenuDepth, :BeginComboDepth, :ColorEditOptions, :ColorEditCurrentID, :ColorEditSavedID, :ColorEditSavedHue, :ColorEditSavedSat, :ColorEditSavedColor, :ColorPickerRef, :ComboPreviewData, :WindowResizeBorderExpectedRect, :WindowResizeRelativeMode, :ScrollbarSeekMode, :ScrollbarClickDeltaToGrabCenter, :SliderGrabClickOffset, :SliderCurrentAccum, :SliderCurrentAccumDirty, :DragCurrentAccumDirty, :DragCurrentAccum, :DragSpeedDefaultRatio, :DisabledAlphaBackup, :DisabledStackSize, :TooltipOverrideCount, :TooltipPreviousWindow, :ClipboardHandlerData, :MenusIdSubmittedThisFrame, :TypingSelectState, :PlatformImeData, :PlatformImeDataPrev, :UserTextures, :DockContext, :DockNodeWindowMenuHandler, :SettingsLoaded, :SettingsDirtyTimer, :SettingsIniData, :SettingsHandlers, :SettingsWindows, :SettingsTables, :Hooks, :HookIdNext, :LocalizationTable, :LogEnabled, :LogFlags, :LogWindow, :LogFile, :LogBuffer, :LogNextPrefix, :LogNextSuffix, :LogLinePosY, :LogLineFirstItem, :LogDepthRef, :LogDepthToExpand, :LogDepthToExpandDefault, :ErrorCallback, :ErrorCallbackUserData, :ErrorTooltipLockedPos, :ErrorFirst, :ErrorCountCurrentFrame, :StackSizesInNewFrame, :StackSizesInBeginForCurrentWindow, :DebugDrawIdConflictsCount, :DebugLogFlags, :DebugLogBuf, :DebugLogIndex, :DebugLogSkippedErrors, :DebugLogAutoDisableFlags, :DebugLogAutoDisableFrames, :DebugLocateFrames, :DebugBreakInLocateId, :DebugBreakKeyChord, :DebugBeginReturnValueCullDepth, :DebugItemPickerActive, :DebugItemPickerMouseButton, :DebugItemPickerBreakId, :DebugFlashStyleColorTime, :DebugFlashStyleColorBackup, :DebugMetricsConfig, :DebugIDStackTool, :DebugAllocInfo, :DebugHoveredDockNode, :FramerateSecPerFrame, :FramerateSecPerFrameIdx, :FramerateSecPerFrameCount, :FramerateSecPerFrameAccum, :WantCaptureMouseNextFrame, :WantCaptureKeyboardNextFrame, :WantTextInputNextFrame, :TempBuffer, :TempKeychordName, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImGuiInputTextCallbackData Ctx::Ptr{ImGuiContext} EventFlag::ImGuiInputTextFlags @@ -4049,6 +4153,14 @@ function Base.setproperty!(x::Ptr{ImGuiStyleVarInfo}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiStyleVarInfo, private::Bool = false) + (:Count, :DataType, :Offset, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImGuiTableSettings ID::ImGuiID SaveFlags::ImGuiTableFlags @@ -5200,6 +5312,14 @@ function Base.setproperty!(x::Ptr{ImGuiTableColumnSettings}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiTableColumnSettings, private::Bool = false) + (:WidthOrWeight, :UserID, :Index, :DisplayOrder, :SortOrder, :SortDirection, :IsEnabled, :IsStretch, if private + fieldnames(typeof(x)) + else + () + end...) +end + function ImVec2_ImVec2_Nil() ccall((:ImVec2_ImVec2_Nil, libcimgui), Ptr{ImVec2}, ()) end diff --git a/lib/i686-linux-gnu.jl b/lib/i686-linux-gnu.jl index 8f0899c..d8c644d 100644 --- a/lib/i686-linux-gnu.jl +++ b/lib/i686-linux-gnu.jl @@ -1,4 +1,4 @@ -using CEnum +using CEnum: CEnum, @cenum to_c_type(t::Type) = t to_c_type_pairs(va_list) = map(enumerate(to_c_type.(va_list))) do (ind, type) @@ -474,6 +474,14 @@ function Base.setproperty!(x::Ptr{ImFontGlyph}, f::Symbol, v) end end +function Base.propertynames(x::ImFontGlyph, private::Bool = false) + (:Colored, :Visible, :SourceIdx, :Codepoint, :AdvanceX, :X0, :Y0, :X1, :Y1, :U0, :V0, :U1, :V1, :PackId, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImFontGlyph Size::Cint Capacity::Cint @@ -547,6 +555,14 @@ function Base.setproperty!(x::Ptr{ImFontBaked}, f::Symbol, v) end end +function Base.propertynames(x::ImFontBaked, private::Bool = false) + (:IndexAdvanceX, :FallbackAdvanceX, :Size, :RasterizerDensity, :IndexLookup, :Glyphs, :FallbackGlyphIndex, :Ascent, :Descent, :MetricsTotalSurface, :WantDestroy, :LockLoadingFallback, :LastUsedFrame, :BakedId, :ContainerFont, :FontLoaderDatas, if private + fieldnames(typeof(x)) + else + () + end...) +end + const ImFontFlags = Cint const ImS8 = Int8 @@ -663,6 +679,14 @@ function Base.setproperty!(x::Ptr{ImGuiStoragePair}, f::Symbol, v) unsafe_store!(getproperty(x, f), v) end +function Base.propertynames(x::ImGuiStoragePair, private::Bool = false) + (:key, :val_i, :val_f, :val_p, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiStoragePair Size::Cint Capacity::Cint @@ -784,6 +808,14 @@ function Base.setproperty!(x::Ptr{ImFontAtlasRectEntry}, f::Symbol, v) end end +function Base.propertynames(x::ImFontAtlasRectEntry, private::Bool = false) + (:TargetIndex, :Generation, :IsUsed, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImFontAtlasRectEntry Size::Cint Capacity::Cint @@ -1558,6 +1590,14 @@ function Base.setproperty!(x::Ptr{ImGuiInputEvent}, f::Symbol, v) unsafe_store!(getproperty(x, f), v) end +function Base.propertynames(x::ImGuiInputEvent, private::Bool = false) + (:Type, :Source, :EventId, :MousePos, :MouseWheel, :MouseButton, :MouseViewport, :Key, :Text, :AppFocused, :AddedByTestEngine, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiInputEvent Size::Cint Capacity::Cint @@ -1957,6 +1997,14 @@ function Base.setproperty!(x::Ptr{ImGuiDockNode}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiDockNode, private::Bool = false) + (:ID, :SharedFlags, :LocalFlags, :LocalFlagsInWindows, :MergedFlags, :State, :ParentNode, :ChildNodes, :Windows, :TabBar, :Pos, :Size, :SizeRef, :SplitAxis, :WindowClass, :LastBgColor, :HostWindow, :VisibleWindow, :CentralNode, :OnlyNodeWithWindows, :CountNodeWithWindows, :LastFrameAlive, :LastFrameActive, :LastFrameFocused, :LastFocusedNodeId, :SelectedTabId, :WantCloseTabId, :RefViewportId, :AuthorityForPos, :AuthorityForSize, :AuthorityForViewport, :IsVisible, :IsFocused, :IsBgDrawnThisFrame, :HasCloseButton, :HasWindowMenuButton, :HasCentralNodeChild, :WantCloseAll, :WantLockSizeOnce, :WantMouseMove, :WantHiddenTabBarUpdate, :WantHiddenTabBarToggle, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImGuiWindow data::NTuple{1056, UInt8} end @@ -2133,6 +2181,14 @@ function Base.setproperty!(x::Ptr{ImGuiWindow}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiWindow, private::Bool = false) + (:Ctx, :Name, :ID, :Flags, :FlagsPreviousFrame, :ChildFlags, :WindowClass, :Viewport, :ViewportId, :ViewportPos, :ViewportAllowPlatformMonitorExtend, :Pos, :Size, :SizeFull, :ContentSize, :ContentSizeIdeal, :ContentSizeExplicit, :WindowPadding, :WindowRounding, :WindowBorderSize, :TitleBarHeight, :MenuBarHeight, :DecoOuterSizeX1, :DecoOuterSizeY1, :DecoOuterSizeX2, :DecoOuterSizeY2, :DecoInnerSizeX1, :DecoInnerSizeY1, :NameBufLen, :MoveId, :TabId, :ChildId, :PopupId, :Scroll, :ScrollMax, :ScrollTarget, :ScrollTargetCenterRatio, :ScrollTargetEdgeSnapDist, :ScrollbarSizes, :ScrollbarX, :ScrollbarY, :ScrollbarXStabilizeEnabled, :ScrollbarXStabilizeToggledHistory, :ViewportOwned, :Active, :WasActive, :WriteAccessed, :Collapsed, :WantCollapseToggle, :SkipItems, :SkipRefresh, :Appearing, :Hidden, :IsFallbackWindow, :IsExplicitChild, :HasCloseButton, :ResizeBorderHovered, :ResizeBorderHeld, :BeginCount, :BeginCountPreviousFrame, :BeginOrderWithinParent, :BeginOrderWithinContext, :FocusOrder, :AutoFitFramesX, :AutoFitFramesY, :AutoFitOnlyGrows, :AutoPosLastDirection, :HiddenFramesCanSkipItems, :HiddenFramesCannotSkipItems, :HiddenFramesForRenderOnly, :DisableInputsFrames, :SetWindowPosAllowFlags, :SetWindowSizeAllowFlags, :SetWindowCollapsedAllowFlags, :SetWindowDockAllowFlags, :SetWindowPosVal, :SetWindowPosPivot, :IDStack, :DC, :OuterRectClipped, :InnerRect, :InnerClipRect, :WorkRect, :ParentWorkRect, :ClipRect, :ContentRegionRect, :HitTestHoleSize, :HitTestHoleOffset, :LastFrameActive, :LastFrameJustFocused, :LastTimeActive, :ItemWidthDefault, :StateStorage, :ColumnsStorage, :FontWindowScale, :FontWindowScaleParents, :FontRefSize, :SettingsOffset, :DrawList, :DrawListInst, :ParentWindow, :ParentWindowInBeginStack, :RootWindow, :RootWindowPopupTree, :RootWindowDockTree, :RootWindowForTitleBarHighlight, :RootWindowForNav, :ParentWindowForFocusRoute, :NavLastChildNavWindow, :NavLastIds, :NavRectRel, :NavPreferredScoringPosRel, :NavRootFocusScopeId, :MemoryDrawListIdxCapacity, :MemoryDrawListVtxCapacity, :MemoryCompacted, :DockIsActive, :DockNodeIsVisible, :DockTabIsVisible, :DockTabWantClose, :DockOrder, :DockStyle, :DockNode, :DockNodeAsHost, :DockId, if private + fieldnames(typeof(x)) + else + () + end...) +end + const ImGuiItemFlags = Cint struct ImGuiLastItemData @@ -2313,6 +2369,14 @@ function Base.setproperty!(x::Ptr{ImGuiStyleMod}, f::Symbol, v) unsafe_store!(getproperty(x, f), v) end +function Base.propertynames(x::ImGuiStyleMod, private::Bool = false) + (:VarIdx, :BackupInt, :BackupFloat, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiStyleMod Size::Cint Capacity::Cint @@ -2799,6 +2863,14 @@ function Base.setproperty!(x::Ptr{ImGuiTableColumn}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiTableColumn, private::Bool = false) + (:Flags, :WidthGiven, :MinX, :MaxX, :WidthRequest, :WidthAuto, :WidthMax, :StretchWeight, :InitStretchWeightOrWidth, :ClipRect, :UserID, :WorkMinX, :WorkMaxX, :ItemWidth, :ContentMaxXFrozen, :ContentMaxXUnfrozen, :ContentMaxXHeadersUsed, :ContentMaxXHeadersIdeal, :NameOffset, :DisplayOrder, :IndexWithinEnabledSet, :PrevEnabledColumn, :NextEnabledColumn, :SortOrder, :DrawChannelCurrent, :DrawChannelFrozen, :DrawChannelUnfrozen, :IsEnabled, :IsUserEnabled, :IsUserEnabledNextFrame, :IsVisibleX, :IsVisibleY, :IsRequestOutput, :IsSkipItems, :IsPreserveWidthAuto, :NavLayerCurrent, :AutoFitQueue, :CannotSkipItemsQueue, :SortDirection, :SortDirectionsAvailCount, :SortDirectionsAvailMask, :SortDirectionsAvailList, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImSpan_ImGuiTableColumn Data::Ptr{ImGuiTableColumn} DataEnd::Ptr{ImGuiTableColumn} @@ -3027,6 +3099,14 @@ function Base.setproperty!(x::Ptr{ImGuiTable}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiTable, private::Bool = false) + (:ID, :Flags, :RawData, :TempData, :Columns, :DisplayOrderToIndex, :RowCellData, :EnabledMaskByDisplayOrder, :EnabledMaskByIndex, :VisibleMaskByIndex, :SettingsLoadedFlags, :SettingsOffset, :LastFrameActive, :ColumnsCount, :CurrentRow, :CurrentColumn, :InstanceCurrent, :InstanceInteracted, :RowPosY1, :RowPosY2, :RowMinHeight, :RowCellPaddingY, :RowTextBaseline, :RowIndentOffsetX, :RowFlags, :LastRowFlags, :RowBgColorCounter, :RowBgColor, :BorderColorStrong, :BorderColorLight, :BorderX1, :BorderX2, :HostIndentX, :MinColumnWidth, :OuterPaddingX, :CellPaddingX, :CellSpacingX1, :CellSpacingX2, :InnerWidth, :ColumnsGivenWidth, :ColumnsAutoFitWidth, :ColumnsStretchSumWeights, :ResizedColumnNextWidth, :ResizeLockMinContentsX2, :RefScale, :AngledHeadersHeight, :AngledHeadersSlope, :OuterRect, :InnerRect, :WorkRect, :InnerClipRect, :BgClipRect, :Bg0ClipRectForDrawCmd, :Bg2ClipRectForDrawCmd, :HostClipRect, :HostBackupInnerClipRect, :OuterWindow, :InnerWindow, :ColumnsNames, :DrawSplitter, :InstanceDataFirst, :InstanceDataExtra, :SortSpecsSingle, :SortSpecsMulti, :SortSpecs, :SortSpecsCount, :ColumnsEnabledCount, :ColumnsEnabledFixedCount, :DeclColumnsCount, :AngledHeadersCount, :HoveredColumnBody, :HoveredColumnBorder, :HighlightColumnHeader, :AutoFitSingleColumn, :ResizedColumn, :LastResizedColumn, :HeldHeaderColumn, :ReorderColumn, :ReorderColumnDir, :LeftMostEnabledColumn, :RightMostEnabledColumn, :LeftMostStretchedColumn, :RightMostStretchedColumn, :ContextPopupColumn, :FreezeRowsRequest, :FreezeRowsCount, :FreezeColumnsRequest, :FreezeColumnsCount, :RowCellDataCurrent, :DummyDrawChannel, :Bg2DrawChannelCurrent, :Bg2DrawChannelUnfrozen, :NavLayer, :IsLayoutLocked, :IsInsideRow, :IsInitializing, :IsSortSpecsDirty, :IsUsingHeaders, :IsContextPopupOpen, :DisableDefaultContextMenu, :IsSettingsRequestLoad, :IsSettingsDirty, :IsDefaultDisplayOrder, :IsResetAllRequest, :IsResetDisplayOrderRequest, :IsUnfrozenRows, :IsDefaultSizingPolicy, :IsActiveIdAliveBeforeTable, :IsActiveIdInTable, :HasScrollbarYCurr, :HasScrollbarYPrev, :MemoryCompacted, :HostSkipItems, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiTableTempData Size::Cint Capacity::Cint @@ -3150,6 +3230,14 @@ function Base.setproperty!(x::Ptr{ImGuiBoxSelectState}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiBoxSelectState, private::Bool = false) + (:ID, :IsActive, :IsStarting, :IsStartedFromVoid, :IsStartedSetNavIdOnce, :RequestClear, :KeyMods, :StartPosRel, :EndPosRel, :ScrollAccum, :Window, :UnclipMode, :UnclipRect, :BoxSelectRectPrev, :BoxSelectRectCurr, if private + fieldnames(typeof(x)) + else + () + end...) +end + @cenum ImGuiSelectionRequestType::UInt32 begin ImGuiSelectionRequestType_None = 0 ImGuiSelectionRequestType_SetAll = 1 @@ -3481,6 +3569,14 @@ function Base.setproperty!(x::Ptr{ImGuiStackLevelInfo}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiStackLevelInfo, private::Bool = false) + (:ID, :QueryFrameCount, :QuerySuccess, :DataType, :Desc, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiStackLevelInfo Size::Cint Capacity::Cint @@ -3879,6 +3975,14 @@ function Base.setproperty!(x::Ptr{ImGuiContext}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiContext, private::Bool = false) + (:Initialized, :IO, :PlatformIO, :Style, :ConfigFlagsCurrFrame, :ConfigFlagsLastFrame, :FontAtlases, :Font, :FontBaked, :FontSize, :FontSizeBase, :FontBakedScale, :FontRasterizerDensity, :CurrentDpiScale, :DrawListSharedData, :Time, :FrameCount, :FrameCountEnded, :FrameCountPlatformEnded, :FrameCountRendered, :WithinEndChildID, :WithinFrameScope, :WithinFrameScopeWithImplicitWindow, :GcCompactAll, :TestEngineHookItems, :TestEngine, :ContextName, :InputEventsQueue, :InputEventsTrail, :InputEventsNextMouseSource, :InputEventsNextEventId, :Windows, :WindowsFocusOrder, :WindowsTempSortBuffer, :CurrentWindowStack, :WindowsById, :WindowsActiveCount, :WindowsBorderHoverPadding, :DebugBreakInWindow, :CurrentWindow, :HoveredWindow, :HoveredWindowUnderMovingWindow, :HoveredWindowBeforeClear, :MovingWindow, :WheelingWindow, :WheelingWindowRefMousePos, :WheelingWindowStartFrame, :WheelingWindowScrolledFrame, :WheelingWindowReleaseTimer, :WheelingWindowWheelRemainder, :WheelingAxisAvg, :DebugDrawIdConflictsId, :DebugHookIdInfo, :HoveredId, :HoveredIdPreviousFrame, :HoveredIdPreviousFrameItemCount, :HoveredIdTimer, :HoveredIdNotActiveTimer, :HoveredIdAllowOverlap, :HoveredIdIsDisabled, :ItemUnclipByLog, :ActiveId, :ActiveIdIsAlive, :ActiveIdTimer, :ActiveIdIsJustActivated, :ActiveIdAllowOverlap, :ActiveIdNoClearOnFocusLoss, :ActiveIdHasBeenPressedBefore, :ActiveIdHasBeenEditedBefore, :ActiveIdHasBeenEditedThisFrame, :ActiveIdFromShortcut, :ActiveIdMouseButton, :ActiveIdClickOffset, :ActiveIdWindow, :ActiveIdSource, :ActiveIdPreviousFrame, :DeactivatedItemData, :ActiveIdValueOnActivation, :LastActiveId, :LastActiveIdTimer, :LastKeyModsChangeTime, :LastKeyModsChangeFromNoneTime, :LastKeyboardKeyPressTime, :KeysMayBeCharInput, :KeysOwnerData, :KeysRoutingTable, :ActiveIdUsingNavDirMask, :ActiveIdUsingAllKeyboardKeys, :DebugBreakInShortcutRouting, :CurrentFocusScopeId, :CurrentItemFlags, :DebugLocateId, :NextItemData, :LastItemData, :NextWindowData, :DebugShowGroupRects, :DebugFlashStyleColorIdx, :ColorStack, :StyleVarStack, :FontStack, :FocusScopeStack, :ItemFlagsStack, :GroupStack, :OpenPopupStack, :BeginPopupStack, :TreeNodeStack, :Viewports, :CurrentViewport, :MouseViewport, :MouseLastHoveredViewport, :PlatformLastFocusedViewportId, :FallbackMonitor, :PlatformMonitorsFullWorkRect, :ViewportCreatedCount, :PlatformWindowsCreatedCount, :ViewportFocusedStampCount, :NavCursorVisible, :NavHighlightItemUnderNav, :NavMousePosDirty, :NavIdIsAlive, :NavId, :NavWindow, :NavFocusScopeId, :NavLayer, :NavActivateId, :NavActivateDownId, :NavActivatePressedId, :NavActivateFlags, :NavFocusRoute, :NavHighlightActivatedId, :NavHighlightActivatedTimer, :NavNextActivateId, :NavNextActivateFlags, :NavInputSource, :NavLastValidSelectionUserData, :NavCursorHideFrames, :NavAnyRequest, :NavInitRequest, :NavInitRequestFromMove, :NavInitResult, :NavMoveSubmitted, :NavMoveScoringItems, :NavMoveForwardToNextFrame, :NavMoveFlags, :NavMoveScrollFlags, :NavMoveKeyMods, :NavMoveDir, :NavMoveDirForDebug, :NavMoveClipDir, :NavScoringRect, :NavScoringNoClipRect, :NavScoringDebugCount, :NavTabbingDir, :NavTabbingCounter, :NavMoveResultLocal, :NavMoveResultLocalVisible, :NavMoveResultOther, :NavTabbingResultFirst, :NavJustMovedFromFocusScopeId, :NavJustMovedToId, :NavJustMovedToFocusScopeId, :NavJustMovedToKeyMods, :NavJustMovedToIsTabbing, :NavJustMovedToHasSelectionData, :ConfigNavWindowingWithGamepad, :ConfigNavWindowingKeyNext, :ConfigNavWindowingKeyPrev, :NavWindowingTarget, :NavWindowingTargetAnim, :NavWindowingListWindow, :NavWindowingTimer, :NavWindowingHighlightAlpha, :NavWindowingInputSource, :NavWindowingToggleLayer, :NavWindowingToggleKey, :NavWindowingAccumDeltaPos, :NavWindowingAccumDeltaSize, :DimBgRatio, :DragDropActive, :DragDropWithinSource, :DragDropWithinTarget, :DragDropSourceFlags, :DragDropSourceFrameCount, :DragDropMouseButton, :DragDropPayload, :DragDropTargetRect, :DragDropTargetClipRect, :DragDropTargetId, :DragDropAcceptFlags, :DragDropAcceptIdCurrRectSurface, :DragDropAcceptIdCurr, :DragDropAcceptIdPrev, :DragDropAcceptFrameCount, :DragDropHoldJustPressedId, :DragDropPayloadBufHeap, :DragDropPayloadBufLocal, :ClipperTempDataStacked, :ClipperTempData, :CurrentTable, :DebugBreakInTable, :TablesTempDataStacked, :TablesTempData, :Tables, :TablesLastTimeActive, :DrawChannelsTempMergeBuffer, :CurrentTabBar, :TabBars, :CurrentTabBarStack, :ShrinkWidthBuffer, :BoxSelectState, :CurrentMultiSelect, :MultiSelectTempDataStacked, :MultiSelectTempData, :MultiSelectStorage, :HoverItemDelayId, :HoverItemDelayIdPreviousFrame, :HoverItemDelayTimer, :HoverItemDelayClearTimer, :HoverItemUnlockedStationaryId, :HoverWindowUnlockedStationaryId, :MouseCursor, :MouseStationaryTimer, :MouseLastValidPos, :InputTextState, :InputTextDeactivatedState, :InputTextPasswordFontBackupBaked, :InputTextPasswordFontBackupFlags, :TempInputId, :DataTypeZeroValue, :BeginMenuDepth, :BeginComboDepth, :ColorEditOptions, :ColorEditCurrentID, :ColorEditSavedID, :ColorEditSavedHue, :ColorEditSavedSat, :ColorEditSavedColor, :ColorPickerRef, :ComboPreviewData, :WindowResizeBorderExpectedRect, :WindowResizeRelativeMode, :ScrollbarSeekMode, :ScrollbarClickDeltaToGrabCenter, :SliderGrabClickOffset, :SliderCurrentAccum, :SliderCurrentAccumDirty, :DragCurrentAccumDirty, :DragCurrentAccum, :DragSpeedDefaultRatio, :DisabledAlphaBackup, :DisabledStackSize, :TooltipOverrideCount, :TooltipPreviousWindow, :ClipboardHandlerData, :MenusIdSubmittedThisFrame, :TypingSelectState, :PlatformImeData, :PlatformImeDataPrev, :UserTextures, :DockContext, :DockNodeWindowMenuHandler, :SettingsLoaded, :SettingsDirtyTimer, :SettingsIniData, :SettingsHandlers, :SettingsWindows, :SettingsTables, :Hooks, :HookIdNext, :LocalizationTable, :LogEnabled, :LogFlags, :LogWindow, :LogFile, :LogBuffer, :LogNextPrefix, :LogNextSuffix, :LogLinePosY, :LogLineFirstItem, :LogDepthRef, :LogDepthToExpand, :LogDepthToExpandDefault, :ErrorCallback, :ErrorCallbackUserData, :ErrorTooltipLockedPos, :ErrorFirst, :ErrorCountCurrentFrame, :StackSizesInNewFrame, :StackSizesInBeginForCurrentWindow, :DebugDrawIdConflictsCount, :DebugLogFlags, :DebugLogBuf, :DebugLogIndex, :DebugLogSkippedErrors, :DebugLogAutoDisableFlags, :DebugLogAutoDisableFrames, :DebugLocateFrames, :DebugBreakInLocateId, :DebugBreakKeyChord, :DebugBeginReturnValueCullDepth, :DebugItemPickerActive, :DebugItemPickerMouseButton, :DebugItemPickerBreakId, :DebugFlashStyleColorTime, :DebugFlashStyleColorBackup, :DebugMetricsConfig, :DebugIDStackTool, :DebugAllocInfo, :DebugHoveredDockNode, :FramerateSecPerFrame, :FramerateSecPerFrameIdx, :FramerateSecPerFrameCount, :FramerateSecPerFrameAccum, :WantCaptureMouseNextFrame, :WantCaptureKeyboardNextFrame, :WantTextInputNextFrame, :TempBuffer, :TempKeychordName, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImGuiInputTextCallbackData Ctx::Ptr{ImGuiContext} EventFlag::ImGuiInputTextFlags @@ -4051,6 +4155,14 @@ function Base.setproperty!(x::Ptr{ImGuiStyleVarInfo}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiStyleVarInfo, private::Bool = false) + (:Count, :DataType, :Offset, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImGuiTableSettings ID::ImGuiID SaveFlags::ImGuiTableFlags @@ -5202,6 +5314,14 @@ function Base.setproperty!(x::Ptr{ImGuiTableColumnSettings}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiTableColumnSettings, private::Bool = false) + (:WidthOrWeight, :UserID, :Index, :DisplayOrder, :SortOrder, :SortDirection, :IsEnabled, :IsStretch, if private + fieldnames(typeof(x)) + else + () + end...) +end + function ImVec2_ImVec2_Nil() ccall((:ImVec2_ImVec2_Nil, libcimgui), Ptr{ImVec2}, ()) end diff --git a/lib/i686-linux-musl.jl b/lib/i686-linux-musl.jl index 1701e74..ccc87e4 100644 --- a/lib/i686-linux-musl.jl +++ b/lib/i686-linux-musl.jl @@ -1,4 +1,4 @@ -using CEnum +using CEnum: CEnum, @cenum to_c_type(t::Type) = t to_c_type_pairs(va_list) = map(enumerate(to_c_type.(va_list))) do (ind, type) @@ -472,6 +472,14 @@ function Base.setproperty!(x::Ptr{ImFontGlyph}, f::Symbol, v) end end +function Base.propertynames(x::ImFontGlyph, private::Bool = false) + (:Colored, :Visible, :SourceIdx, :Codepoint, :AdvanceX, :X0, :Y0, :X1, :Y1, :U0, :V0, :U1, :V1, :PackId, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImFontGlyph Size::Cint Capacity::Cint @@ -545,6 +553,14 @@ function Base.setproperty!(x::Ptr{ImFontBaked}, f::Symbol, v) end end +function Base.propertynames(x::ImFontBaked, private::Bool = false) + (:IndexAdvanceX, :FallbackAdvanceX, :Size, :RasterizerDensity, :IndexLookup, :Glyphs, :FallbackGlyphIndex, :Ascent, :Descent, :MetricsTotalSurface, :WantDestroy, :LockLoadingFallback, :LastUsedFrame, :BakedId, :ContainerFont, :FontLoaderDatas, if private + fieldnames(typeof(x)) + else + () + end...) +end + const ImFontFlags = Cint const ImS8 = Int8 @@ -661,6 +677,14 @@ function Base.setproperty!(x::Ptr{ImGuiStoragePair}, f::Symbol, v) unsafe_store!(getproperty(x, f), v) end +function Base.propertynames(x::ImGuiStoragePair, private::Bool = false) + (:key, :val_i, :val_f, :val_p, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiStoragePair Size::Cint Capacity::Cint @@ -782,6 +806,14 @@ function Base.setproperty!(x::Ptr{ImFontAtlasRectEntry}, f::Symbol, v) end end +function Base.propertynames(x::ImFontAtlasRectEntry, private::Bool = false) + (:TargetIndex, :Generation, :IsUsed, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImFontAtlasRectEntry Size::Cint Capacity::Cint @@ -1556,6 +1588,14 @@ function Base.setproperty!(x::Ptr{ImGuiInputEvent}, f::Symbol, v) unsafe_store!(getproperty(x, f), v) end +function Base.propertynames(x::ImGuiInputEvent, private::Bool = false) + (:Type, :Source, :EventId, :MousePos, :MouseWheel, :MouseButton, :MouseViewport, :Key, :Text, :AppFocused, :AddedByTestEngine, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiInputEvent Size::Cint Capacity::Cint @@ -1955,6 +1995,14 @@ function Base.setproperty!(x::Ptr{ImGuiDockNode}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiDockNode, private::Bool = false) + (:ID, :SharedFlags, :LocalFlags, :LocalFlagsInWindows, :MergedFlags, :State, :ParentNode, :ChildNodes, :Windows, :TabBar, :Pos, :Size, :SizeRef, :SplitAxis, :WindowClass, :LastBgColor, :HostWindow, :VisibleWindow, :CentralNode, :OnlyNodeWithWindows, :CountNodeWithWindows, :LastFrameAlive, :LastFrameActive, :LastFrameFocused, :LastFocusedNodeId, :SelectedTabId, :WantCloseTabId, :RefViewportId, :AuthorityForPos, :AuthorityForSize, :AuthorityForViewport, :IsVisible, :IsFocused, :IsBgDrawnThisFrame, :HasCloseButton, :HasWindowMenuButton, :HasCentralNodeChild, :WantCloseAll, :WantLockSizeOnce, :WantMouseMove, :WantHiddenTabBarUpdate, :WantHiddenTabBarToggle, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImGuiWindow data::NTuple{1056, UInt8} end @@ -2131,6 +2179,14 @@ function Base.setproperty!(x::Ptr{ImGuiWindow}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiWindow, private::Bool = false) + (:Ctx, :Name, :ID, :Flags, :FlagsPreviousFrame, :ChildFlags, :WindowClass, :Viewport, :ViewportId, :ViewportPos, :ViewportAllowPlatformMonitorExtend, :Pos, :Size, :SizeFull, :ContentSize, :ContentSizeIdeal, :ContentSizeExplicit, :WindowPadding, :WindowRounding, :WindowBorderSize, :TitleBarHeight, :MenuBarHeight, :DecoOuterSizeX1, :DecoOuterSizeY1, :DecoOuterSizeX2, :DecoOuterSizeY2, :DecoInnerSizeX1, :DecoInnerSizeY1, :NameBufLen, :MoveId, :TabId, :ChildId, :PopupId, :Scroll, :ScrollMax, :ScrollTarget, :ScrollTargetCenterRatio, :ScrollTargetEdgeSnapDist, :ScrollbarSizes, :ScrollbarX, :ScrollbarY, :ScrollbarXStabilizeEnabled, :ScrollbarXStabilizeToggledHistory, :ViewportOwned, :Active, :WasActive, :WriteAccessed, :Collapsed, :WantCollapseToggle, :SkipItems, :SkipRefresh, :Appearing, :Hidden, :IsFallbackWindow, :IsExplicitChild, :HasCloseButton, :ResizeBorderHovered, :ResizeBorderHeld, :BeginCount, :BeginCountPreviousFrame, :BeginOrderWithinParent, :BeginOrderWithinContext, :FocusOrder, :AutoFitFramesX, :AutoFitFramesY, :AutoFitOnlyGrows, :AutoPosLastDirection, :HiddenFramesCanSkipItems, :HiddenFramesCannotSkipItems, :HiddenFramesForRenderOnly, :DisableInputsFrames, :SetWindowPosAllowFlags, :SetWindowSizeAllowFlags, :SetWindowCollapsedAllowFlags, :SetWindowDockAllowFlags, :SetWindowPosVal, :SetWindowPosPivot, :IDStack, :DC, :OuterRectClipped, :InnerRect, :InnerClipRect, :WorkRect, :ParentWorkRect, :ClipRect, :ContentRegionRect, :HitTestHoleSize, :HitTestHoleOffset, :LastFrameActive, :LastFrameJustFocused, :LastTimeActive, :ItemWidthDefault, :StateStorage, :ColumnsStorage, :FontWindowScale, :FontWindowScaleParents, :FontRefSize, :SettingsOffset, :DrawList, :DrawListInst, :ParentWindow, :ParentWindowInBeginStack, :RootWindow, :RootWindowPopupTree, :RootWindowDockTree, :RootWindowForTitleBarHighlight, :RootWindowForNav, :ParentWindowForFocusRoute, :NavLastChildNavWindow, :NavLastIds, :NavRectRel, :NavPreferredScoringPosRel, :NavRootFocusScopeId, :MemoryDrawListIdxCapacity, :MemoryDrawListVtxCapacity, :MemoryCompacted, :DockIsActive, :DockNodeIsVisible, :DockTabIsVisible, :DockTabWantClose, :DockOrder, :DockStyle, :DockNode, :DockNodeAsHost, :DockId, if private + fieldnames(typeof(x)) + else + () + end...) +end + const ImGuiItemFlags = Cint struct ImGuiLastItemData @@ -2311,6 +2367,14 @@ function Base.setproperty!(x::Ptr{ImGuiStyleMod}, f::Symbol, v) unsafe_store!(getproperty(x, f), v) end +function Base.propertynames(x::ImGuiStyleMod, private::Bool = false) + (:VarIdx, :BackupInt, :BackupFloat, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiStyleMod Size::Cint Capacity::Cint @@ -2797,6 +2861,14 @@ function Base.setproperty!(x::Ptr{ImGuiTableColumn}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiTableColumn, private::Bool = false) + (:Flags, :WidthGiven, :MinX, :MaxX, :WidthRequest, :WidthAuto, :WidthMax, :StretchWeight, :InitStretchWeightOrWidth, :ClipRect, :UserID, :WorkMinX, :WorkMaxX, :ItemWidth, :ContentMaxXFrozen, :ContentMaxXUnfrozen, :ContentMaxXHeadersUsed, :ContentMaxXHeadersIdeal, :NameOffset, :DisplayOrder, :IndexWithinEnabledSet, :PrevEnabledColumn, :NextEnabledColumn, :SortOrder, :DrawChannelCurrent, :DrawChannelFrozen, :DrawChannelUnfrozen, :IsEnabled, :IsUserEnabled, :IsUserEnabledNextFrame, :IsVisibleX, :IsVisibleY, :IsRequestOutput, :IsSkipItems, :IsPreserveWidthAuto, :NavLayerCurrent, :AutoFitQueue, :CannotSkipItemsQueue, :SortDirection, :SortDirectionsAvailCount, :SortDirectionsAvailMask, :SortDirectionsAvailList, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImSpan_ImGuiTableColumn Data::Ptr{ImGuiTableColumn} DataEnd::Ptr{ImGuiTableColumn} @@ -3025,6 +3097,14 @@ function Base.setproperty!(x::Ptr{ImGuiTable}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiTable, private::Bool = false) + (:ID, :Flags, :RawData, :TempData, :Columns, :DisplayOrderToIndex, :RowCellData, :EnabledMaskByDisplayOrder, :EnabledMaskByIndex, :VisibleMaskByIndex, :SettingsLoadedFlags, :SettingsOffset, :LastFrameActive, :ColumnsCount, :CurrentRow, :CurrentColumn, :InstanceCurrent, :InstanceInteracted, :RowPosY1, :RowPosY2, :RowMinHeight, :RowCellPaddingY, :RowTextBaseline, :RowIndentOffsetX, :RowFlags, :LastRowFlags, :RowBgColorCounter, :RowBgColor, :BorderColorStrong, :BorderColorLight, :BorderX1, :BorderX2, :HostIndentX, :MinColumnWidth, :OuterPaddingX, :CellPaddingX, :CellSpacingX1, :CellSpacingX2, :InnerWidth, :ColumnsGivenWidth, :ColumnsAutoFitWidth, :ColumnsStretchSumWeights, :ResizedColumnNextWidth, :ResizeLockMinContentsX2, :RefScale, :AngledHeadersHeight, :AngledHeadersSlope, :OuterRect, :InnerRect, :WorkRect, :InnerClipRect, :BgClipRect, :Bg0ClipRectForDrawCmd, :Bg2ClipRectForDrawCmd, :HostClipRect, :HostBackupInnerClipRect, :OuterWindow, :InnerWindow, :ColumnsNames, :DrawSplitter, :InstanceDataFirst, :InstanceDataExtra, :SortSpecsSingle, :SortSpecsMulti, :SortSpecs, :SortSpecsCount, :ColumnsEnabledCount, :ColumnsEnabledFixedCount, :DeclColumnsCount, :AngledHeadersCount, :HoveredColumnBody, :HoveredColumnBorder, :HighlightColumnHeader, :AutoFitSingleColumn, :ResizedColumn, :LastResizedColumn, :HeldHeaderColumn, :ReorderColumn, :ReorderColumnDir, :LeftMostEnabledColumn, :RightMostEnabledColumn, :LeftMostStretchedColumn, :RightMostStretchedColumn, :ContextPopupColumn, :FreezeRowsRequest, :FreezeRowsCount, :FreezeColumnsRequest, :FreezeColumnsCount, :RowCellDataCurrent, :DummyDrawChannel, :Bg2DrawChannelCurrent, :Bg2DrawChannelUnfrozen, :NavLayer, :IsLayoutLocked, :IsInsideRow, :IsInitializing, :IsSortSpecsDirty, :IsUsingHeaders, :IsContextPopupOpen, :DisableDefaultContextMenu, :IsSettingsRequestLoad, :IsSettingsDirty, :IsDefaultDisplayOrder, :IsResetAllRequest, :IsResetDisplayOrderRequest, :IsUnfrozenRows, :IsDefaultSizingPolicy, :IsActiveIdAliveBeforeTable, :IsActiveIdInTable, :HasScrollbarYCurr, :HasScrollbarYPrev, :MemoryCompacted, :HostSkipItems, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiTableTempData Size::Cint Capacity::Cint @@ -3148,6 +3228,14 @@ function Base.setproperty!(x::Ptr{ImGuiBoxSelectState}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiBoxSelectState, private::Bool = false) + (:ID, :IsActive, :IsStarting, :IsStartedFromVoid, :IsStartedSetNavIdOnce, :RequestClear, :KeyMods, :StartPosRel, :EndPosRel, :ScrollAccum, :Window, :UnclipMode, :UnclipRect, :BoxSelectRectPrev, :BoxSelectRectCurr, if private + fieldnames(typeof(x)) + else + () + end...) +end + @cenum ImGuiSelectionRequestType::UInt32 begin ImGuiSelectionRequestType_None = 0 ImGuiSelectionRequestType_SetAll = 1 @@ -3479,6 +3567,14 @@ function Base.setproperty!(x::Ptr{ImGuiStackLevelInfo}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiStackLevelInfo, private::Bool = false) + (:ID, :QueryFrameCount, :QuerySuccess, :DataType, :Desc, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiStackLevelInfo Size::Cint Capacity::Cint @@ -3877,6 +3973,14 @@ function Base.setproperty!(x::Ptr{ImGuiContext}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiContext, private::Bool = false) + (:Initialized, :IO, :PlatformIO, :Style, :ConfigFlagsCurrFrame, :ConfigFlagsLastFrame, :FontAtlases, :Font, :FontBaked, :FontSize, :FontSizeBase, :FontBakedScale, :FontRasterizerDensity, :CurrentDpiScale, :DrawListSharedData, :Time, :FrameCount, :FrameCountEnded, :FrameCountPlatformEnded, :FrameCountRendered, :WithinEndChildID, :WithinFrameScope, :WithinFrameScopeWithImplicitWindow, :GcCompactAll, :TestEngineHookItems, :TestEngine, :ContextName, :InputEventsQueue, :InputEventsTrail, :InputEventsNextMouseSource, :InputEventsNextEventId, :Windows, :WindowsFocusOrder, :WindowsTempSortBuffer, :CurrentWindowStack, :WindowsById, :WindowsActiveCount, :WindowsBorderHoverPadding, :DebugBreakInWindow, :CurrentWindow, :HoveredWindow, :HoveredWindowUnderMovingWindow, :HoveredWindowBeforeClear, :MovingWindow, :WheelingWindow, :WheelingWindowRefMousePos, :WheelingWindowStartFrame, :WheelingWindowScrolledFrame, :WheelingWindowReleaseTimer, :WheelingWindowWheelRemainder, :WheelingAxisAvg, :DebugDrawIdConflictsId, :DebugHookIdInfo, :HoveredId, :HoveredIdPreviousFrame, :HoveredIdPreviousFrameItemCount, :HoveredIdTimer, :HoveredIdNotActiveTimer, :HoveredIdAllowOverlap, :HoveredIdIsDisabled, :ItemUnclipByLog, :ActiveId, :ActiveIdIsAlive, :ActiveIdTimer, :ActiveIdIsJustActivated, :ActiveIdAllowOverlap, :ActiveIdNoClearOnFocusLoss, :ActiveIdHasBeenPressedBefore, :ActiveIdHasBeenEditedBefore, :ActiveIdHasBeenEditedThisFrame, :ActiveIdFromShortcut, :ActiveIdMouseButton, :ActiveIdClickOffset, :ActiveIdWindow, :ActiveIdSource, :ActiveIdPreviousFrame, :DeactivatedItemData, :ActiveIdValueOnActivation, :LastActiveId, :LastActiveIdTimer, :LastKeyModsChangeTime, :LastKeyModsChangeFromNoneTime, :LastKeyboardKeyPressTime, :KeysMayBeCharInput, :KeysOwnerData, :KeysRoutingTable, :ActiveIdUsingNavDirMask, :ActiveIdUsingAllKeyboardKeys, :DebugBreakInShortcutRouting, :CurrentFocusScopeId, :CurrentItemFlags, :DebugLocateId, :NextItemData, :LastItemData, :NextWindowData, :DebugShowGroupRects, :DebugFlashStyleColorIdx, :ColorStack, :StyleVarStack, :FontStack, :FocusScopeStack, :ItemFlagsStack, :GroupStack, :OpenPopupStack, :BeginPopupStack, :TreeNodeStack, :Viewports, :CurrentViewport, :MouseViewport, :MouseLastHoveredViewport, :PlatformLastFocusedViewportId, :FallbackMonitor, :PlatformMonitorsFullWorkRect, :ViewportCreatedCount, :PlatformWindowsCreatedCount, :ViewportFocusedStampCount, :NavCursorVisible, :NavHighlightItemUnderNav, :NavMousePosDirty, :NavIdIsAlive, :NavId, :NavWindow, :NavFocusScopeId, :NavLayer, :NavActivateId, :NavActivateDownId, :NavActivatePressedId, :NavActivateFlags, :NavFocusRoute, :NavHighlightActivatedId, :NavHighlightActivatedTimer, :NavNextActivateId, :NavNextActivateFlags, :NavInputSource, :NavLastValidSelectionUserData, :NavCursorHideFrames, :NavAnyRequest, :NavInitRequest, :NavInitRequestFromMove, :NavInitResult, :NavMoveSubmitted, :NavMoveScoringItems, :NavMoveForwardToNextFrame, :NavMoveFlags, :NavMoveScrollFlags, :NavMoveKeyMods, :NavMoveDir, :NavMoveDirForDebug, :NavMoveClipDir, :NavScoringRect, :NavScoringNoClipRect, :NavScoringDebugCount, :NavTabbingDir, :NavTabbingCounter, :NavMoveResultLocal, :NavMoveResultLocalVisible, :NavMoveResultOther, :NavTabbingResultFirst, :NavJustMovedFromFocusScopeId, :NavJustMovedToId, :NavJustMovedToFocusScopeId, :NavJustMovedToKeyMods, :NavJustMovedToIsTabbing, :NavJustMovedToHasSelectionData, :ConfigNavWindowingWithGamepad, :ConfigNavWindowingKeyNext, :ConfigNavWindowingKeyPrev, :NavWindowingTarget, :NavWindowingTargetAnim, :NavWindowingListWindow, :NavWindowingTimer, :NavWindowingHighlightAlpha, :NavWindowingInputSource, :NavWindowingToggleLayer, :NavWindowingToggleKey, :NavWindowingAccumDeltaPos, :NavWindowingAccumDeltaSize, :DimBgRatio, :DragDropActive, :DragDropWithinSource, :DragDropWithinTarget, :DragDropSourceFlags, :DragDropSourceFrameCount, :DragDropMouseButton, :DragDropPayload, :DragDropTargetRect, :DragDropTargetClipRect, :DragDropTargetId, :DragDropAcceptFlags, :DragDropAcceptIdCurrRectSurface, :DragDropAcceptIdCurr, :DragDropAcceptIdPrev, :DragDropAcceptFrameCount, :DragDropHoldJustPressedId, :DragDropPayloadBufHeap, :DragDropPayloadBufLocal, :ClipperTempDataStacked, :ClipperTempData, :CurrentTable, :DebugBreakInTable, :TablesTempDataStacked, :TablesTempData, :Tables, :TablesLastTimeActive, :DrawChannelsTempMergeBuffer, :CurrentTabBar, :TabBars, :CurrentTabBarStack, :ShrinkWidthBuffer, :BoxSelectState, :CurrentMultiSelect, :MultiSelectTempDataStacked, :MultiSelectTempData, :MultiSelectStorage, :HoverItemDelayId, :HoverItemDelayIdPreviousFrame, :HoverItemDelayTimer, :HoverItemDelayClearTimer, :HoverItemUnlockedStationaryId, :HoverWindowUnlockedStationaryId, :MouseCursor, :MouseStationaryTimer, :MouseLastValidPos, :InputTextState, :InputTextDeactivatedState, :InputTextPasswordFontBackupBaked, :InputTextPasswordFontBackupFlags, :TempInputId, :DataTypeZeroValue, :BeginMenuDepth, :BeginComboDepth, :ColorEditOptions, :ColorEditCurrentID, :ColorEditSavedID, :ColorEditSavedHue, :ColorEditSavedSat, :ColorEditSavedColor, :ColorPickerRef, :ComboPreviewData, :WindowResizeBorderExpectedRect, :WindowResizeRelativeMode, :ScrollbarSeekMode, :ScrollbarClickDeltaToGrabCenter, :SliderGrabClickOffset, :SliderCurrentAccum, :SliderCurrentAccumDirty, :DragCurrentAccumDirty, :DragCurrentAccum, :DragSpeedDefaultRatio, :DisabledAlphaBackup, :DisabledStackSize, :TooltipOverrideCount, :TooltipPreviousWindow, :ClipboardHandlerData, :MenusIdSubmittedThisFrame, :TypingSelectState, :PlatformImeData, :PlatformImeDataPrev, :UserTextures, :DockContext, :DockNodeWindowMenuHandler, :SettingsLoaded, :SettingsDirtyTimer, :SettingsIniData, :SettingsHandlers, :SettingsWindows, :SettingsTables, :Hooks, :HookIdNext, :LocalizationTable, :LogEnabled, :LogFlags, :LogWindow, :LogFile, :LogBuffer, :LogNextPrefix, :LogNextSuffix, :LogLinePosY, :LogLineFirstItem, :LogDepthRef, :LogDepthToExpand, :LogDepthToExpandDefault, :ErrorCallback, :ErrorCallbackUserData, :ErrorTooltipLockedPos, :ErrorFirst, :ErrorCountCurrentFrame, :StackSizesInNewFrame, :StackSizesInBeginForCurrentWindow, :DebugDrawIdConflictsCount, :DebugLogFlags, :DebugLogBuf, :DebugLogIndex, :DebugLogSkippedErrors, :DebugLogAutoDisableFlags, :DebugLogAutoDisableFrames, :DebugLocateFrames, :DebugBreakInLocateId, :DebugBreakKeyChord, :DebugBeginReturnValueCullDepth, :DebugItemPickerActive, :DebugItemPickerMouseButton, :DebugItemPickerBreakId, :DebugFlashStyleColorTime, :DebugFlashStyleColorBackup, :DebugMetricsConfig, :DebugIDStackTool, :DebugAllocInfo, :DebugHoveredDockNode, :FramerateSecPerFrame, :FramerateSecPerFrameIdx, :FramerateSecPerFrameCount, :FramerateSecPerFrameAccum, :WantCaptureMouseNextFrame, :WantCaptureKeyboardNextFrame, :WantTextInputNextFrame, :TempBuffer, :TempKeychordName, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImGuiInputTextCallbackData Ctx::Ptr{ImGuiContext} EventFlag::ImGuiInputTextFlags @@ -4049,6 +4153,14 @@ function Base.setproperty!(x::Ptr{ImGuiStyleVarInfo}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiStyleVarInfo, private::Bool = false) + (:Count, :DataType, :Offset, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImGuiTableSettings ID::ImGuiID SaveFlags::ImGuiTableFlags @@ -5200,6 +5312,14 @@ function Base.setproperty!(x::Ptr{ImGuiTableColumnSettings}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiTableColumnSettings, private::Bool = false) + (:WidthOrWeight, :UserID, :Index, :DisplayOrder, :SortOrder, :SortDirection, :IsEnabled, :IsStretch, if private + fieldnames(typeof(x)) + else + () + end...) +end + function ImVec2_ImVec2_Nil() ccall((:ImVec2_ImVec2_Nil, libcimgui), Ptr{ImVec2}, ()) end diff --git a/lib/i686-w64-mingw32.jl b/lib/i686-w64-mingw32.jl index 74a2a78..f489c63 100644 --- a/lib/i686-w64-mingw32.jl +++ b/lib/i686-w64-mingw32.jl @@ -1,4 +1,4 @@ -using CEnum +using CEnum: CEnum, @cenum to_c_type(t::Type) = t to_c_type_pairs(va_list) = map(enumerate(to_c_type.(va_list))) do (ind, type) @@ -37,6 +37,14 @@ function Base.setproperty!(x::Ptr{tm}, f::Symbol, v) unsafe_store!(getproperty(x, f), v) end +function Base.propertynames(x::tm, private::Bool = false) + (:tm_sec, :tm_min, :tm_hour, :tm_mday, :tm_mon, :tm_year, :tm_wday, :tm_yday, :tm_isdst, if private + fieldnames(typeof(x)) + else + () + end...) +end + # typedef void ( * ImDrawCallback ) ( const ImDrawList * parent_list , const ImDrawCmd * cmd ) const ImDrawCallback = Ptr{Cvoid} @@ -488,6 +496,14 @@ function Base.setproperty!(x::Ptr{ImFontGlyph}, f::Symbol, v) end end +function Base.propertynames(x::ImFontGlyph, private::Bool = false) + (:Colored, :Visible, :SourceIdx, :Codepoint, :AdvanceX, :X0, :Y0, :X1, :Y1, :U0, :V0, :U1, :V1, :PackId, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImFontGlyph Size::Cint Capacity::Cint @@ -561,6 +577,14 @@ function Base.setproperty!(x::Ptr{ImFontBaked}, f::Symbol, v) end end +function Base.propertynames(x::ImFontBaked, private::Bool = false) + (:IndexAdvanceX, :FallbackAdvanceX, :Size, :RasterizerDensity, :IndexLookup, :Glyphs, :FallbackGlyphIndex, :Ascent, :Descent, :MetricsTotalSurface, :WantDestroy, :LockLoadingFallback, :LastUsedFrame, :BakedId, :ContainerFont, :FontLoaderDatas, if private + fieldnames(typeof(x)) + else + () + end...) +end + const ImFontFlags = Cint const ImS8 = Int8 @@ -677,6 +701,14 @@ function Base.setproperty!(x::Ptr{ImGuiStoragePair}, f::Symbol, v) unsafe_store!(getproperty(x, f), v) end +function Base.propertynames(x::ImGuiStoragePair, private::Bool = false) + (:key, :val_i, :val_f, :val_p, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiStoragePair Size::Cint Capacity::Cint @@ -798,6 +830,14 @@ function Base.setproperty!(x::Ptr{ImFontAtlasRectEntry}, f::Symbol, v) end end +function Base.propertynames(x::ImFontAtlasRectEntry, private::Bool = false) + (:TargetIndex, :Generation, :IsUsed, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImFontAtlasRectEntry Size::Cint Capacity::Cint @@ -1572,6 +1612,14 @@ function Base.setproperty!(x::Ptr{ImGuiInputEvent}, f::Symbol, v) unsafe_store!(getproperty(x, f), v) end +function Base.propertynames(x::ImGuiInputEvent, private::Bool = false) + (:Type, :Source, :EventId, :MousePos, :MouseWheel, :MouseButton, :MouseViewport, :Key, :Text, :AppFocused, :AddedByTestEngine, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiInputEvent Size::Cint Capacity::Cint @@ -1971,6 +2019,14 @@ function Base.setproperty!(x::Ptr{ImGuiDockNode}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiDockNode, private::Bool = false) + (:ID, :SharedFlags, :LocalFlags, :LocalFlagsInWindows, :MergedFlags, :State, :ParentNode, :ChildNodes, :Windows, :TabBar, :Pos, :Size, :SizeRef, :SplitAxis, :WindowClass, :LastBgColor, :HostWindow, :VisibleWindow, :CentralNode, :OnlyNodeWithWindows, :CountNodeWithWindows, :LastFrameAlive, :LastFrameActive, :LastFrameFocused, :LastFocusedNodeId, :SelectedTabId, :WantCloseTabId, :RefViewportId, :AuthorityForPos, :AuthorityForSize, :AuthorityForViewport, :IsVisible, :IsFocused, :IsBgDrawnThisFrame, :HasCloseButton, :HasWindowMenuButton, :HasCentralNodeChild, :WantCloseAll, :WantLockSizeOnce, :WantMouseMove, :WantHiddenTabBarUpdate, :WantHiddenTabBarToggle, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImGuiWindow data::NTuple{1072, UInt8} end @@ -2147,6 +2203,14 @@ function Base.setproperty!(x::Ptr{ImGuiWindow}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiWindow, private::Bool = false) + (:Ctx, :Name, :ID, :Flags, :FlagsPreviousFrame, :ChildFlags, :WindowClass, :Viewport, :ViewportId, :ViewportPos, :ViewportAllowPlatformMonitorExtend, :Pos, :Size, :SizeFull, :ContentSize, :ContentSizeIdeal, :ContentSizeExplicit, :WindowPadding, :WindowRounding, :WindowBorderSize, :TitleBarHeight, :MenuBarHeight, :DecoOuterSizeX1, :DecoOuterSizeY1, :DecoOuterSizeX2, :DecoOuterSizeY2, :DecoInnerSizeX1, :DecoInnerSizeY1, :NameBufLen, :MoveId, :TabId, :ChildId, :PopupId, :Scroll, :ScrollMax, :ScrollTarget, :ScrollTargetCenterRatio, :ScrollTargetEdgeSnapDist, :ScrollbarSizes, :ScrollbarX, :ScrollbarY, :ScrollbarXStabilizeEnabled, :ScrollbarXStabilizeToggledHistory, :ViewportOwned, :Active, :WasActive, :WriteAccessed, :Collapsed, :WantCollapseToggle, :SkipItems, :SkipRefresh, :Appearing, :Hidden, :IsFallbackWindow, :IsExplicitChild, :HasCloseButton, :ResizeBorderHovered, :ResizeBorderHeld, :BeginCount, :BeginCountPreviousFrame, :BeginOrderWithinParent, :BeginOrderWithinContext, :FocusOrder, :AutoFitFramesX, :AutoFitFramesY, :AutoFitOnlyGrows, :AutoPosLastDirection, :HiddenFramesCanSkipItems, :HiddenFramesCannotSkipItems, :HiddenFramesForRenderOnly, :DisableInputsFrames, :SetWindowPosAllowFlags, :SetWindowSizeAllowFlags, :SetWindowCollapsedAllowFlags, :SetWindowDockAllowFlags, :SetWindowPosVal, :SetWindowPosPivot, :IDStack, :DC, :OuterRectClipped, :InnerRect, :InnerClipRect, :WorkRect, :ParentWorkRect, :ClipRect, :ContentRegionRect, :HitTestHoleSize, :HitTestHoleOffset, :LastFrameActive, :LastFrameJustFocused, :LastTimeActive, :ItemWidthDefault, :StateStorage, :ColumnsStorage, :FontWindowScale, :FontWindowScaleParents, :FontRefSize, :SettingsOffset, :DrawList, :DrawListInst, :ParentWindow, :ParentWindowInBeginStack, :RootWindow, :RootWindowPopupTree, :RootWindowDockTree, :RootWindowForTitleBarHighlight, :RootWindowForNav, :ParentWindowForFocusRoute, :NavLastChildNavWindow, :NavLastIds, :NavRectRel, :NavPreferredScoringPosRel, :NavRootFocusScopeId, :MemoryDrawListIdxCapacity, :MemoryDrawListVtxCapacity, :MemoryCompacted, :DockIsActive, :DockNodeIsVisible, :DockTabIsVisible, :DockTabWantClose, :DockOrder, :DockStyle, :DockNode, :DockNodeAsHost, :DockId, if private + fieldnames(typeof(x)) + else + () + end...) +end + const ImGuiItemFlags = Cint struct ImGuiLastItemData @@ -2327,6 +2391,14 @@ function Base.setproperty!(x::Ptr{ImGuiStyleMod}, f::Symbol, v) unsafe_store!(getproperty(x, f), v) end +function Base.propertynames(x::ImGuiStyleMod, private::Bool = false) + (:VarIdx, :BackupInt, :BackupFloat, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiStyleMod Size::Cint Capacity::Cint @@ -2813,6 +2885,14 @@ function Base.setproperty!(x::Ptr{ImGuiTableColumn}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiTableColumn, private::Bool = false) + (:Flags, :WidthGiven, :MinX, :MaxX, :WidthRequest, :WidthAuto, :WidthMax, :StretchWeight, :InitStretchWeightOrWidth, :ClipRect, :UserID, :WorkMinX, :WorkMaxX, :ItemWidth, :ContentMaxXFrozen, :ContentMaxXUnfrozen, :ContentMaxXHeadersUsed, :ContentMaxXHeadersIdeal, :NameOffset, :DisplayOrder, :IndexWithinEnabledSet, :PrevEnabledColumn, :NextEnabledColumn, :SortOrder, :DrawChannelCurrent, :DrawChannelFrozen, :DrawChannelUnfrozen, :IsEnabled, :IsUserEnabled, :IsUserEnabledNextFrame, :IsVisibleX, :IsVisibleY, :IsRequestOutput, :IsSkipItems, :IsPreserveWidthAuto, :NavLayerCurrent, :AutoFitQueue, :CannotSkipItemsQueue, :SortDirection, :SortDirectionsAvailCount, :SortDirectionsAvailMask, :SortDirectionsAvailList, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImSpan_ImGuiTableColumn Data::Ptr{ImGuiTableColumn} DataEnd::Ptr{ImGuiTableColumn} @@ -3041,6 +3121,14 @@ function Base.setproperty!(x::Ptr{ImGuiTable}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiTable, private::Bool = false) + (:ID, :Flags, :RawData, :TempData, :Columns, :DisplayOrderToIndex, :RowCellData, :EnabledMaskByDisplayOrder, :EnabledMaskByIndex, :VisibleMaskByIndex, :SettingsLoadedFlags, :SettingsOffset, :LastFrameActive, :ColumnsCount, :CurrentRow, :CurrentColumn, :InstanceCurrent, :InstanceInteracted, :RowPosY1, :RowPosY2, :RowMinHeight, :RowCellPaddingY, :RowTextBaseline, :RowIndentOffsetX, :RowFlags, :LastRowFlags, :RowBgColorCounter, :RowBgColor, :BorderColorStrong, :BorderColorLight, :BorderX1, :BorderX2, :HostIndentX, :MinColumnWidth, :OuterPaddingX, :CellPaddingX, :CellSpacingX1, :CellSpacingX2, :InnerWidth, :ColumnsGivenWidth, :ColumnsAutoFitWidth, :ColumnsStretchSumWeights, :ResizedColumnNextWidth, :ResizeLockMinContentsX2, :RefScale, :AngledHeadersHeight, :AngledHeadersSlope, :OuterRect, :InnerRect, :WorkRect, :InnerClipRect, :BgClipRect, :Bg0ClipRectForDrawCmd, :Bg2ClipRectForDrawCmd, :HostClipRect, :HostBackupInnerClipRect, :OuterWindow, :InnerWindow, :ColumnsNames, :DrawSplitter, :InstanceDataFirst, :InstanceDataExtra, :SortSpecsSingle, :SortSpecsMulti, :SortSpecs, :SortSpecsCount, :ColumnsEnabledCount, :ColumnsEnabledFixedCount, :DeclColumnsCount, :AngledHeadersCount, :HoveredColumnBody, :HoveredColumnBorder, :HighlightColumnHeader, :AutoFitSingleColumn, :ResizedColumn, :LastResizedColumn, :HeldHeaderColumn, :ReorderColumn, :ReorderColumnDir, :LeftMostEnabledColumn, :RightMostEnabledColumn, :LeftMostStretchedColumn, :RightMostStretchedColumn, :ContextPopupColumn, :FreezeRowsRequest, :FreezeRowsCount, :FreezeColumnsRequest, :FreezeColumnsCount, :RowCellDataCurrent, :DummyDrawChannel, :Bg2DrawChannelCurrent, :Bg2DrawChannelUnfrozen, :NavLayer, :IsLayoutLocked, :IsInsideRow, :IsInitializing, :IsSortSpecsDirty, :IsUsingHeaders, :IsContextPopupOpen, :DisableDefaultContextMenu, :IsSettingsRequestLoad, :IsSettingsDirty, :IsDefaultDisplayOrder, :IsResetAllRequest, :IsResetDisplayOrderRequest, :IsUnfrozenRows, :IsDefaultSizingPolicy, :IsActiveIdAliveBeforeTable, :IsActiveIdInTable, :HasScrollbarYCurr, :HasScrollbarYPrev, :MemoryCompacted, :HostSkipItems, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiTableTempData Size::Cint Capacity::Cint @@ -3164,6 +3252,14 @@ function Base.setproperty!(x::Ptr{ImGuiBoxSelectState}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiBoxSelectState, private::Bool = false) + (:ID, :IsActive, :IsStarting, :IsStartedFromVoid, :IsStartedSetNavIdOnce, :RequestClear, :KeyMods, :StartPosRel, :EndPosRel, :ScrollAccum, :Window, :UnclipMode, :UnclipRect, :BoxSelectRectPrev, :BoxSelectRectCurr, if private + fieldnames(typeof(x)) + else + () + end...) +end + @cenum ImGuiSelectionRequestType::UInt32 begin ImGuiSelectionRequestType_None = 0 ImGuiSelectionRequestType_SetAll = 1 @@ -3495,6 +3591,14 @@ function Base.setproperty!(x::Ptr{ImGuiStackLevelInfo}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiStackLevelInfo, private::Bool = false) + (:ID, :QueryFrameCount, :QuerySuccess, :DataType, :Desc, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiStackLevelInfo Size::Cint Capacity::Cint @@ -3893,6 +3997,14 @@ function Base.setproperty!(x::Ptr{ImGuiContext}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiContext, private::Bool = false) + (:Initialized, :IO, :PlatformIO, :Style, :ConfigFlagsCurrFrame, :ConfigFlagsLastFrame, :FontAtlases, :Font, :FontBaked, :FontSize, :FontSizeBase, :FontBakedScale, :FontRasterizerDensity, :CurrentDpiScale, :DrawListSharedData, :Time, :FrameCount, :FrameCountEnded, :FrameCountPlatformEnded, :FrameCountRendered, :WithinEndChildID, :WithinFrameScope, :WithinFrameScopeWithImplicitWindow, :GcCompactAll, :TestEngineHookItems, :TestEngine, :ContextName, :InputEventsQueue, :InputEventsTrail, :InputEventsNextMouseSource, :InputEventsNextEventId, :Windows, :WindowsFocusOrder, :WindowsTempSortBuffer, :CurrentWindowStack, :WindowsById, :WindowsActiveCount, :WindowsBorderHoverPadding, :DebugBreakInWindow, :CurrentWindow, :HoveredWindow, :HoveredWindowUnderMovingWindow, :HoveredWindowBeforeClear, :MovingWindow, :WheelingWindow, :WheelingWindowRefMousePos, :WheelingWindowStartFrame, :WheelingWindowScrolledFrame, :WheelingWindowReleaseTimer, :WheelingWindowWheelRemainder, :WheelingAxisAvg, :DebugDrawIdConflictsId, :DebugHookIdInfo, :HoveredId, :HoveredIdPreviousFrame, :HoveredIdPreviousFrameItemCount, :HoveredIdTimer, :HoveredIdNotActiveTimer, :HoveredIdAllowOverlap, :HoveredIdIsDisabled, :ItemUnclipByLog, :ActiveId, :ActiveIdIsAlive, :ActiveIdTimer, :ActiveIdIsJustActivated, :ActiveIdAllowOverlap, :ActiveIdNoClearOnFocusLoss, :ActiveIdHasBeenPressedBefore, :ActiveIdHasBeenEditedBefore, :ActiveIdHasBeenEditedThisFrame, :ActiveIdFromShortcut, :ActiveIdMouseButton, :ActiveIdClickOffset, :ActiveIdWindow, :ActiveIdSource, :ActiveIdPreviousFrame, :DeactivatedItemData, :ActiveIdValueOnActivation, :LastActiveId, :LastActiveIdTimer, :LastKeyModsChangeTime, :LastKeyModsChangeFromNoneTime, :LastKeyboardKeyPressTime, :KeysMayBeCharInput, :KeysOwnerData, :KeysRoutingTable, :ActiveIdUsingNavDirMask, :ActiveIdUsingAllKeyboardKeys, :DebugBreakInShortcutRouting, :CurrentFocusScopeId, :CurrentItemFlags, :DebugLocateId, :NextItemData, :LastItemData, :NextWindowData, :DebugShowGroupRects, :DebugFlashStyleColorIdx, :ColorStack, :StyleVarStack, :FontStack, :FocusScopeStack, :ItemFlagsStack, :GroupStack, :OpenPopupStack, :BeginPopupStack, :TreeNodeStack, :Viewports, :CurrentViewport, :MouseViewport, :MouseLastHoveredViewport, :PlatformLastFocusedViewportId, :FallbackMonitor, :PlatformMonitorsFullWorkRect, :ViewportCreatedCount, :PlatformWindowsCreatedCount, :ViewportFocusedStampCount, :NavCursorVisible, :NavHighlightItemUnderNav, :NavMousePosDirty, :NavIdIsAlive, :NavId, :NavWindow, :NavFocusScopeId, :NavLayer, :NavActivateId, :NavActivateDownId, :NavActivatePressedId, :NavActivateFlags, :NavFocusRoute, :NavHighlightActivatedId, :NavHighlightActivatedTimer, :NavNextActivateId, :NavNextActivateFlags, :NavInputSource, :NavLastValidSelectionUserData, :NavCursorHideFrames, :NavAnyRequest, :NavInitRequest, :NavInitRequestFromMove, :NavInitResult, :NavMoveSubmitted, :NavMoveScoringItems, :NavMoveForwardToNextFrame, :NavMoveFlags, :NavMoveScrollFlags, :NavMoveKeyMods, :NavMoveDir, :NavMoveDirForDebug, :NavMoveClipDir, :NavScoringRect, :NavScoringNoClipRect, :NavScoringDebugCount, :NavTabbingDir, :NavTabbingCounter, :NavMoveResultLocal, :NavMoveResultLocalVisible, :NavMoveResultOther, :NavTabbingResultFirst, :NavJustMovedFromFocusScopeId, :NavJustMovedToId, :NavJustMovedToFocusScopeId, :NavJustMovedToKeyMods, :NavJustMovedToIsTabbing, :NavJustMovedToHasSelectionData, :ConfigNavWindowingWithGamepad, :ConfigNavWindowingKeyNext, :ConfigNavWindowingKeyPrev, :NavWindowingTarget, :NavWindowingTargetAnim, :NavWindowingListWindow, :NavWindowingTimer, :NavWindowingHighlightAlpha, :NavWindowingInputSource, :NavWindowingToggleLayer, :NavWindowingToggleKey, :NavWindowingAccumDeltaPos, :NavWindowingAccumDeltaSize, :DimBgRatio, :DragDropActive, :DragDropWithinSource, :DragDropWithinTarget, :DragDropSourceFlags, :DragDropSourceFrameCount, :DragDropMouseButton, :DragDropPayload, :DragDropTargetRect, :DragDropTargetClipRect, :DragDropTargetId, :DragDropAcceptFlags, :DragDropAcceptIdCurrRectSurface, :DragDropAcceptIdCurr, :DragDropAcceptIdPrev, :DragDropAcceptFrameCount, :DragDropHoldJustPressedId, :DragDropPayloadBufHeap, :DragDropPayloadBufLocal, :ClipperTempDataStacked, :ClipperTempData, :CurrentTable, :DebugBreakInTable, :TablesTempDataStacked, :TablesTempData, :Tables, :TablesLastTimeActive, :DrawChannelsTempMergeBuffer, :CurrentTabBar, :TabBars, :CurrentTabBarStack, :ShrinkWidthBuffer, :BoxSelectState, :CurrentMultiSelect, :MultiSelectTempDataStacked, :MultiSelectTempData, :MultiSelectStorage, :HoverItemDelayId, :HoverItemDelayIdPreviousFrame, :HoverItemDelayTimer, :HoverItemDelayClearTimer, :HoverItemUnlockedStationaryId, :HoverWindowUnlockedStationaryId, :MouseCursor, :MouseStationaryTimer, :MouseLastValidPos, :InputTextState, :InputTextDeactivatedState, :InputTextPasswordFontBackupBaked, :InputTextPasswordFontBackupFlags, :TempInputId, :DataTypeZeroValue, :BeginMenuDepth, :BeginComboDepth, :ColorEditOptions, :ColorEditCurrentID, :ColorEditSavedID, :ColorEditSavedHue, :ColorEditSavedSat, :ColorEditSavedColor, :ColorPickerRef, :ComboPreviewData, :WindowResizeBorderExpectedRect, :WindowResizeRelativeMode, :ScrollbarSeekMode, :ScrollbarClickDeltaToGrabCenter, :SliderGrabClickOffset, :SliderCurrentAccum, :SliderCurrentAccumDirty, :DragCurrentAccumDirty, :DragCurrentAccum, :DragSpeedDefaultRatio, :DisabledAlphaBackup, :DisabledStackSize, :TooltipOverrideCount, :TooltipPreviousWindow, :ClipboardHandlerData, :MenusIdSubmittedThisFrame, :TypingSelectState, :PlatformImeData, :PlatformImeDataPrev, :UserTextures, :DockContext, :DockNodeWindowMenuHandler, :SettingsLoaded, :SettingsDirtyTimer, :SettingsIniData, :SettingsHandlers, :SettingsWindows, :SettingsTables, :Hooks, :HookIdNext, :LocalizationTable, :LogEnabled, :LogFlags, :LogWindow, :LogFile, :LogBuffer, :LogNextPrefix, :LogNextSuffix, :LogLinePosY, :LogLineFirstItem, :LogDepthRef, :LogDepthToExpand, :LogDepthToExpandDefault, :ErrorCallback, :ErrorCallbackUserData, :ErrorTooltipLockedPos, :ErrorFirst, :ErrorCountCurrentFrame, :StackSizesInNewFrame, :StackSizesInBeginForCurrentWindow, :DebugDrawIdConflictsCount, :DebugLogFlags, :DebugLogBuf, :DebugLogIndex, :DebugLogSkippedErrors, :DebugLogAutoDisableFlags, :DebugLogAutoDisableFrames, :DebugLocateFrames, :DebugBreakInLocateId, :DebugBreakKeyChord, :DebugBeginReturnValueCullDepth, :DebugItemPickerActive, :DebugItemPickerMouseButton, :DebugItemPickerBreakId, :DebugFlashStyleColorTime, :DebugFlashStyleColorBackup, :DebugMetricsConfig, :DebugIDStackTool, :DebugAllocInfo, :DebugHoveredDockNode, :FramerateSecPerFrame, :FramerateSecPerFrameIdx, :FramerateSecPerFrameCount, :FramerateSecPerFrameAccum, :WantCaptureMouseNextFrame, :WantCaptureKeyboardNextFrame, :WantTextInputNextFrame, :TempBuffer, :TempKeychordName, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImGuiInputTextCallbackData Ctx::Ptr{ImGuiContext} EventFlag::ImGuiInputTextFlags @@ -4065,6 +4177,14 @@ function Base.setproperty!(x::Ptr{ImGuiStyleVarInfo}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiStyleVarInfo, private::Bool = false) + (:Count, :DataType, :Offset, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImGuiTableSettings ID::ImGuiID SaveFlags::ImGuiTableFlags @@ -5216,6 +5336,14 @@ function Base.setproperty!(x::Ptr{ImGuiTableColumnSettings}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiTableColumnSettings, private::Bool = false) + (:WidthOrWeight, :UserID, :Index, :DisplayOrder, :SortOrder, :SortDirection, :IsEnabled, :IsStretch, if private + fieldnames(typeof(x)) + else + () + end...) +end + function ImVec2_ImVec2_Nil() ccall((:ImVec2_ImVec2_Nil, libcimgui), Ptr{ImVec2}, ()) end @@ -11705,36 +11833,60 @@ struct ImPool_ImPlotAlignmentData end struct ImPlotContext - Plots::ImPool_ImPlotPlot - Subplots::ImPool_ImPlotSubplot - CurrentPlot::Ptr{ImPlotPlot} - CurrentSubplot::Ptr{ImPlotSubplot} - CurrentItems::Ptr{ImPlotItemGroup} - CurrentItem::Ptr{ImPlotItem} - PreviousItem::Ptr{ImPlotItem} - CTicker::ImPlotTicker - Annotations::ImPlotAnnotationCollection - Tags::ImPlotTagCollection - Style::ImPlotStyle - ColorModifiers::ImVector_ImGuiColorMod - StyleModifiers::ImVector_ImGuiStyleMod - ColormapData::ImPlotColormapData - ColormapModifiers::ImVector_ImPlotColormap - Tm::tm - TempDouble1::ImVector_double - TempDouble2::ImVector_double - TempInt1::ImVector_int - DigitalPlotItemCnt::Cint - DigitalPlotOffset::Cint - NextPlotData::ImPlotNextPlotData - NextItemData::ImPlotNextItemData - InputMap::ImPlotInputMap - OpenContextThisFrame::Bool - MousePosStringBuilder::ImGuiTextBuffer - SortItems::Ptr{ImPlotItemGroup} - AlignmentData::ImPool_ImPlotAlignmentData - CurrentAlignmentH::Ptr{ImPlotAlignmentData} - CurrentAlignmentV::Ptr{ImPlotAlignmentData} + data::NTuple{1368, UInt8} +end + +function Base.getproperty(x::Ptr{ImPlotContext}, f::Symbol) + f === :Plots && return Ptr{ImPool_ImPlotPlot}(x + 0) + f === :Subplots && return Ptr{ImPool_ImPlotSubplot}(x + 32) + f === :CurrentPlot && return Ptr{Ptr{ImPlotPlot}}(x + 64) + f === :CurrentSubplot && return Ptr{Ptr{ImPlotSubplot}}(x + 68) + f === :CurrentItems && return Ptr{Ptr{ImPlotItemGroup}}(x + 72) + f === :CurrentItem && return Ptr{Ptr{ImPlotItem}}(x + 76) + f === :PreviousItem && return Ptr{Ptr{ImPlotItem}}(x + 80) + f === :CTicker && return Ptr{ImPlotTicker}(x + 84) + f === :Annotations && return Ptr{ImPlotAnnotationCollection}(x + 128) + f === :Tags && return Ptr{ImPlotTagCollection}(x + 156) + f === :Style && return Ptr{ImPlotStyle}(x + 184) + f === :ColorModifiers && return Ptr{ImVector_ImGuiColorMod}(x + 700) + f === :StyleModifiers && return Ptr{ImVector_ImGuiStyleMod}(x + 712) + f === :ColormapData && return Ptr{ImPlotColormapData}(x + 724) + f === :ColormapModifiers && return Ptr{ImVector_ImPlotColormap}(x + 848) + f === :Tm && return Ptr{tm}(x + 860) + f === :TempDouble1 && return Ptr{ImVector_double}(x + 896) + f === :TempDouble2 && return Ptr{ImVector_double}(x + 908) + f === :TempInt1 && return Ptr{ImVector_int}(x + 920) + f === :DigitalPlotItemCnt && return Ptr{Cint}(x + 932) + f === :DigitalPlotOffset && return Ptr{Cint}(x + 936) + f === :NextPlotData && return Ptr{ImPlotNextPlotData}(x + 944) + f === :NextItemData && return Ptr{ImPlotNextItemData}(x + 1128) + f === :InputMap && return Ptr{ImPlotInputMap}(x + 1256) + f === :OpenContextThisFrame && return Ptr{Bool}(x + 1304) + f === :MousePosStringBuilder && return Ptr{ImGuiTextBuffer}(x + 1308) + f === :SortItems && return Ptr{Ptr{ImPlotItemGroup}}(x + 1320) + f === :AlignmentData && return Ptr{ImPool_ImPlotAlignmentData}(x + 1324) + f === :CurrentAlignmentH && return Ptr{Ptr{ImPlotAlignmentData}}(x + 1356) + f === :CurrentAlignmentV && return Ptr{Ptr{ImPlotAlignmentData}}(x + 1360) + return getfield(x, f) +end + +function Base.getproperty(x::ImPlotContext, f::Symbol) + r = Ref{ImPlotContext}(x) + ptr = Base.unsafe_convert(Ptr{ImPlotContext}, r) + fptr = getproperty(ptr, f) + GC.@preserve r unsafe_load(fptr) +end + +function Base.setproperty!(x::Ptr{ImPlotContext}, f::Symbol, v) + unsafe_store!(getproperty(x, f), v) +end + +function Base.propertynames(x::ImPlotContext, private::Bool = false) + (:Plots, :Subplots, :CurrentPlot, :CurrentSubplot, :CurrentItems, :CurrentItem, :PreviousItem, :CTicker, :Annotations, :Tags, :Style, :ColorModifiers, :StyleModifiers, :ColormapData, :ColormapModifiers, :Tm, :TempDouble1, :TempDouble2, :TempInt1, :DigitalPlotItemCnt, :DigitalPlotOffset, :NextPlotData, :NextItemData, :InputMap, :OpenContextThisFrame, :MousePosStringBuilder, :SortItems, :AlignmentData, :CurrentAlignmentH, :CurrentAlignmentV, if private + fieldnames(typeof(x)) + else + () + end...) end mutable struct ImPlotAxisColor end diff --git a/lib/powerpc64le-linux-gnu.jl b/lib/powerpc64le-linux-gnu.jl index 90bb1c4..c95a752 100644 --- a/lib/powerpc64le-linux-gnu.jl +++ b/lib/powerpc64le-linux-gnu.jl @@ -1,4 +1,4 @@ -using CEnum +using CEnum: CEnum, @cenum to_c_type(t::Type) = t to_c_type_pairs(va_list) = map(enumerate(to_c_type.(va_list))) do (ind, type) @@ -474,6 +474,14 @@ function Base.setproperty!(x::Ptr{ImFontGlyph}, f::Symbol, v) end end +function Base.propertynames(x::ImFontGlyph, private::Bool = false) + (:Colored, :Visible, :SourceIdx, :Codepoint, :AdvanceX, :X0, :Y0, :X1, :Y1, :U0, :V0, :U1, :V1, :PackId, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImFontGlyph Size::Cint Capacity::Cint @@ -547,6 +555,14 @@ function Base.setproperty!(x::Ptr{ImFontBaked}, f::Symbol, v) end end +function Base.propertynames(x::ImFontBaked, private::Bool = false) + (:IndexAdvanceX, :FallbackAdvanceX, :Size, :RasterizerDensity, :IndexLookup, :Glyphs, :FallbackGlyphIndex, :Ascent, :Descent, :MetricsTotalSurface, :WantDestroy, :LockLoadingFallback, :LastUsedFrame, :BakedId, :ContainerFont, :FontLoaderDatas, if private + fieldnames(typeof(x)) + else + () + end...) +end + const ImFontFlags = Cint const ImS8 = Int8 @@ -663,6 +679,14 @@ function Base.setproperty!(x::Ptr{ImGuiStoragePair}, f::Symbol, v) unsafe_store!(getproperty(x, f), v) end +function Base.propertynames(x::ImGuiStoragePair, private::Bool = false) + (:key, :val_i, :val_f, :val_p, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiStoragePair Size::Cint Capacity::Cint @@ -784,6 +808,14 @@ function Base.setproperty!(x::Ptr{ImFontAtlasRectEntry}, f::Symbol, v) end end +function Base.propertynames(x::ImFontAtlasRectEntry, private::Bool = false) + (:TargetIndex, :Generation, :IsUsed, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImFontAtlasRectEntry Size::Cint Capacity::Cint @@ -1558,6 +1590,14 @@ function Base.setproperty!(x::Ptr{ImGuiInputEvent}, f::Symbol, v) unsafe_store!(getproperty(x, f), v) end +function Base.propertynames(x::ImGuiInputEvent, private::Bool = false) + (:Type, :Source, :EventId, :MousePos, :MouseWheel, :MouseButton, :MouseViewport, :Key, :Text, :AppFocused, :AddedByTestEngine, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiInputEvent Size::Cint Capacity::Cint @@ -1957,6 +1997,14 @@ function Base.setproperty!(x::Ptr{ImGuiDockNode}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiDockNode, private::Bool = false) + (:ID, :SharedFlags, :LocalFlags, :LocalFlagsInWindows, :MergedFlags, :State, :ParentNode, :ChildNodes, :Windows, :TabBar, :Pos, :Size, :SizeRef, :SplitAxis, :WindowClass, :LastBgColor, :HostWindow, :VisibleWindow, :CentralNode, :OnlyNodeWithWindows, :CountNodeWithWindows, :LastFrameAlive, :LastFrameActive, :LastFrameFocused, :LastFocusedNodeId, :SelectedTabId, :WantCloseTabId, :RefViewportId, :AuthorityForPos, :AuthorityForSize, :AuthorityForViewport, :IsVisible, :IsFocused, :IsBgDrawnThisFrame, :HasCloseButton, :HasWindowMenuButton, :HasCentralNodeChild, :WantCloseAll, :WantLockSizeOnce, :WantMouseMove, :WantHiddenTabBarUpdate, :WantHiddenTabBarToggle, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImGuiWindow data::NTuple{1224, UInt8} end @@ -2133,6 +2181,14 @@ function Base.setproperty!(x::Ptr{ImGuiWindow}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiWindow, private::Bool = false) + (:Ctx, :Name, :ID, :Flags, :FlagsPreviousFrame, :ChildFlags, :WindowClass, :Viewport, :ViewportId, :ViewportPos, :ViewportAllowPlatformMonitorExtend, :Pos, :Size, :SizeFull, :ContentSize, :ContentSizeIdeal, :ContentSizeExplicit, :WindowPadding, :WindowRounding, :WindowBorderSize, :TitleBarHeight, :MenuBarHeight, :DecoOuterSizeX1, :DecoOuterSizeY1, :DecoOuterSizeX2, :DecoOuterSizeY2, :DecoInnerSizeX1, :DecoInnerSizeY1, :NameBufLen, :MoveId, :TabId, :ChildId, :PopupId, :Scroll, :ScrollMax, :ScrollTarget, :ScrollTargetCenterRatio, :ScrollTargetEdgeSnapDist, :ScrollbarSizes, :ScrollbarX, :ScrollbarY, :ScrollbarXStabilizeEnabled, :ScrollbarXStabilizeToggledHistory, :ViewportOwned, :Active, :WasActive, :WriteAccessed, :Collapsed, :WantCollapseToggle, :SkipItems, :SkipRefresh, :Appearing, :Hidden, :IsFallbackWindow, :IsExplicitChild, :HasCloseButton, :ResizeBorderHovered, :ResizeBorderHeld, :BeginCount, :BeginCountPreviousFrame, :BeginOrderWithinParent, :BeginOrderWithinContext, :FocusOrder, :AutoFitFramesX, :AutoFitFramesY, :AutoFitOnlyGrows, :AutoPosLastDirection, :HiddenFramesCanSkipItems, :HiddenFramesCannotSkipItems, :HiddenFramesForRenderOnly, :DisableInputsFrames, :SetWindowPosAllowFlags, :SetWindowSizeAllowFlags, :SetWindowCollapsedAllowFlags, :SetWindowDockAllowFlags, :SetWindowPosVal, :SetWindowPosPivot, :IDStack, :DC, :OuterRectClipped, :InnerRect, :InnerClipRect, :WorkRect, :ParentWorkRect, :ClipRect, :ContentRegionRect, :HitTestHoleSize, :HitTestHoleOffset, :LastFrameActive, :LastFrameJustFocused, :LastTimeActive, :ItemWidthDefault, :StateStorage, :ColumnsStorage, :FontWindowScale, :FontWindowScaleParents, :FontRefSize, :SettingsOffset, :DrawList, :DrawListInst, :ParentWindow, :ParentWindowInBeginStack, :RootWindow, :RootWindowPopupTree, :RootWindowDockTree, :RootWindowForTitleBarHighlight, :RootWindowForNav, :ParentWindowForFocusRoute, :NavLastChildNavWindow, :NavLastIds, :NavRectRel, :NavPreferredScoringPosRel, :NavRootFocusScopeId, :MemoryDrawListIdxCapacity, :MemoryDrawListVtxCapacity, :MemoryCompacted, :DockIsActive, :DockNodeIsVisible, :DockTabIsVisible, :DockTabWantClose, :DockOrder, :DockStyle, :DockNode, :DockNodeAsHost, :DockId, if private + fieldnames(typeof(x)) + else + () + end...) +end + const ImGuiItemFlags = Cint struct ImGuiLastItemData @@ -2313,6 +2369,14 @@ function Base.setproperty!(x::Ptr{ImGuiStyleMod}, f::Symbol, v) unsafe_store!(getproperty(x, f), v) end +function Base.propertynames(x::ImGuiStyleMod, private::Bool = false) + (:VarIdx, :BackupInt, :BackupFloat, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiStyleMod Size::Cint Capacity::Cint @@ -2799,6 +2863,14 @@ function Base.setproperty!(x::Ptr{ImGuiTableColumn}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiTableColumn, private::Bool = false) + (:Flags, :WidthGiven, :MinX, :MaxX, :WidthRequest, :WidthAuto, :WidthMax, :StretchWeight, :InitStretchWeightOrWidth, :ClipRect, :UserID, :WorkMinX, :WorkMaxX, :ItemWidth, :ContentMaxXFrozen, :ContentMaxXUnfrozen, :ContentMaxXHeadersUsed, :ContentMaxXHeadersIdeal, :NameOffset, :DisplayOrder, :IndexWithinEnabledSet, :PrevEnabledColumn, :NextEnabledColumn, :SortOrder, :DrawChannelCurrent, :DrawChannelFrozen, :DrawChannelUnfrozen, :IsEnabled, :IsUserEnabled, :IsUserEnabledNextFrame, :IsVisibleX, :IsVisibleY, :IsRequestOutput, :IsSkipItems, :IsPreserveWidthAuto, :NavLayerCurrent, :AutoFitQueue, :CannotSkipItemsQueue, :SortDirection, :SortDirectionsAvailCount, :SortDirectionsAvailMask, :SortDirectionsAvailList, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImSpan_ImGuiTableColumn Data::Ptr{ImGuiTableColumn} DataEnd::Ptr{ImGuiTableColumn} @@ -3027,6 +3099,14 @@ function Base.setproperty!(x::Ptr{ImGuiTable}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiTable, private::Bool = false) + (:ID, :Flags, :RawData, :TempData, :Columns, :DisplayOrderToIndex, :RowCellData, :EnabledMaskByDisplayOrder, :EnabledMaskByIndex, :VisibleMaskByIndex, :SettingsLoadedFlags, :SettingsOffset, :LastFrameActive, :ColumnsCount, :CurrentRow, :CurrentColumn, :InstanceCurrent, :InstanceInteracted, :RowPosY1, :RowPosY2, :RowMinHeight, :RowCellPaddingY, :RowTextBaseline, :RowIndentOffsetX, :RowFlags, :LastRowFlags, :RowBgColorCounter, :RowBgColor, :BorderColorStrong, :BorderColorLight, :BorderX1, :BorderX2, :HostIndentX, :MinColumnWidth, :OuterPaddingX, :CellPaddingX, :CellSpacingX1, :CellSpacingX2, :InnerWidth, :ColumnsGivenWidth, :ColumnsAutoFitWidth, :ColumnsStretchSumWeights, :ResizedColumnNextWidth, :ResizeLockMinContentsX2, :RefScale, :AngledHeadersHeight, :AngledHeadersSlope, :OuterRect, :InnerRect, :WorkRect, :InnerClipRect, :BgClipRect, :Bg0ClipRectForDrawCmd, :Bg2ClipRectForDrawCmd, :HostClipRect, :HostBackupInnerClipRect, :OuterWindow, :InnerWindow, :ColumnsNames, :DrawSplitter, :InstanceDataFirst, :InstanceDataExtra, :SortSpecsSingle, :SortSpecsMulti, :SortSpecs, :SortSpecsCount, :ColumnsEnabledCount, :ColumnsEnabledFixedCount, :DeclColumnsCount, :AngledHeadersCount, :HoveredColumnBody, :HoveredColumnBorder, :HighlightColumnHeader, :AutoFitSingleColumn, :ResizedColumn, :LastResizedColumn, :HeldHeaderColumn, :ReorderColumn, :ReorderColumnDir, :LeftMostEnabledColumn, :RightMostEnabledColumn, :LeftMostStretchedColumn, :RightMostStretchedColumn, :ContextPopupColumn, :FreezeRowsRequest, :FreezeRowsCount, :FreezeColumnsRequest, :FreezeColumnsCount, :RowCellDataCurrent, :DummyDrawChannel, :Bg2DrawChannelCurrent, :Bg2DrawChannelUnfrozen, :NavLayer, :IsLayoutLocked, :IsInsideRow, :IsInitializing, :IsSortSpecsDirty, :IsUsingHeaders, :IsContextPopupOpen, :DisableDefaultContextMenu, :IsSettingsRequestLoad, :IsSettingsDirty, :IsDefaultDisplayOrder, :IsResetAllRequest, :IsResetDisplayOrderRequest, :IsUnfrozenRows, :IsDefaultSizingPolicy, :IsActiveIdAliveBeforeTable, :IsActiveIdInTable, :HasScrollbarYCurr, :HasScrollbarYPrev, :MemoryCompacted, :HostSkipItems, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiTableTempData Size::Cint Capacity::Cint @@ -3150,6 +3230,14 @@ function Base.setproperty!(x::Ptr{ImGuiBoxSelectState}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiBoxSelectState, private::Bool = false) + (:ID, :IsActive, :IsStarting, :IsStartedFromVoid, :IsStartedSetNavIdOnce, :RequestClear, :KeyMods, :StartPosRel, :EndPosRel, :ScrollAccum, :Window, :UnclipMode, :UnclipRect, :BoxSelectRectPrev, :BoxSelectRectCurr, if private + fieldnames(typeof(x)) + else + () + end...) +end + @cenum ImGuiSelectionRequestType::UInt32 begin ImGuiSelectionRequestType_None = 0 ImGuiSelectionRequestType_SetAll = 1 @@ -3481,6 +3569,14 @@ function Base.setproperty!(x::Ptr{ImGuiStackLevelInfo}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiStackLevelInfo, private::Bool = false) + (:ID, :QueryFrameCount, :QuerySuccess, :DataType, :Desc, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiStackLevelInfo Size::Cint Capacity::Cint @@ -3879,6 +3975,14 @@ function Base.setproperty!(x::Ptr{ImGuiContext}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiContext, private::Bool = false) + (:Initialized, :IO, :PlatformIO, :Style, :ConfigFlagsCurrFrame, :ConfigFlagsLastFrame, :FontAtlases, :Font, :FontBaked, :FontSize, :FontSizeBase, :FontBakedScale, :FontRasterizerDensity, :CurrentDpiScale, :DrawListSharedData, :Time, :FrameCount, :FrameCountEnded, :FrameCountPlatformEnded, :FrameCountRendered, :WithinEndChildID, :WithinFrameScope, :WithinFrameScopeWithImplicitWindow, :GcCompactAll, :TestEngineHookItems, :TestEngine, :ContextName, :InputEventsQueue, :InputEventsTrail, :InputEventsNextMouseSource, :InputEventsNextEventId, :Windows, :WindowsFocusOrder, :WindowsTempSortBuffer, :CurrentWindowStack, :WindowsById, :WindowsActiveCount, :WindowsBorderHoverPadding, :DebugBreakInWindow, :CurrentWindow, :HoveredWindow, :HoveredWindowUnderMovingWindow, :HoveredWindowBeforeClear, :MovingWindow, :WheelingWindow, :WheelingWindowRefMousePos, :WheelingWindowStartFrame, :WheelingWindowScrolledFrame, :WheelingWindowReleaseTimer, :WheelingWindowWheelRemainder, :WheelingAxisAvg, :DebugDrawIdConflictsId, :DebugHookIdInfo, :HoveredId, :HoveredIdPreviousFrame, :HoveredIdPreviousFrameItemCount, :HoveredIdTimer, :HoveredIdNotActiveTimer, :HoveredIdAllowOverlap, :HoveredIdIsDisabled, :ItemUnclipByLog, :ActiveId, :ActiveIdIsAlive, :ActiveIdTimer, :ActiveIdIsJustActivated, :ActiveIdAllowOverlap, :ActiveIdNoClearOnFocusLoss, :ActiveIdHasBeenPressedBefore, :ActiveIdHasBeenEditedBefore, :ActiveIdHasBeenEditedThisFrame, :ActiveIdFromShortcut, :ActiveIdMouseButton, :ActiveIdClickOffset, :ActiveIdWindow, :ActiveIdSource, :ActiveIdPreviousFrame, :DeactivatedItemData, :ActiveIdValueOnActivation, :LastActiveId, :LastActiveIdTimer, :LastKeyModsChangeTime, :LastKeyModsChangeFromNoneTime, :LastKeyboardKeyPressTime, :KeysMayBeCharInput, :KeysOwnerData, :KeysRoutingTable, :ActiveIdUsingNavDirMask, :ActiveIdUsingAllKeyboardKeys, :DebugBreakInShortcutRouting, :CurrentFocusScopeId, :CurrentItemFlags, :DebugLocateId, :NextItemData, :LastItemData, :NextWindowData, :DebugShowGroupRects, :DebugFlashStyleColorIdx, :ColorStack, :StyleVarStack, :FontStack, :FocusScopeStack, :ItemFlagsStack, :GroupStack, :OpenPopupStack, :BeginPopupStack, :TreeNodeStack, :Viewports, :CurrentViewport, :MouseViewport, :MouseLastHoveredViewport, :PlatformLastFocusedViewportId, :FallbackMonitor, :PlatformMonitorsFullWorkRect, :ViewportCreatedCount, :PlatformWindowsCreatedCount, :ViewportFocusedStampCount, :NavCursorVisible, :NavHighlightItemUnderNav, :NavMousePosDirty, :NavIdIsAlive, :NavId, :NavWindow, :NavFocusScopeId, :NavLayer, :NavActivateId, :NavActivateDownId, :NavActivatePressedId, :NavActivateFlags, :NavFocusRoute, :NavHighlightActivatedId, :NavHighlightActivatedTimer, :NavNextActivateId, :NavNextActivateFlags, :NavInputSource, :NavLastValidSelectionUserData, :NavCursorHideFrames, :NavAnyRequest, :NavInitRequest, :NavInitRequestFromMove, :NavInitResult, :NavMoveSubmitted, :NavMoveScoringItems, :NavMoveForwardToNextFrame, :NavMoveFlags, :NavMoveScrollFlags, :NavMoveKeyMods, :NavMoveDir, :NavMoveDirForDebug, :NavMoveClipDir, :NavScoringRect, :NavScoringNoClipRect, :NavScoringDebugCount, :NavTabbingDir, :NavTabbingCounter, :NavMoveResultLocal, :NavMoveResultLocalVisible, :NavMoveResultOther, :NavTabbingResultFirst, :NavJustMovedFromFocusScopeId, :NavJustMovedToId, :NavJustMovedToFocusScopeId, :NavJustMovedToKeyMods, :NavJustMovedToIsTabbing, :NavJustMovedToHasSelectionData, :ConfigNavWindowingWithGamepad, :ConfigNavWindowingKeyNext, :ConfigNavWindowingKeyPrev, :NavWindowingTarget, :NavWindowingTargetAnim, :NavWindowingListWindow, :NavWindowingTimer, :NavWindowingHighlightAlpha, :NavWindowingInputSource, :NavWindowingToggleLayer, :NavWindowingToggleKey, :NavWindowingAccumDeltaPos, :NavWindowingAccumDeltaSize, :DimBgRatio, :DragDropActive, :DragDropWithinSource, :DragDropWithinTarget, :DragDropSourceFlags, :DragDropSourceFrameCount, :DragDropMouseButton, :DragDropPayload, :DragDropTargetRect, :DragDropTargetClipRect, :DragDropTargetId, :DragDropAcceptFlags, :DragDropAcceptIdCurrRectSurface, :DragDropAcceptIdCurr, :DragDropAcceptIdPrev, :DragDropAcceptFrameCount, :DragDropHoldJustPressedId, :DragDropPayloadBufHeap, :DragDropPayloadBufLocal, :ClipperTempDataStacked, :ClipperTempData, :CurrentTable, :DebugBreakInTable, :TablesTempDataStacked, :TablesTempData, :Tables, :TablesLastTimeActive, :DrawChannelsTempMergeBuffer, :CurrentTabBar, :TabBars, :CurrentTabBarStack, :ShrinkWidthBuffer, :BoxSelectState, :CurrentMultiSelect, :MultiSelectTempDataStacked, :MultiSelectTempData, :MultiSelectStorage, :HoverItemDelayId, :HoverItemDelayIdPreviousFrame, :HoverItemDelayTimer, :HoverItemDelayClearTimer, :HoverItemUnlockedStationaryId, :HoverWindowUnlockedStationaryId, :MouseCursor, :MouseStationaryTimer, :MouseLastValidPos, :InputTextState, :InputTextDeactivatedState, :InputTextPasswordFontBackupBaked, :InputTextPasswordFontBackupFlags, :TempInputId, :DataTypeZeroValue, :BeginMenuDepth, :BeginComboDepth, :ColorEditOptions, :ColorEditCurrentID, :ColorEditSavedID, :ColorEditSavedHue, :ColorEditSavedSat, :ColorEditSavedColor, :ColorPickerRef, :ComboPreviewData, :WindowResizeBorderExpectedRect, :WindowResizeRelativeMode, :ScrollbarSeekMode, :ScrollbarClickDeltaToGrabCenter, :SliderGrabClickOffset, :SliderCurrentAccum, :SliderCurrentAccumDirty, :DragCurrentAccumDirty, :DragCurrentAccum, :DragSpeedDefaultRatio, :DisabledAlphaBackup, :DisabledStackSize, :TooltipOverrideCount, :TooltipPreviousWindow, :ClipboardHandlerData, :MenusIdSubmittedThisFrame, :TypingSelectState, :PlatformImeData, :PlatformImeDataPrev, :UserTextures, :DockContext, :DockNodeWindowMenuHandler, :SettingsLoaded, :SettingsDirtyTimer, :SettingsIniData, :SettingsHandlers, :SettingsWindows, :SettingsTables, :Hooks, :HookIdNext, :LocalizationTable, :LogEnabled, :LogFlags, :LogWindow, :LogFile, :LogBuffer, :LogNextPrefix, :LogNextSuffix, :LogLinePosY, :LogLineFirstItem, :LogDepthRef, :LogDepthToExpand, :LogDepthToExpandDefault, :ErrorCallback, :ErrorCallbackUserData, :ErrorTooltipLockedPos, :ErrorFirst, :ErrorCountCurrentFrame, :StackSizesInNewFrame, :StackSizesInBeginForCurrentWindow, :DebugDrawIdConflictsCount, :DebugLogFlags, :DebugLogBuf, :DebugLogIndex, :DebugLogSkippedErrors, :DebugLogAutoDisableFlags, :DebugLogAutoDisableFrames, :DebugLocateFrames, :DebugBreakInLocateId, :DebugBreakKeyChord, :DebugBeginReturnValueCullDepth, :DebugItemPickerActive, :DebugItemPickerMouseButton, :DebugItemPickerBreakId, :DebugFlashStyleColorTime, :DebugFlashStyleColorBackup, :DebugMetricsConfig, :DebugIDStackTool, :DebugAllocInfo, :DebugHoveredDockNode, :FramerateSecPerFrame, :FramerateSecPerFrameIdx, :FramerateSecPerFrameCount, :FramerateSecPerFrameAccum, :WantCaptureMouseNextFrame, :WantCaptureKeyboardNextFrame, :WantTextInputNextFrame, :TempBuffer, :TempKeychordName, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImGuiInputTextCallbackData Ctx::Ptr{ImGuiContext} EventFlag::ImGuiInputTextFlags @@ -4051,6 +4155,14 @@ function Base.setproperty!(x::Ptr{ImGuiStyleVarInfo}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiStyleVarInfo, private::Bool = false) + (:Count, :DataType, :Offset, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImGuiTableSettings ID::ImGuiID SaveFlags::ImGuiTableFlags @@ -5202,6 +5314,14 @@ function Base.setproperty!(x::Ptr{ImGuiTableColumnSettings}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiTableColumnSettings, private::Bool = false) + (:WidthOrWeight, :UserID, :Index, :DisplayOrder, :SortOrder, :SortDirection, :IsEnabled, :IsStretch, if private + fieldnames(typeof(x)) + else + () + end...) +end + function ImVec2_ImVec2_Nil() ccall((:ImVec2_ImVec2_Nil, libcimgui), Ptr{ImVec2}, ()) end diff --git a/lib/x86_64-apple-darwin14.jl b/lib/x86_64-apple-darwin14.jl index a831809..7b69951 100644 --- a/lib/x86_64-apple-darwin14.jl +++ b/lib/x86_64-apple-darwin14.jl @@ -1,4 +1,4 @@ -using CEnum +using CEnum: CEnum, @cenum to_c_type(t::Type) = t to_c_type_pairs(va_list) = map(enumerate(to_c_type.(va_list))) do (ind, type) @@ -474,6 +474,14 @@ function Base.setproperty!(x::Ptr{ImFontGlyph}, f::Symbol, v) end end +function Base.propertynames(x::ImFontGlyph, private::Bool = false) + (:Colored, :Visible, :SourceIdx, :Codepoint, :AdvanceX, :X0, :Y0, :X1, :Y1, :U0, :V0, :U1, :V1, :PackId, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImFontGlyph Size::Cint Capacity::Cint @@ -547,6 +555,14 @@ function Base.setproperty!(x::Ptr{ImFontBaked}, f::Symbol, v) end end +function Base.propertynames(x::ImFontBaked, private::Bool = false) + (:IndexAdvanceX, :FallbackAdvanceX, :Size, :RasterizerDensity, :IndexLookup, :Glyphs, :FallbackGlyphIndex, :Ascent, :Descent, :MetricsTotalSurface, :WantDestroy, :LockLoadingFallback, :LastUsedFrame, :BakedId, :ContainerFont, :FontLoaderDatas, if private + fieldnames(typeof(x)) + else + () + end...) +end + const ImFontFlags = Cint const ImS8 = Int8 @@ -663,6 +679,14 @@ function Base.setproperty!(x::Ptr{ImGuiStoragePair}, f::Symbol, v) unsafe_store!(getproperty(x, f), v) end +function Base.propertynames(x::ImGuiStoragePair, private::Bool = false) + (:key, :val_i, :val_f, :val_p, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiStoragePair Size::Cint Capacity::Cint @@ -784,6 +808,14 @@ function Base.setproperty!(x::Ptr{ImFontAtlasRectEntry}, f::Symbol, v) end end +function Base.propertynames(x::ImFontAtlasRectEntry, private::Bool = false) + (:TargetIndex, :Generation, :IsUsed, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImFontAtlasRectEntry Size::Cint Capacity::Cint @@ -1558,6 +1590,14 @@ function Base.setproperty!(x::Ptr{ImGuiInputEvent}, f::Symbol, v) unsafe_store!(getproperty(x, f), v) end +function Base.propertynames(x::ImGuiInputEvent, private::Bool = false) + (:Type, :Source, :EventId, :MousePos, :MouseWheel, :MouseButton, :MouseViewport, :Key, :Text, :AppFocused, :AddedByTestEngine, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiInputEvent Size::Cint Capacity::Cint @@ -1957,6 +1997,14 @@ function Base.setproperty!(x::Ptr{ImGuiDockNode}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiDockNode, private::Bool = false) + (:ID, :SharedFlags, :LocalFlags, :LocalFlagsInWindows, :MergedFlags, :State, :ParentNode, :ChildNodes, :Windows, :TabBar, :Pos, :Size, :SizeRef, :SplitAxis, :WindowClass, :LastBgColor, :HostWindow, :VisibleWindow, :CentralNode, :OnlyNodeWithWindows, :CountNodeWithWindows, :LastFrameAlive, :LastFrameActive, :LastFrameFocused, :LastFocusedNodeId, :SelectedTabId, :WantCloseTabId, :RefViewportId, :AuthorityForPos, :AuthorityForSize, :AuthorityForViewport, :IsVisible, :IsFocused, :IsBgDrawnThisFrame, :HasCloseButton, :HasWindowMenuButton, :HasCentralNodeChild, :WantCloseAll, :WantLockSizeOnce, :WantMouseMove, :WantHiddenTabBarUpdate, :WantHiddenTabBarToggle, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImGuiWindow data::NTuple{1224, UInt8} end @@ -2133,6 +2181,14 @@ function Base.setproperty!(x::Ptr{ImGuiWindow}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiWindow, private::Bool = false) + (:Ctx, :Name, :ID, :Flags, :FlagsPreviousFrame, :ChildFlags, :WindowClass, :Viewport, :ViewportId, :ViewportPos, :ViewportAllowPlatformMonitorExtend, :Pos, :Size, :SizeFull, :ContentSize, :ContentSizeIdeal, :ContentSizeExplicit, :WindowPadding, :WindowRounding, :WindowBorderSize, :TitleBarHeight, :MenuBarHeight, :DecoOuterSizeX1, :DecoOuterSizeY1, :DecoOuterSizeX2, :DecoOuterSizeY2, :DecoInnerSizeX1, :DecoInnerSizeY1, :NameBufLen, :MoveId, :TabId, :ChildId, :PopupId, :Scroll, :ScrollMax, :ScrollTarget, :ScrollTargetCenterRatio, :ScrollTargetEdgeSnapDist, :ScrollbarSizes, :ScrollbarX, :ScrollbarY, :ScrollbarXStabilizeEnabled, :ScrollbarXStabilizeToggledHistory, :ViewportOwned, :Active, :WasActive, :WriteAccessed, :Collapsed, :WantCollapseToggle, :SkipItems, :SkipRefresh, :Appearing, :Hidden, :IsFallbackWindow, :IsExplicitChild, :HasCloseButton, :ResizeBorderHovered, :ResizeBorderHeld, :BeginCount, :BeginCountPreviousFrame, :BeginOrderWithinParent, :BeginOrderWithinContext, :FocusOrder, :AutoFitFramesX, :AutoFitFramesY, :AutoFitOnlyGrows, :AutoPosLastDirection, :HiddenFramesCanSkipItems, :HiddenFramesCannotSkipItems, :HiddenFramesForRenderOnly, :DisableInputsFrames, :SetWindowPosAllowFlags, :SetWindowSizeAllowFlags, :SetWindowCollapsedAllowFlags, :SetWindowDockAllowFlags, :SetWindowPosVal, :SetWindowPosPivot, :IDStack, :DC, :OuterRectClipped, :InnerRect, :InnerClipRect, :WorkRect, :ParentWorkRect, :ClipRect, :ContentRegionRect, :HitTestHoleSize, :HitTestHoleOffset, :LastFrameActive, :LastFrameJustFocused, :LastTimeActive, :ItemWidthDefault, :StateStorage, :ColumnsStorage, :FontWindowScale, :FontWindowScaleParents, :FontRefSize, :SettingsOffset, :DrawList, :DrawListInst, :ParentWindow, :ParentWindowInBeginStack, :RootWindow, :RootWindowPopupTree, :RootWindowDockTree, :RootWindowForTitleBarHighlight, :RootWindowForNav, :ParentWindowForFocusRoute, :NavLastChildNavWindow, :NavLastIds, :NavRectRel, :NavPreferredScoringPosRel, :NavRootFocusScopeId, :MemoryDrawListIdxCapacity, :MemoryDrawListVtxCapacity, :MemoryCompacted, :DockIsActive, :DockNodeIsVisible, :DockTabIsVisible, :DockTabWantClose, :DockOrder, :DockStyle, :DockNode, :DockNodeAsHost, :DockId, if private + fieldnames(typeof(x)) + else + () + end...) +end + const ImGuiItemFlags = Cint struct ImGuiLastItemData @@ -2313,6 +2369,14 @@ function Base.setproperty!(x::Ptr{ImGuiStyleMod}, f::Symbol, v) unsafe_store!(getproperty(x, f), v) end +function Base.propertynames(x::ImGuiStyleMod, private::Bool = false) + (:VarIdx, :BackupInt, :BackupFloat, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiStyleMod Size::Cint Capacity::Cint @@ -2799,6 +2863,14 @@ function Base.setproperty!(x::Ptr{ImGuiTableColumn}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiTableColumn, private::Bool = false) + (:Flags, :WidthGiven, :MinX, :MaxX, :WidthRequest, :WidthAuto, :WidthMax, :StretchWeight, :InitStretchWeightOrWidth, :ClipRect, :UserID, :WorkMinX, :WorkMaxX, :ItemWidth, :ContentMaxXFrozen, :ContentMaxXUnfrozen, :ContentMaxXHeadersUsed, :ContentMaxXHeadersIdeal, :NameOffset, :DisplayOrder, :IndexWithinEnabledSet, :PrevEnabledColumn, :NextEnabledColumn, :SortOrder, :DrawChannelCurrent, :DrawChannelFrozen, :DrawChannelUnfrozen, :IsEnabled, :IsUserEnabled, :IsUserEnabledNextFrame, :IsVisibleX, :IsVisibleY, :IsRequestOutput, :IsSkipItems, :IsPreserveWidthAuto, :NavLayerCurrent, :AutoFitQueue, :CannotSkipItemsQueue, :SortDirection, :SortDirectionsAvailCount, :SortDirectionsAvailMask, :SortDirectionsAvailList, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImSpan_ImGuiTableColumn Data::Ptr{ImGuiTableColumn} DataEnd::Ptr{ImGuiTableColumn} @@ -3027,6 +3099,14 @@ function Base.setproperty!(x::Ptr{ImGuiTable}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiTable, private::Bool = false) + (:ID, :Flags, :RawData, :TempData, :Columns, :DisplayOrderToIndex, :RowCellData, :EnabledMaskByDisplayOrder, :EnabledMaskByIndex, :VisibleMaskByIndex, :SettingsLoadedFlags, :SettingsOffset, :LastFrameActive, :ColumnsCount, :CurrentRow, :CurrentColumn, :InstanceCurrent, :InstanceInteracted, :RowPosY1, :RowPosY2, :RowMinHeight, :RowCellPaddingY, :RowTextBaseline, :RowIndentOffsetX, :RowFlags, :LastRowFlags, :RowBgColorCounter, :RowBgColor, :BorderColorStrong, :BorderColorLight, :BorderX1, :BorderX2, :HostIndentX, :MinColumnWidth, :OuterPaddingX, :CellPaddingX, :CellSpacingX1, :CellSpacingX2, :InnerWidth, :ColumnsGivenWidth, :ColumnsAutoFitWidth, :ColumnsStretchSumWeights, :ResizedColumnNextWidth, :ResizeLockMinContentsX2, :RefScale, :AngledHeadersHeight, :AngledHeadersSlope, :OuterRect, :InnerRect, :WorkRect, :InnerClipRect, :BgClipRect, :Bg0ClipRectForDrawCmd, :Bg2ClipRectForDrawCmd, :HostClipRect, :HostBackupInnerClipRect, :OuterWindow, :InnerWindow, :ColumnsNames, :DrawSplitter, :InstanceDataFirst, :InstanceDataExtra, :SortSpecsSingle, :SortSpecsMulti, :SortSpecs, :SortSpecsCount, :ColumnsEnabledCount, :ColumnsEnabledFixedCount, :DeclColumnsCount, :AngledHeadersCount, :HoveredColumnBody, :HoveredColumnBorder, :HighlightColumnHeader, :AutoFitSingleColumn, :ResizedColumn, :LastResizedColumn, :HeldHeaderColumn, :ReorderColumn, :ReorderColumnDir, :LeftMostEnabledColumn, :RightMostEnabledColumn, :LeftMostStretchedColumn, :RightMostStretchedColumn, :ContextPopupColumn, :FreezeRowsRequest, :FreezeRowsCount, :FreezeColumnsRequest, :FreezeColumnsCount, :RowCellDataCurrent, :DummyDrawChannel, :Bg2DrawChannelCurrent, :Bg2DrawChannelUnfrozen, :NavLayer, :IsLayoutLocked, :IsInsideRow, :IsInitializing, :IsSortSpecsDirty, :IsUsingHeaders, :IsContextPopupOpen, :DisableDefaultContextMenu, :IsSettingsRequestLoad, :IsSettingsDirty, :IsDefaultDisplayOrder, :IsResetAllRequest, :IsResetDisplayOrderRequest, :IsUnfrozenRows, :IsDefaultSizingPolicy, :IsActiveIdAliveBeforeTable, :IsActiveIdInTable, :HasScrollbarYCurr, :HasScrollbarYPrev, :MemoryCompacted, :HostSkipItems, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiTableTempData Size::Cint Capacity::Cint @@ -3150,6 +3230,14 @@ function Base.setproperty!(x::Ptr{ImGuiBoxSelectState}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiBoxSelectState, private::Bool = false) + (:ID, :IsActive, :IsStarting, :IsStartedFromVoid, :IsStartedSetNavIdOnce, :RequestClear, :KeyMods, :StartPosRel, :EndPosRel, :ScrollAccum, :Window, :UnclipMode, :UnclipRect, :BoxSelectRectPrev, :BoxSelectRectCurr, if private + fieldnames(typeof(x)) + else + () + end...) +end + @cenum ImGuiSelectionRequestType::UInt32 begin ImGuiSelectionRequestType_None = 0 ImGuiSelectionRequestType_SetAll = 1 @@ -3481,6 +3569,14 @@ function Base.setproperty!(x::Ptr{ImGuiStackLevelInfo}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiStackLevelInfo, private::Bool = false) + (:ID, :QueryFrameCount, :QuerySuccess, :DataType, :Desc, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiStackLevelInfo Size::Cint Capacity::Cint @@ -3879,6 +3975,14 @@ function Base.setproperty!(x::Ptr{ImGuiContext}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiContext, private::Bool = false) + (:Initialized, :IO, :PlatformIO, :Style, :ConfigFlagsCurrFrame, :ConfigFlagsLastFrame, :FontAtlases, :Font, :FontBaked, :FontSize, :FontSizeBase, :FontBakedScale, :FontRasterizerDensity, :CurrentDpiScale, :DrawListSharedData, :Time, :FrameCount, :FrameCountEnded, :FrameCountPlatformEnded, :FrameCountRendered, :WithinEndChildID, :WithinFrameScope, :WithinFrameScopeWithImplicitWindow, :GcCompactAll, :TestEngineHookItems, :TestEngine, :ContextName, :InputEventsQueue, :InputEventsTrail, :InputEventsNextMouseSource, :InputEventsNextEventId, :Windows, :WindowsFocusOrder, :WindowsTempSortBuffer, :CurrentWindowStack, :WindowsById, :WindowsActiveCount, :WindowsBorderHoverPadding, :DebugBreakInWindow, :CurrentWindow, :HoveredWindow, :HoveredWindowUnderMovingWindow, :HoveredWindowBeforeClear, :MovingWindow, :WheelingWindow, :WheelingWindowRefMousePos, :WheelingWindowStartFrame, :WheelingWindowScrolledFrame, :WheelingWindowReleaseTimer, :WheelingWindowWheelRemainder, :WheelingAxisAvg, :DebugDrawIdConflictsId, :DebugHookIdInfo, :HoveredId, :HoveredIdPreviousFrame, :HoveredIdPreviousFrameItemCount, :HoveredIdTimer, :HoveredIdNotActiveTimer, :HoveredIdAllowOverlap, :HoveredIdIsDisabled, :ItemUnclipByLog, :ActiveId, :ActiveIdIsAlive, :ActiveIdTimer, :ActiveIdIsJustActivated, :ActiveIdAllowOverlap, :ActiveIdNoClearOnFocusLoss, :ActiveIdHasBeenPressedBefore, :ActiveIdHasBeenEditedBefore, :ActiveIdHasBeenEditedThisFrame, :ActiveIdFromShortcut, :ActiveIdMouseButton, :ActiveIdClickOffset, :ActiveIdWindow, :ActiveIdSource, :ActiveIdPreviousFrame, :DeactivatedItemData, :ActiveIdValueOnActivation, :LastActiveId, :LastActiveIdTimer, :LastKeyModsChangeTime, :LastKeyModsChangeFromNoneTime, :LastKeyboardKeyPressTime, :KeysMayBeCharInput, :KeysOwnerData, :KeysRoutingTable, :ActiveIdUsingNavDirMask, :ActiveIdUsingAllKeyboardKeys, :DebugBreakInShortcutRouting, :CurrentFocusScopeId, :CurrentItemFlags, :DebugLocateId, :NextItemData, :LastItemData, :NextWindowData, :DebugShowGroupRects, :DebugFlashStyleColorIdx, :ColorStack, :StyleVarStack, :FontStack, :FocusScopeStack, :ItemFlagsStack, :GroupStack, :OpenPopupStack, :BeginPopupStack, :TreeNodeStack, :Viewports, :CurrentViewport, :MouseViewport, :MouseLastHoveredViewport, :PlatformLastFocusedViewportId, :FallbackMonitor, :PlatformMonitorsFullWorkRect, :ViewportCreatedCount, :PlatformWindowsCreatedCount, :ViewportFocusedStampCount, :NavCursorVisible, :NavHighlightItemUnderNav, :NavMousePosDirty, :NavIdIsAlive, :NavId, :NavWindow, :NavFocusScopeId, :NavLayer, :NavActivateId, :NavActivateDownId, :NavActivatePressedId, :NavActivateFlags, :NavFocusRoute, :NavHighlightActivatedId, :NavHighlightActivatedTimer, :NavNextActivateId, :NavNextActivateFlags, :NavInputSource, :NavLastValidSelectionUserData, :NavCursorHideFrames, :NavAnyRequest, :NavInitRequest, :NavInitRequestFromMove, :NavInitResult, :NavMoveSubmitted, :NavMoveScoringItems, :NavMoveForwardToNextFrame, :NavMoveFlags, :NavMoveScrollFlags, :NavMoveKeyMods, :NavMoveDir, :NavMoveDirForDebug, :NavMoveClipDir, :NavScoringRect, :NavScoringNoClipRect, :NavScoringDebugCount, :NavTabbingDir, :NavTabbingCounter, :NavMoveResultLocal, :NavMoveResultLocalVisible, :NavMoveResultOther, :NavTabbingResultFirst, :NavJustMovedFromFocusScopeId, :NavJustMovedToId, :NavJustMovedToFocusScopeId, :NavJustMovedToKeyMods, :NavJustMovedToIsTabbing, :NavJustMovedToHasSelectionData, :ConfigNavWindowingWithGamepad, :ConfigNavWindowingKeyNext, :ConfigNavWindowingKeyPrev, :NavWindowingTarget, :NavWindowingTargetAnim, :NavWindowingListWindow, :NavWindowingTimer, :NavWindowingHighlightAlpha, :NavWindowingInputSource, :NavWindowingToggleLayer, :NavWindowingToggleKey, :NavWindowingAccumDeltaPos, :NavWindowingAccumDeltaSize, :DimBgRatio, :DragDropActive, :DragDropWithinSource, :DragDropWithinTarget, :DragDropSourceFlags, :DragDropSourceFrameCount, :DragDropMouseButton, :DragDropPayload, :DragDropTargetRect, :DragDropTargetClipRect, :DragDropTargetId, :DragDropAcceptFlags, :DragDropAcceptIdCurrRectSurface, :DragDropAcceptIdCurr, :DragDropAcceptIdPrev, :DragDropAcceptFrameCount, :DragDropHoldJustPressedId, :DragDropPayloadBufHeap, :DragDropPayloadBufLocal, :ClipperTempDataStacked, :ClipperTempData, :CurrentTable, :DebugBreakInTable, :TablesTempDataStacked, :TablesTempData, :Tables, :TablesLastTimeActive, :DrawChannelsTempMergeBuffer, :CurrentTabBar, :TabBars, :CurrentTabBarStack, :ShrinkWidthBuffer, :BoxSelectState, :CurrentMultiSelect, :MultiSelectTempDataStacked, :MultiSelectTempData, :MultiSelectStorage, :HoverItemDelayId, :HoverItemDelayIdPreviousFrame, :HoverItemDelayTimer, :HoverItemDelayClearTimer, :HoverItemUnlockedStationaryId, :HoverWindowUnlockedStationaryId, :MouseCursor, :MouseStationaryTimer, :MouseLastValidPos, :InputTextState, :InputTextDeactivatedState, :InputTextPasswordFontBackupBaked, :InputTextPasswordFontBackupFlags, :TempInputId, :DataTypeZeroValue, :BeginMenuDepth, :BeginComboDepth, :ColorEditOptions, :ColorEditCurrentID, :ColorEditSavedID, :ColorEditSavedHue, :ColorEditSavedSat, :ColorEditSavedColor, :ColorPickerRef, :ComboPreviewData, :WindowResizeBorderExpectedRect, :WindowResizeRelativeMode, :ScrollbarSeekMode, :ScrollbarClickDeltaToGrabCenter, :SliderGrabClickOffset, :SliderCurrentAccum, :SliderCurrentAccumDirty, :DragCurrentAccumDirty, :DragCurrentAccum, :DragSpeedDefaultRatio, :DisabledAlphaBackup, :DisabledStackSize, :TooltipOverrideCount, :TooltipPreviousWindow, :ClipboardHandlerData, :MenusIdSubmittedThisFrame, :TypingSelectState, :PlatformImeData, :PlatformImeDataPrev, :UserTextures, :DockContext, :DockNodeWindowMenuHandler, :SettingsLoaded, :SettingsDirtyTimer, :SettingsIniData, :SettingsHandlers, :SettingsWindows, :SettingsTables, :Hooks, :HookIdNext, :LocalizationTable, :LogEnabled, :LogFlags, :LogWindow, :LogFile, :LogBuffer, :LogNextPrefix, :LogNextSuffix, :LogLinePosY, :LogLineFirstItem, :LogDepthRef, :LogDepthToExpand, :LogDepthToExpandDefault, :ErrorCallback, :ErrorCallbackUserData, :ErrorTooltipLockedPos, :ErrorFirst, :ErrorCountCurrentFrame, :StackSizesInNewFrame, :StackSizesInBeginForCurrentWindow, :DebugDrawIdConflictsCount, :DebugLogFlags, :DebugLogBuf, :DebugLogIndex, :DebugLogSkippedErrors, :DebugLogAutoDisableFlags, :DebugLogAutoDisableFrames, :DebugLocateFrames, :DebugBreakInLocateId, :DebugBreakKeyChord, :DebugBeginReturnValueCullDepth, :DebugItemPickerActive, :DebugItemPickerMouseButton, :DebugItemPickerBreakId, :DebugFlashStyleColorTime, :DebugFlashStyleColorBackup, :DebugMetricsConfig, :DebugIDStackTool, :DebugAllocInfo, :DebugHoveredDockNode, :FramerateSecPerFrame, :FramerateSecPerFrameIdx, :FramerateSecPerFrameCount, :FramerateSecPerFrameAccum, :WantCaptureMouseNextFrame, :WantCaptureKeyboardNextFrame, :WantTextInputNextFrame, :TempBuffer, :TempKeychordName, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImGuiInputTextCallbackData Ctx::Ptr{ImGuiContext} EventFlag::ImGuiInputTextFlags @@ -4051,6 +4155,14 @@ function Base.setproperty!(x::Ptr{ImGuiStyleVarInfo}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiStyleVarInfo, private::Bool = false) + (:Count, :DataType, :Offset, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImGuiTableSettings ID::ImGuiID SaveFlags::ImGuiTableFlags @@ -5202,6 +5314,14 @@ function Base.setproperty!(x::Ptr{ImGuiTableColumnSettings}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiTableColumnSettings, private::Bool = false) + (:WidthOrWeight, :UserID, :Index, :DisplayOrder, :SortOrder, :SortDirection, :IsEnabled, :IsStretch, if private + fieldnames(typeof(x)) + else + () + end...) +end + function ImVec2_ImVec2_Nil() ccall((:ImVec2_ImVec2_Nil, libcimgui), Ptr{ImVec2}, ()) end diff --git a/lib/x86_64-linux-gnu.jl b/lib/x86_64-linux-gnu.jl index 90bb1c4..c95a752 100644 --- a/lib/x86_64-linux-gnu.jl +++ b/lib/x86_64-linux-gnu.jl @@ -1,4 +1,4 @@ -using CEnum +using CEnum: CEnum, @cenum to_c_type(t::Type) = t to_c_type_pairs(va_list) = map(enumerate(to_c_type.(va_list))) do (ind, type) @@ -474,6 +474,14 @@ function Base.setproperty!(x::Ptr{ImFontGlyph}, f::Symbol, v) end end +function Base.propertynames(x::ImFontGlyph, private::Bool = false) + (:Colored, :Visible, :SourceIdx, :Codepoint, :AdvanceX, :X0, :Y0, :X1, :Y1, :U0, :V0, :U1, :V1, :PackId, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImFontGlyph Size::Cint Capacity::Cint @@ -547,6 +555,14 @@ function Base.setproperty!(x::Ptr{ImFontBaked}, f::Symbol, v) end end +function Base.propertynames(x::ImFontBaked, private::Bool = false) + (:IndexAdvanceX, :FallbackAdvanceX, :Size, :RasterizerDensity, :IndexLookup, :Glyphs, :FallbackGlyphIndex, :Ascent, :Descent, :MetricsTotalSurface, :WantDestroy, :LockLoadingFallback, :LastUsedFrame, :BakedId, :ContainerFont, :FontLoaderDatas, if private + fieldnames(typeof(x)) + else + () + end...) +end + const ImFontFlags = Cint const ImS8 = Int8 @@ -663,6 +679,14 @@ function Base.setproperty!(x::Ptr{ImGuiStoragePair}, f::Symbol, v) unsafe_store!(getproperty(x, f), v) end +function Base.propertynames(x::ImGuiStoragePair, private::Bool = false) + (:key, :val_i, :val_f, :val_p, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiStoragePair Size::Cint Capacity::Cint @@ -784,6 +808,14 @@ function Base.setproperty!(x::Ptr{ImFontAtlasRectEntry}, f::Symbol, v) end end +function Base.propertynames(x::ImFontAtlasRectEntry, private::Bool = false) + (:TargetIndex, :Generation, :IsUsed, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImFontAtlasRectEntry Size::Cint Capacity::Cint @@ -1558,6 +1590,14 @@ function Base.setproperty!(x::Ptr{ImGuiInputEvent}, f::Symbol, v) unsafe_store!(getproperty(x, f), v) end +function Base.propertynames(x::ImGuiInputEvent, private::Bool = false) + (:Type, :Source, :EventId, :MousePos, :MouseWheel, :MouseButton, :MouseViewport, :Key, :Text, :AppFocused, :AddedByTestEngine, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiInputEvent Size::Cint Capacity::Cint @@ -1957,6 +1997,14 @@ function Base.setproperty!(x::Ptr{ImGuiDockNode}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiDockNode, private::Bool = false) + (:ID, :SharedFlags, :LocalFlags, :LocalFlagsInWindows, :MergedFlags, :State, :ParentNode, :ChildNodes, :Windows, :TabBar, :Pos, :Size, :SizeRef, :SplitAxis, :WindowClass, :LastBgColor, :HostWindow, :VisibleWindow, :CentralNode, :OnlyNodeWithWindows, :CountNodeWithWindows, :LastFrameAlive, :LastFrameActive, :LastFrameFocused, :LastFocusedNodeId, :SelectedTabId, :WantCloseTabId, :RefViewportId, :AuthorityForPos, :AuthorityForSize, :AuthorityForViewport, :IsVisible, :IsFocused, :IsBgDrawnThisFrame, :HasCloseButton, :HasWindowMenuButton, :HasCentralNodeChild, :WantCloseAll, :WantLockSizeOnce, :WantMouseMove, :WantHiddenTabBarUpdate, :WantHiddenTabBarToggle, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImGuiWindow data::NTuple{1224, UInt8} end @@ -2133,6 +2181,14 @@ function Base.setproperty!(x::Ptr{ImGuiWindow}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiWindow, private::Bool = false) + (:Ctx, :Name, :ID, :Flags, :FlagsPreviousFrame, :ChildFlags, :WindowClass, :Viewport, :ViewportId, :ViewportPos, :ViewportAllowPlatformMonitorExtend, :Pos, :Size, :SizeFull, :ContentSize, :ContentSizeIdeal, :ContentSizeExplicit, :WindowPadding, :WindowRounding, :WindowBorderSize, :TitleBarHeight, :MenuBarHeight, :DecoOuterSizeX1, :DecoOuterSizeY1, :DecoOuterSizeX2, :DecoOuterSizeY2, :DecoInnerSizeX1, :DecoInnerSizeY1, :NameBufLen, :MoveId, :TabId, :ChildId, :PopupId, :Scroll, :ScrollMax, :ScrollTarget, :ScrollTargetCenterRatio, :ScrollTargetEdgeSnapDist, :ScrollbarSizes, :ScrollbarX, :ScrollbarY, :ScrollbarXStabilizeEnabled, :ScrollbarXStabilizeToggledHistory, :ViewportOwned, :Active, :WasActive, :WriteAccessed, :Collapsed, :WantCollapseToggle, :SkipItems, :SkipRefresh, :Appearing, :Hidden, :IsFallbackWindow, :IsExplicitChild, :HasCloseButton, :ResizeBorderHovered, :ResizeBorderHeld, :BeginCount, :BeginCountPreviousFrame, :BeginOrderWithinParent, :BeginOrderWithinContext, :FocusOrder, :AutoFitFramesX, :AutoFitFramesY, :AutoFitOnlyGrows, :AutoPosLastDirection, :HiddenFramesCanSkipItems, :HiddenFramesCannotSkipItems, :HiddenFramesForRenderOnly, :DisableInputsFrames, :SetWindowPosAllowFlags, :SetWindowSizeAllowFlags, :SetWindowCollapsedAllowFlags, :SetWindowDockAllowFlags, :SetWindowPosVal, :SetWindowPosPivot, :IDStack, :DC, :OuterRectClipped, :InnerRect, :InnerClipRect, :WorkRect, :ParentWorkRect, :ClipRect, :ContentRegionRect, :HitTestHoleSize, :HitTestHoleOffset, :LastFrameActive, :LastFrameJustFocused, :LastTimeActive, :ItemWidthDefault, :StateStorage, :ColumnsStorage, :FontWindowScale, :FontWindowScaleParents, :FontRefSize, :SettingsOffset, :DrawList, :DrawListInst, :ParentWindow, :ParentWindowInBeginStack, :RootWindow, :RootWindowPopupTree, :RootWindowDockTree, :RootWindowForTitleBarHighlight, :RootWindowForNav, :ParentWindowForFocusRoute, :NavLastChildNavWindow, :NavLastIds, :NavRectRel, :NavPreferredScoringPosRel, :NavRootFocusScopeId, :MemoryDrawListIdxCapacity, :MemoryDrawListVtxCapacity, :MemoryCompacted, :DockIsActive, :DockNodeIsVisible, :DockTabIsVisible, :DockTabWantClose, :DockOrder, :DockStyle, :DockNode, :DockNodeAsHost, :DockId, if private + fieldnames(typeof(x)) + else + () + end...) +end + const ImGuiItemFlags = Cint struct ImGuiLastItemData @@ -2313,6 +2369,14 @@ function Base.setproperty!(x::Ptr{ImGuiStyleMod}, f::Symbol, v) unsafe_store!(getproperty(x, f), v) end +function Base.propertynames(x::ImGuiStyleMod, private::Bool = false) + (:VarIdx, :BackupInt, :BackupFloat, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiStyleMod Size::Cint Capacity::Cint @@ -2799,6 +2863,14 @@ function Base.setproperty!(x::Ptr{ImGuiTableColumn}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiTableColumn, private::Bool = false) + (:Flags, :WidthGiven, :MinX, :MaxX, :WidthRequest, :WidthAuto, :WidthMax, :StretchWeight, :InitStretchWeightOrWidth, :ClipRect, :UserID, :WorkMinX, :WorkMaxX, :ItemWidth, :ContentMaxXFrozen, :ContentMaxXUnfrozen, :ContentMaxXHeadersUsed, :ContentMaxXHeadersIdeal, :NameOffset, :DisplayOrder, :IndexWithinEnabledSet, :PrevEnabledColumn, :NextEnabledColumn, :SortOrder, :DrawChannelCurrent, :DrawChannelFrozen, :DrawChannelUnfrozen, :IsEnabled, :IsUserEnabled, :IsUserEnabledNextFrame, :IsVisibleX, :IsVisibleY, :IsRequestOutput, :IsSkipItems, :IsPreserveWidthAuto, :NavLayerCurrent, :AutoFitQueue, :CannotSkipItemsQueue, :SortDirection, :SortDirectionsAvailCount, :SortDirectionsAvailMask, :SortDirectionsAvailList, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImSpan_ImGuiTableColumn Data::Ptr{ImGuiTableColumn} DataEnd::Ptr{ImGuiTableColumn} @@ -3027,6 +3099,14 @@ function Base.setproperty!(x::Ptr{ImGuiTable}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiTable, private::Bool = false) + (:ID, :Flags, :RawData, :TempData, :Columns, :DisplayOrderToIndex, :RowCellData, :EnabledMaskByDisplayOrder, :EnabledMaskByIndex, :VisibleMaskByIndex, :SettingsLoadedFlags, :SettingsOffset, :LastFrameActive, :ColumnsCount, :CurrentRow, :CurrentColumn, :InstanceCurrent, :InstanceInteracted, :RowPosY1, :RowPosY2, :RowMinHeight, :RowCellPaddingY, :RowTextBaseline, :RowIndentOffsetX, :RowFlags, :LastRowFlags, :RowBgColorCounter, :RowBgColor, :BorderColorStrong, :BorderColorLight, :BorderX1, :BorderX2, :HostIndentX, :MinColumnWidth, :OuterPaddingX, :CellPaddingX, :CellSpacingX1, :CellSpacingX2, :InnerWidth, :ColumnsGivenWidth, :ColumnsAutoFitWidth, :ColumnsStretchSumWeights, :ResizedColumnNextWidth, :ResizeLockMinContentsX2, :RefScale, :AngledHeadersHeight, :AngledHeadersSlope, :OuterRect, :InnerRect, :WorkRect, :InnerClipRect, :BgClipRect, :Bg0ClipRectForDrawCmd, :Bg2ClipRectForDrawCmd, :HostClipRect, :HostBackupInnerClipRect, :OuterWindow, :InnerWindow, :ColumnsNames, :DrawSplitter, :InstanceDataFirst, :InstanceDataExtra, :SortSpecsSingle, :SortSpecsMulti, :SortSpecs, :SortSpecsCount, :ColumnsEnabledCount, :ColumnsEnabledFixedCount, :DeclColumnsCount, :AngledHeadersCount, :HoveredColumnBody, :HoveredColumnBorder, :HighlightColumnHeader, :AutoFitSingleColumn, :ResizedColumn, :LastResizedColumn, :HeldHeaderColumn, :ReorderColumn, :ReorderColumnDir, :LeftMostEnabledColumn, :RightMostEnabledColumn, :LeftMostStretchedColumn, :RightMostStretchedColumn, :ContextPopupColumn, :FreezeRowsRequest, :FreezeRowsCount, :FreezeColumnsRequest, :FreezeColumnsCount, :RowCellDataCurrent, :DummyDrawChannel, :Bg2DrawChannelCurrent, :Bg2DrawChannelUnfrozen, :NavLayer, :IsLayoutLocked, :IsInsideRow, :IsInitializing, :IsSortSpecsDirty, :IsUsingHeaders, :IsContextPopupOpen, :DisableDefaultContextMenu, :IsSettingsRequestLoad, :IsSettingsDirty, :IsDefaultDisplayOrder, :IsResetAllRequest, :IsResetDisplayOrderRequest, :IsUnfrozenRows, :IsDefaultSizingPolicy, :IsActiveIdAliveBeforeTable, :IsActiveIdInTable, :HasScrollbarYCurr, :HasScrollbarYPrev, :MemoryCompacted, :HostSkipItems, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiTableTempData Size::Cint Capacity::Cint @@ -3150,6 +3230,14 @@ function Base.setproperty!(x::Ptr{ImGuiBoxSelectState}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiBoxSelectState, private::Bool = false) + (:ID, :IsActive, :IsStarting, :IsStartedFromVoid, :IsStartedSetNavIdOnce, :RequestClear, :KeyMods, :StartPosRel, :EndPosRel, :ScrollAccum, :Window, :UnclipMode, :UnclipRect, :BoxSelectRectPrev, :BoxSelectRectCurr, if private + fieldnames(typeof(x)) + else + () + end...) +end + @cenum ImGuiSelectionRequestType::UInt32 begin ImGuiSelectionRequestType_None = 0 ImGuiSelectionRequestType_SetAll = 1 @@ -3481,6 +3569,14 @@ function Base.setproperty!(x::Ptr{ImGuiStackLevelInfo}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiStackLevelInfo, private::Bool = false) + (:ID, :QueryFrameCount, :QuerySuccess, :DataType, :Desc, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiStackLevelInfo Size::Cint Capacity::Cint @@ -3879,6 +3975,14 @@ function Base.setproperty!(x::Ptr{ImGuiContext}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiContext, private::Bool = false) + (:Initialized, :IO, :PlatformIO, :Style, :ConfigFlagsCurrFrame, :ConfigFlagsLastFrame, :FontAtlases, :Font, :FontBaked, :FontSize, :FontSizeBase, :FontBakedScale, :FontRasterizerDensity, :CurrentDpiScale, :DrawListSharedData, :Time, :FrameCount, :FrameCountEnded, :FrameCountPlatformEnded, :FrameCountRendered, :WithinEndChildID, :WithinFrameScope, :WithinFrameScopeWithImplicitWindow, :GcCompactAll, :TestEngineHookItems, :TestEngine, :ContextName, :InputEventsQueue, :InputEventsTrail, :InputEventsNextMouseSource, :InputEventsNextEventId, :Windows, :WindowsFocusOrder, :WindowsTempSortBuffer, :CurrentWindowStack, :WindowsById, :WindowsActiveCount, :WindowsBorderHoverPadding, :DebugBreakInWindow, :CurrentWindow, :HoveredWindow, :HoveredWindowUnderMovingWindow, :HoveredWindowBeforeClear, :MovingWindow, :WheelingWindow, :WheelingWindowRefMousePos, :WheelingWindowStartFrame, :WheelingWindowScrolledFrame, :WheelingWindowReleaseTimer, :WheelingWindowWheelRemainder, :WheelingAxisAvg, :DebugDrawIdConflictsId, :DebugHookIdInfo, :HoveredId, :HoveredIdPreviousFrame, :HoveredIdPreviousFrameItemCount, :HoveredIdTimer, :HoveredIdNotActiveTimer, :HoveredIdAllowOverlap, :HoveredIdIsDisabled, :ItemUnclipByLog, :ActiveId, :ActiveIdIsAlive, :ActiveIdTimer, :ActiveIdIsJustActivated, :ActiveIdAllowOverlap, :ActiveIdNoClearOnFocusLoss, :ActiveIdHasBeenPressedBefore, :ActiveIdHasBeenEditedBefore, :ActiveIdHasBeenEditedThisFrame, :ActiveIdFromShortcut, :ActiveIdMouseButton, :ActiveIdClickOffset, :ActiveIdWindow, :ActiveIdSource, :ActiveIdPreviousFrame, :DeactivatedItemData, :ActiveIdValueOnActivation, :LastActiveId, :LastActiveIdTimer, :LastKeyModsChangeTime, :LastKeyModsChangeFromNoneTime, :LastKeyboardKeyPressTime, :KeysMayBeCharInput, :KeysOwnerData, :KeysRoutingTable, :ActiveIdUsingNavDirMask, :ActiveIdUsingAllKeyboardKeys, :DebugBreakInShortcutRouting, :CurrentFocusScopeId, :CurrentItemFlags, :DebugLocateId, :NextItemData, :LastItemData, :NextWindowData, :DebugShowGroupRects, :DebugFlashStyleColorIdx, :ColorStack, :StyleVarStack, :FontStack, :FocusScopeStack, :ItemFlagsStack, :GroupStack, :OpenPopupStack, :BeginPopupStack, :TreeNodeStack, :Viewports, :CurrentViewport, :MouseViewport, :MouseLastHoveredViewport, :PlatformLastFocusedViewportId, :FallbackMonitor, :PlatformMonitorsFullWorkRect, :ViewportCreatedCount, :PlatformWindowsCreatedCount, :ViewportFocusedStampCount, :NavCursorVisible, :NavHighlightItemUnderNav, :NavMousePosDirty, :NavIdIsAlive, :NavId, :NavWindow, :NavFocusScopeId, :NavLayer, :NavActivateId, :NavActivateDownId, :NavActivatePressedId, :NavActivateFlags, :NavFocusRoute, :NavHighlightActivatedId, :NavHighlightActivatedTimer, :NavNextActivateId, :NavNextActivateFlags, :NavInputSource, :NavLastValidSelectionUserData, :NavCursorHideFrames, :NavAnyRequest, :NavInitRequest, :NavInitRequestFromMove, :NavInitResult, :NavMoveSubmitted, :NavMoveScoringItems, :NavMoveForwardToNextFrame, :NavMoveFlags, :NavMoveScrollFlags, :NavMoveKeyMods, :NavMoveDir, :NavMoveDirForDebug, :NavMoveClipDir, :NavScoringRect, :NavScoringNoClipRect, :NavScoringDebugCount, :NavTabbingDir, :NavTabbingCounter, :NavMoveResultLocal, :NavMoveResultLocalVisible, :NavMoveResultOther, :NavTabbingResultFirst, :NavJustMovedFromFocusScopeId, :NavJustMovedToId, :NavJustMovedToFocusScopeId, :NavJustMovedToKeyMods, :NavJustMovedToIsTabbing, :NavJustMovedToHasSelectionData, :ConfigNavWindowingWithGamepad, :ConfigNavWindowingKeyNext, :ConfigNavWindowingKeyPrev, :NavWindowingTarget, :NavWindowingTargetAnim, :NavWindowingListWindow, :NavWindowingTimer, :NavWindowingHighlightAlpha, :NavWindowingInputSource, :NavWindowingToggleLayer, :NavWindowingToggleKey, :NavWindowingAccumDeltaPos, :NavWindowingAccumDeltaSize, :DimBgRatio, :DragDropActive, :DragDropWithinSource, :DragDropWithinTarget, :DragDropSourceFlags, :DragDropSourceFrameCount, :DragDropMouseButton, :DragDropPayload, :DragDropTargetRect, :DragDropTargetClipRect, :DragDropTargetId, :DragDropAcceptFlags, :DragDropAcceptIdCurrRectSurface, :DragDropAcceptIdCurr, :DragDropAcceptIdPrev, :DragDropAcceptFrameCount, :DragDropHoldJustPressedId, :DragDropPayloadBufHeap, :DragDropPayloadBufLocal, :ClipperTempDataStacked, :ClipperTempData, :CurrentTable, :DebugBreakInTable, :TablesTempDataStacked, :TablesTempData, :Tables, :TablesLastTimeActive, :DrawChannelsTempMergeBuffer, :CurrentTabBar, :TabBars, :CurrentTabBarStack, :ShrinkWidthBuffer, :BoxSelectState, :CurrentMultiSelect, :MultiSelectTempDataStacked, :MultiSelectTempData, :MultiSelectStorage, :HoverItemDelayId, :HoverItemDelayIdPreviousFrame, :HoverItemDelayTimer, :HoverItemDelayClearTimer, :HoverItemUnlockedStationaryId, :HoverWindowUnlockedStationaryId, :MouseCursor, :MouseStationaryTimer, :MouseLastValidPos, :InputTextState, :InputTextDeactivatedState, :InputTextPasswordFontBackupBaked, :InputTextPasswordFontBackupFlags, :TempInputId, :DataTypeZeroValue, :BeginMenuDepth, :BeginComboDepth, :ColorEditOptions, :ColorEditCurrentID, :ColorEditSavedID, :ColorEditSavedHue, :ColorEditSavedSat, :ColorEditSavedColor, :ColorPickerRef, :ComboPreviewData, :WindowResizeBorderExpectedRect, :WindowResizeRelativeMode, :ScrollbarSeekMode, :ScrollbarClickDeltaToGrabCenter, :SliderGrabClickOffset, :SliderCurrentAccum, :SliderCurrentAccumDirty, :DragCurrentAccumDirty, :DragCurrentAccum, :DragSpeedDefaultRatio, :DisabledAlphaBackup, :DisabledStackSize, :TooltipOverrideCount, :TooltipPreviousWindow, :ClipboardHandlerData, :MenusIdSubmittedThisFrame, :TypingSelectState, :PlatformImeData, :PlatformImeDataPrev, :UserTextures, :DockContext, :DockNodeWindowMenuHandler, :SettingsLoaded, :SettingsDirtyTimer, :SettingsIniData, :SettingsHandlers, :SettingsWindows, :SettingsTables, :Hooks, :HookIdNext, :LocalizationTable, :LogEnabled, :LogFlags, :LogWindow, :LogFile, :LogBuffer, :LogNextPrefix, :LogNextSuffix, :LogLinePosY, :LogLineFirstItem, :LogDepthRef, :LogDepthToExpand, :LogDepthToExpandDefault, :ErrorCallback, :ErrorCallbackUserData, :ErrorTooltipLockedPos, :ErrorFirst, :ErrorCountCurrentFrame, :StackSizesInNewFrame, :StackSizesInBeginForCurrentWindow, :DebugDrawIdConflictsCount, :DebugLogFlags, :DebugLogBuf, :DebugLogIndex, :DebugLogSkippedErrors, :DebugLogAutoDisableFlags, :DebugLogAutoDisableFrames, :DebugLocateFrames, :DebugBreakInLocateId, :DebugBreakKeyChord, :DebugBeginReturnValueCullDepth, :DebugItemPickerActive, :DebugItemPickerMouseButton, :DebugItemPickerBreakId, :DebugFlashStyleColorTime, :DebugFlashStyleColorBackup, :DebugMetricsConfig, :DebugIDStackTool, :DebugAllocInfo, :DebugHoveredDockNode, :FramerateSecPerFrame, :FramerateSecPerFrameIdx, :FramerateSecPerFrameCount, :FramerateSecPerFrameAccum, :WantCaptureMouseNextFrame, :WantCaptureKeyboardNextFrame, :WantTextInputNextFrame, :TempBuffer, :TempKeychordName, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImGuiInputTextCallbackData Ctx::Ptr{ImGuiContext} EventFlag::ImGuiInputTextFlags @@ -4051,6 +4155,14 @@ function Base.setproperty!(x::Ptr{ImGuiStyleVarInfo}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiStyleVarInfo, private::Bool = false) + (:Count, :DataType, :Offset, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImGuiTableSettings ID::ImGuiID SaveFlags::ImGuiTableFlags @@ -5202,6 +5314,14 @@ function Base.setproperty!(x::Ptr{ImGuiTableColumnSettings}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiTableColumnSettings, private::Bool = false) + (:WidthOrWeight, :UserID, :Index, :DisplayOrder, :SortOrder, :SortDirection, :IsEnabled, :IsStretch, if private + fieldnames(typeof(x)) + else + () + end...) +end + function ImVec2_ImVec2_Nil() ccall((:ImVec2_ImVec2_Nil, libcimgui), Ptr{ImVec2}, ()) end diff --git a/lib/x86_64-linux-musl.jl b/lib/x86_64-linux-musl.jl index eec4f73..7e6979d 100644 --- a/lib/x86_64-linux-musl.jl +++ b/lib/x86_64-linux-musl.jl @@ -1,4 +1,4 @@ -using CEnum +using CEnum: CEnum, @cenum to_c_type(t::Type) = t to_c_type_pairs(va_list) = map(enumerate(to_c_type.(va_list))) do (ind, type) @@ -472,6 +472,14 @@ function Base.setproperty!(x::Ptr{ImFontGlyph}, f::Symbol, v) end end +function Base.propertynames(x::ImFontGlyph, private::Bool = false) + (:Colored, :Visible, :SourceIdx, :Codepoint, :AdvanceX, :X0, :Y0, :X1, :Y1, :U0, :V0, :U1, :V1, :PackId, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImFontGlyph Size::Cint Capacity::Cint @@ -545,6 +553,14 @@ function Base.setproperty!(x::Ptr{ImFontBaked}, f::Symbol, v) end end +function Base.propertynames(x::ImFontBaked, private::Bool = false) + (:IndexAdvanceX, :FallbackAdvanceX, :Size, :RasterizerDensity, :IndexLookup, :Glyphs, :FallbackGlyphIndex, :Ascent, :Descent, :MetricsTotalSurface, :WantDestroy, :LockLoadingFallback, :LastUsedFrame, :BakedId, :ContainerFont, :FontLoaderDatas, if private + fieldnames(typeof(x)) + else + () + end...) +end + const ImFontFlags = Cint const ImS8 = Int8 @@ -661,6 +677,14 @@ function Base.setproperty!(x::Ptr{ImGuiStoragePair}, f::Symbol, v) unsafe_store!(getproperty(x, f), v) end +function Base.propertynames(x::ImGuiStoragePair, private::Bool = false) + (:key, :val_i, :val_f, :val_p, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiStoragePair Size::Cint Capacity::Cint @@ -782,6 +806,14 @@ function Base.setproperty!(x::Ptr{ImFontAtlasRectEntry}, f::Symbol, v) end end +function Base.propertynames(x::ImFontAtlasRectEntry, private::Bool = false) + (:TargetIndex, :Generation, :IsUsed, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImFontAtlasRectEntry Size::Cint Capacity::Cint @@ -1556,6 +1588,14 @@ function Base.setproperty!(x::Ptr{ImGuiInputEvent}, f::Symbol, v) unsafe_store!(getproperty(x, f), v) end +function Base.propertynames(x::ImGuiInputEvent, private::Bool = false) + (:Type, :Source, :EventId, :MousePos, :MouseWheel, :MouseButton, :MouseViewport, :Key, :Text, :AppFocused, :AddedByTestEngine, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiInputEvent Size::Cint Capacity::Cint @@ -1955,6 +1995,14 @@ function Base.setproperty!(x::Ptr{ImGuiDockNode}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiDockNode, private::Bool = false) + (:ID, :SharedFlags, :LocalFlags, :LocalFlagsInWindows, :MergedFlags, :State, :ParentNode, :ChildNodes, :Windows, :TabBar, :Pos, :Size, :SizeRef, :SplitAxis, :WindowClass, :LastBgColor, :HostWindow, :VisibleWindow, :CentralNode, :OnlyNodeWithWindows, :CountNodeWithWindows, :LastFrameAlive, :LastFrameActive, :LastFrameFocused, :LastFocusedNodeId, :SelectedTabId, :WantCloseTabId, :RefViewportId, :AuthorityForPos, :AuthorityForSize, :AuthorityForViewport, :IsVisible, :IsFocused, :IsBgDrawnThisFrame, :HasCloseButton, :HasWindowMenuButton, :HasCentralNodeChild, :WantCloseAll, :WantLockSizeOnce, :WantMouseMove, :WantHiddenTabBarUpdate, :WantHiddenTabBarToggle, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImGuiWindow data::NTuple{1224, UInt8} end @@ -2131,6 +2179,14 @@ function Base.setproperty!(x::Ptr{ImGuiWindow}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiWindow, private::Bool = false) + (:Ctx, :Name, :ID, :Flags, :FlagsPreviousFrame, :ChildFlags, :WindowClass, :Viewport, :ViewportId, :ViewportPos, :ViewportAllowPlatformMonitorExtend, :Pos, :Size, :SizeFull, :ContentSize, :ContentSizeIdeal, :ContentSizeExplicit, :WindowPadding, :WindowRounding, :WindowBorderSize, :TitleBarHeight, :MenuBarHeight, :DecoOuterSizeX1, :DecoOuterSizeY1, :DecoOuterSizeX2, :DecoOuterSizeY2, :DecoInnerSizeX1, :DecoInnerSizeY1, :NameBufLen, :MoveId, :TabId, :ChildId, :PopupId, :Scroll, :ScrollMax, :ScrollTarget, :ScrollTargetCenterRatio, :ScrollTargetEdgeSnapDist, :ScrollbarSizes, :ScrollbarX, :ScrollbarY, :ScrollbarXStabilizeEnabled, :ScrollbarXStabilizeToggledHistory, :ViewportOwned, :Active, :WasActive, :WriteAccessed, :Collapsed, :WantCollapseToggle, :SkipItems, :SkipRefresh, :Appearing, :Hidden, :IsFallbackWindow, :IsExplicitChild, :HasCloseButton, :ResizeBorderHovered, :ResizeBorderHeld, :BeginCount, :BeginCountPreviousFrame, :BeginOrderWithinParent, :BeginOrderWithinContext, :FocusOrder, :AutoFitFramesX, :AutoFitFramesY, :AutoFitOnlyGrows, :AutoPosLastDirection, :HiddenFramesCanSkipItems, :HiddenFramesCannotSkipItems, :HiddenFramesForRenderOnly, :DisableInputsFrames, :SetWindowPosAllowFlags, :SetWindowSizeAllowFlags, :SetWindowCollapsedAllowFlags, :SetWindowDockAllowFlags, :SetWindowPosVal, :SetWindowPosPivot, :IDStack, :DC, :OuterRectClipped, :InnerRect, :InnerClipRect, :WorkRect, :ParentWorkRect, :ClipRect, :ContentRegionRect, :HitTestHoleSize, :HitTestHoleOffset, :LastFrameActive, :LastFrameJustFocused, :LastTimeActive, :ItemWidthDefault, :StateStorage, :ColumnsStorage, :FontWindowScale, :FontWindowScaleParents, :FontRefSize, :SettingsOffset, :DrawList, :DrawListInst, :ParentWindow, :ParentWindowInBeginStack, :RootWindow, :RootWindowPopupTree, :RootWindowDockTree, :RootWindowForTitleBarHighlight, :RootWindowForNav, :ParentWindowForFocusRoute, :NavLastChildNavWindow, :NavLastIds, :NavRectRel, :NavPreferredScoringPosRel, :NavRootFocusScopeId, :MemoryDrawListIdxCapacity, :MemoryDrawListVtxCapacity, :MemoryCompacted, :DockIsActive, :DockNodeIsVisible, :DockTabIsVisible, :DockTabWantClose, :DockOrder, :DockStyle, :DockNode, :DockNodeAsHost, :DockId, if private + fieldnames(typeof(x)) + else + () + end...) +end + const ImGuiItemFlags = Cint struct ImGuiLastItemData @@ -2311,6 +2367,14 @@ function Base.setproperty!(x::Ptr{ImGuiStyleMod}, f::Symbol, v) unsafe_store!(getproperty(x, f), v) end +function Base.propertynames(x::ImGuiStyleMod, private::Bool = false) + (:VarIdx, :BackupInt, :BackupFloat, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiStyleMod Size::Cint Capacity::Cint @@ -2797,6 +2861,14 @@ function Base.setproperty!(x::Ptr{ImGuiTableColumn}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiTableColumn, private::Bool = false) + (:Flags, :WidthGiven, :MinX, :MaxX, :WidthRequest, :WidthAuto, :WidthMax, :StretchWeight, :InitStretchWeightOrWidth, :ClipRect, :UserID, :WorkMinX, :WorkMaxX, :ItemWidth, :ContentMaxXFrozen, :ContentMaxXUnfrozen, :ContentMaxXHeadersUsed, :ContentMaxXHeadersIdeal, :NameOffset, :DisplayOrder, :IndexWithinEnabledSet, :PrevEnabledColumn, :NextEnabledColumn, :SortOrder, :DrawChannelCurrent, :DrawChannelFrozen, :DrawChannelUnfrozen, :IsEnabled, :IsUserEnabled, :IsUserEnabledNextFrame, :IsVisibleX, :IsVisibleY, :IsRequestOutput, :IsSkipItems, :IsPreserveWidthAuto, :NavLayerCurrent, :AutoFitQueue, :CannotSkipItemsQueue, :SortDirection, :SortDirectionsAvailCount, :SortDirectionsAvailMask, :SortDirectionsAvailList, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImSpan_ImGuiTableColumn Data::Ptr{ImGuiTableColumn} DataEnd::Ptr{ImGuiTableColumn} @@ -3025,6 +3097,14 @@ function Base.setproperty!(x::Ptr{ImGuiTable}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiTable, private::Bool = false) + (:ID, :Flags, :RawData, :TempData, :Columns, :DisplayOrderToIndex, :RowCellData, :EnabledMaskByDisplayOrder, :EnabledMaskByIndex, :VisibleMaskByIndex, :SettingsLoadedFlags, :SettingsOffset, :LastFrameActive, :ColumnsCount, :CurrentRow, :CurrentColumn, :InstanceCurrent, :InstanceInteracted, :RowPosY1, :RowPosY2, :RowMinHeight, :RowCellPaddingY, :RowTextBaseline, :RowIndentOffsetX, :RowFlags, :LastRowFlags, :RowBgColorCounter, :RowBgColor, :BorderColorStrong, :BorderColorLight, :BorderX1, :BorderX2, :HostIndentX, :MinColumnWidth, :OuterPaddingX, :CellPaddingX, :CellSpacingX1, :CellSpacingX2, :InnerWidth, :ColumnsGivenWidth, :ColumnsAutoFitWidth, :ColumnsStretchSumWeights, :ResizedColumnNextWidth, :ResizeLockMinContentsX2, :RefScale, :AngledHeadersHeight, :AngledHeadersSlope, :OuterRect, :InnerRect, :WorkRect, :InnerClipRect, :BgClipRect, :Bg0ClipRectForDrawCmd, :Bg2ClipRectForDrawCmd, :HostClipRect, :HostBackupInnerClipRect, :OuterWindow, :InnerWindow, :ColumnsNames, :DrawSplitter, :InstanceDataFirst, :InstanceDataExtra, :SortSpecsSingle, :SortSpecsMulti, :SortSpecs, :SortSpecsCount, :ColumnsEnabledCount, :ColumnsEnabledFixedCount, :DeclColumnsCount, :AngledHeadersCount, :HoveredColumnBody, :HoveredColumnBorder, :HighlightColumnHeader, :AutoFitSingleColumn, :ResizedColumn, :LastResizedColumn, :HeldHeaderColumn, :ReorderColumn, :ReorderColumnDir, :LeftMostEnabledColumn, :RightMostEnabledColumn, :LeftMostStretchedColumn, :RightMostStretchedColumn, :ContextPopupColumn, :FreezeRowsRequest, :FreezeRowsCount, :FreezeColumnsRequest, :FreezeColumnsCount, :RowCellDataCurrent, :DummyDrawChannel, :Bg2DrawChannelCurrent, :Bg2DrawChannelUnfrozen, :NavLayer, :IsLayoutLocked, :IsInsideRow, :IsInitializing, :IsSortSpecsDirty, :IsUsingHeaders, :IsContextPopupOpen, :DisableDefaultContextMenu, :IsSettingsRequestLoad, :IsSettingsDirty, :IsDefaultDisplayOrder, :IsResetAllRequest, :IsResetDisplayOrderRequest, :IsUnfrozenRows, :IsDefaultSizingPolicy, :IsActiveIdAliveBeforeTable, :IsActiveIdInTable, :HasScrollbarYCurr, :HasScrollbarYPrev, :MemoryCompacted, :HostSkipItems, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiTableTempData Size::Cint Capacity::Cint @@ -3148,6 +3228,14 @@ function Base.setproperty!(x::Ptr{ImGuiBoxSelectState}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiBoxSelectState, private::Bool = false) + (:ID, :IsActive, :IsStarting, :IsStartedFromVoid, :IsStartedSetNavIdOnce, :RequestClear, :KeyMods, :StartPosRel, :EndPosRel, :ScrollAccum, :Window, :UnclipMode, :UnclipRect, :BoxSelectRectPrev, :BoxSelectRectCurr, if private + fieldnames(typeof(x)) + else + () + end...) +end + @cenum ImGuiSelectionRequestType::UInt32 begin ImGuiSelectionRequestType_None = 0 ImGuiSelectionRequestType_SetAll = 1 @@ -3479,6 +3567,14 @@ function Base.setproperty!(x::Ptr{ImGuiStackLevelInfo}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiStackLevelInfo, private::Bool = false) + (:ID, :QueryFrameCount, :QuerySuccess, :DataType, :Desc, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiStackLevelInfo Size::Cint Capacity::Cint @@ -3877,6 +3973,14 @@ function Base.setproperty!(x::Ptr{ImGuiContext}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiContext, private::Bool = false) + (:Initialized, :IO, :PlatformIO, :Style, :ConfigFlagsCurrFrame, :ConfigFlagsLastFrame, :FontAtlases, :Font, :FontBaked, :FontSize, :FontSizeBase, :FontBakedScale, :FontRasterizerDensity, :CurrentDpiScale, :DrawListSharedData, :Time, :FrameCount, :FrameCountEnded, :FrameCountPlatformEnded, :FrameCountRendered, :WithinEndChildID, :WithinFrameScope, :WithinFrameScopeWithImplicitWindow, :GcCompactAll, :TestEngineHookItems, :TestEngine, :ContextName, :InputEventsQueue, :InputEventsTrail, :InputEventsNextMouseSource, :InputEventsNextEventId, :Windows, :WindowsFocusOrder, :WindowsTempSortBuffer, :CurrentWindowStack, :WindowsById, :WindowsActiveCount, :WindowsBorderHoverPadding, :DebugBreakInWindow, :CurrentWindow, :HoveredWindow, :HoveredWindowUnderMovingWindow, :HoveredWindowBeforeClear, :MovingWindow, :WheelingWindow, :WheelingWindowRefMousePos, :WheelingWindowStartFrame, :WheelingWindowScrolledFrame, :WheelingWindowReleaseTimer, :WheelingWindowWheelRemainder, :WheelingAxisAvg, :DebugDrawIdConflictsId, :DebugHookIdInfo, :HoveredId, :HoveredIdPreviousFrame, :HoveredIdPreviousFrameItemCount, :HoveredIdTimer, :HoveredIdNotActiveTimer, :HoveredIdAllowOverlap, :HoveredIdIsDisabled, :ItemUnclipByLog, :ActiveId, :ActiveIdIsAlive, :ActiveIdTimer, :ActiveIdIsJustActivated, :ActiveIdAllowOverlap, :ActiveIdNoClearOnFocusLoss, :ActiveIdHasBeenPressedBefore, :ActiveIdHasBeenEditedBefore, :ActiveIdHasBeenEditedThisFrame, :ActiveIdFromShortcut, :ActiveIdMouseButton, :ActiveIdClickOffset, :ActiveIdWindow, :ActiveIdSource, :ActiveIdPreviousFrame, :DeactivatedItemData, :ActiveIdValueOnActivation, :LastActiveId, :LastActiveIdTimer, :LastKeyModsChangeTime, :LastKeyModsChangeFromNoneTime, :LastKeyboardKeyPressTime, :KeysMayBeCharInput, :KeysOwnerData, :KeysRoutingTable, :ActiveIdUsingNavDirMask, :ActiveIdUsingAllKeyboardKeys, :DebugBreakInShortcutRouting, :CurrentFocusScopeId, :CurrentItemFlags, :DebugLocateId, :NextItemData, :LastItemData, :NextWindowData, :DebugShowGroupRects, :DebugFlashStyleColorIdx, :ColorStack, :StyleVarStack, :FontStack, :FocusScopeStack, :ItemFlagsStack, :GroupStack, :OpenPopupStack, :BeginPopupStack, :TreeNodeStack, :Viewports, :CurrentViewport, :MouseViewport, :MouseLastHoveredViewport, :PlatformLastFocusedViewportId, :FallbackMonitor, :PlatformMonitorsFullWorkRect, :ViewportCreatedCount, :PlatformWindowsCreatedCount, :ViewportFocusedStampCount, :NavCursorVisible, :NavHighlightItemUnderNav, :NavMousePosDirty, :NavIdIsAlive, :NavId, :NavWindow, :NavFocusScopeId, :NavLayer, :NavActivateId, :NavActivateDownId, :NavActivatePressedId, :NavActivateFlags, :NavFocusRoute, :NavHighlightActivatedId, :NavHighlightActivatedTimer, :NavNextActivateId, :NavNextActivateFlags, :NavInputSource, :NavLastValidSelectionUserData, :NavCursorHideFrames, :NavAnyRequest, :NavInitRequest, :NavInitRequestFromMove, :NavInitResult, :NavMoveSubmitted, :NavMoveScoringItems, :NavMoveForwardToNextFrame, :NavMoveFlags, :NavMoveScrollFlags, :NavMoveKeyMods, :NavMoveDir, :NavMoveDirForDebug, :NavMoveClipDir, :NavScoringRect, :NavScoringNoClipRect, :NavScoringDebugCount, :NavTabbingDir, :NavTabbingCounter, :NavMoveResultLocal, :NavMoveResultLocalVisible, :NavMoveResultOther, :NavTabbingResultFirst, :NavJustMovedFromFocusScopeId, :NavJustMovedToId, :NavJustMovedToFocusScopeId, :NavJustMovedToKeyMods, :NavJustMovedToIsTabbing, :NavJustMovedToHasSelectionData, :ConfigNavWindowingWithGamepad, :ConfigNavWindowingKeyNext, :ConfigNavWindowingKeyPrev, :NavWindowingTarget, :NavWindowingTargetAnim, :NavWindowingListWindow, :NavWindowingTimer, :NavWindowingHighlightAlpha, :NavWindowingInputSource, :NavWindowingToggleLayer, :NavWindowingToggleKey, :NavWindowingAccumDeltaPos, :NavWindowingAccumDeltaSize, :DimBgRatio, :DragDropActive, :DragDropWithinSource, :DragDropWithinTarget, :DragDropSourceFlags, :DragDropSourceFrameCount, :DragDropMouseButton, :DragDropPayload, :DragDropTargetRect, :DragDropTargetClipRect, :DragDropTargetId, :DragDropAcceptFlags, :DragDropAcceptIdCurrRectSurface, :DragDropAcceptIdCurr, :DragDropAcceptIdPrev, :DragDropAcceptFrameCount, :DragDropHoldJustPressedId, :DragDropPayloadBufHeap, :DragDropPayloadBufLocal, :ClipperTempDataStacked, :ClipperTempData, :CurrentTable, :DebugBreakInTable, :TablesTempDataStacked, :TablesTempData, :Tables, :TablesLastTimeActive, :DrawChannelsTempMergeBuffer, :CurrentTabBar, :TabBars, :CurrentTabBarStack, :ShrinkWidthBuffer, :BoxSelectState, :CurrentMultiSelect, :MultiSelectTempDataStacked, :MultiSelectTempData, :MultiSelectStorage, :HoverItemDelayId, :HoverItemDelayIdPreviousFrame, :HoverItemDelayTimer, :HoverItemDelayClearTimer, :HoverItemUnlockedStationaryId, :HoverWindowUnlockedStationaryId, :MouseCursor, :MouseStationaryTimer, :MouseLastValidPos, :InputTextState, :InputTextDeactivatedState, :InputTextPasswordFontBackupBaked, :InputTextPasswordFontBackupFlags, :TempInputId, :DataTypeZeroValue, :BeginMenuDepth, :BeginComboDepth, :ColorEditOptions, :ColorEditCurrentID, :ColorEditSavedID, :ColorEditSavedHue, :ColorEditSavedSat, :ColorEditSavedColor, :ColorPickerRef, :ComboPreviewData, :WindowResizeBorderExpectedRect, :WindowResizeRelativeMode, :ScrollbarSeekMode, :ScrollbarClickDeltaToGrabCenter, :SliderGrabClickOffset, :SliderCurrentAccum, :SliderCurrentAccumDirty, :DragCurrentAccumDirty, :DragCurrentAccum, :DragSpeedDefaultRatio, :DisabledAlphaBackup, :DisabledStackSize, :TooltipOverrideCount, :TooltipPreviousWindow, :ClipboardHandlerData, :MenusIdSubmittedThisFrame, :TypingSelectState, :PlatformImeData, :PlatformImeDataPrev, :UserTextures, :DockContext, :DockNodeWindowMenuHandler, :SettingsLoaded, :SettingsDirtyTimer, :SettingsIniData, :SettingsHandlers, :SettingsWindows, :SettingsTables, :Hooks, :HookIdNext, :LocalizationTable, :LogEnabled, :LogFlags, :LogWindow, :LogFile, :LogBuffer, :LogNextPrefix, :LogNextSuffix, :LogLinePosY, :LogLineFirstItem, :LogDepthRef, :LogDepthToExpand, :LogDepthToExpandDefault, :ErrorCallback, :ErrorCallbackUserData, :ErrorTooltipLockedPos, :ErrorFirst, :ErrorCountCurrentFrame, :StackSizesInNewFrame, :StackSizesInBeginForCurrentWindow, :DebugDrawIdConflictsCount, :DebugLogFlags, :DebugLogBuf, :DebugLogIndex, :DebugLogSkippedErrors, :DebugLogAutoDisableFlags, :DebugLogAutoDisableFrames, :DebugLocateFrames, :DebugBreakInLocateId, :DebugBreakKeyChord, :DebugBeginReturnValueCullDepth, :DebugItemPickerActive, :DebugItemPickerMouseButton, :DebugItemPickerBreakId, :DebugFlashStyleColorTime, :DebugFlashStyleColorBackup, :DebugMetricsConfig, :DebugIDStackTool, :DebugAllocInfo, :DebugHoveredDockNode, :FramerateSecPerFrame, :FramerateSecPerFrameIdx, :FramerateSecPerFrameCount, :FramerateSecPerFrameAccum, :WantCaptureMouseNextFrame, :WantCaptureKeyboardNextFrame, :WantTextInputNextFrame, :TempBuffer, :TempKeychordName, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImGuiInputTextCallbackData Ctx::Ptr{ImGuiContext} EventFlag::ImGuiInputTextFlags @@ -4049,6 +4153,14 @@ function Base.setproperty!(x::Ptr{ImGuiStyleVarInfo}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiStyleVarInfo, private::Bool = false) + (:Count, :DataType, :Offset, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImGuiTableSettings ID::ImGuiID SaveFlags::ImGuiTableFlags @@ -5200,6 +5312,14 @@ function Base.setproperty!(x::Ptr{ImGuiTableColumnSettings}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiTableColumnSettings, private::Bool = false) + (:WidthOrWeight, :UserID, :Index, :DisplayOrder, :SortOrder, :SortDirection, :IsEnabled, :IsStretch, if private + fieldnames(typeof(x)) + else + () + end...) +end + function ImVec2_ImVec2_Nil() ccall((:ImVec2_ImVec2_Nil, libcimgui), Ptr{ImVec2}, ()) end diff --git a/lib/x86_64-unknown-freebsd13.2.jl b/lib/x86_64-unknown-freebsd13.2.jl index eff4d36..2d2784b 100644 --- a/lib/x86_64-unknown-freebsd13.2.jl +++ b/lib/x86_64-unknown-freebsd13.2.jl @@ -1,4 +1,4 @@ -using CEnum +using CEnum: CEnum, @cenum to_c_type(t::Type) = t to_c_type_pairs(va_list) = map(enumerate(to_c_type.(va_list))) do (ind, type) @@ -474,6 +474,14 @@ function Base.setproperty!(x::Ptr{ImFontGlyph}, f::Symbol, v) end end +function Base.propertynames(x::ImFontGlyph, private::Bool = false) + (:Colored, :Visible, :SourceIdx, :Codepoint, :AdvanceX, :X0, :Y0, :X1, :Y1, :U0, :V0, :U1, :V1, :PackId, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImFontGlyph Size::Cint Capacity::Cint @@ -547,6 +555,14 @@ function Base.setproperty!(x::Ptr{ImFontBaked}, f::Symbol, v) end end +function Base.propertynames(x::ImFontBaked, private::Bool = false) + (:IndexAdvanceX, :FallbackAdvanceX, :Size, :RasterizerDensity, :IndexLookup, :Glyphs, :FallbackGlyphIndex, :Ascent, :Descent, :MetricsTotalSurface, :WantDestroy, :LockLoadingFallback, :LastUsedFrame, :BakedId, :ContainerFont, :FontLoaderDatas, if private + fieldnames(typeof(x)) + else + () + end...) +end + const ImFontFlags = Cint const ImS8 = Int8 @@ -663,6 +679,14 @@ function Base.setproperty!(x::Ptr{ImGuiStoragePair}, f::Symbol, v) unsafe_store!(getproperty(x, f), v) end +function Base.propertynames(x::ImGuiStoragePair, private::Bool = false) + (:key, :val_i, :val_f, :val_p, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiStoragePair Size::Cint Capacity::Cint @@ -784,6 +808,14 @@ function Base.setproperty!(x::Ptr{ImFontAtlasRectEntry}, f::Symbol, v) end end +function Base.propertynames(x::ImFontAtlasRectEntry, private::Bool = false) + (:TargetIndex, :Generation, :IsUsed, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImFontAtlasRectEntry Size::Cint Capacity::Cint @@ -1558,6 +1590,14 @@ function Base.setproperty!(x::Ptr{ImGuiInputEvent}, f::Symbol, v) unsafe_store!(getproperty(x, f), v) end +function Base.propertynames(x::ImGuiInputEvent, private::Bool = false) + (:Type, :Source, :EventId, :MousePos, :MouseWheel, :MouseButton, :MouseViewport, :Key, :Text, :AppFocused, :AddedByTestEngine, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiInputEvent Size::Cint Capacity::Cint @@ -1957,6 +1997,14 @@ function Base.setproperty!(x::Ptr{ImGuiDockNode}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiDockNode, private::Bool = false) + (:ID, :SharedFlags, :LocalFlags, :LocalFlagsInWindows, :MergedFlags, :State, :ParentNode, :ChildNodes, :Windows, :TabBar, :Pos, :Size, :SizeRef, :SplitAxis, :WindowClass, :LastBgColor, :HostWindow, :VisibleWindow, :CentralNode, :OnlyNodeWithWindows, :CountNodeWithWindows, :LastFrameAlive, :LastFrameActive, :LastFrameFocused, :LastFocusedNodeId, :SelectedTabId, :WantCloseTabId, :RefViewportId, :AuthorityForPos, :AuthorityForSize, :AuthorityForViewport, :IsVisible, :IsFocused, :IsBgDrawnThisFrame, :HasCloseButton, :HasWindowMenuButton, :HasCentralNodeChild, :WantCloseAll, :WantLockSizeOnce, :WantMouseMove, :WantHiddenTabBarUpdate, :WantHiddenTabBarToggle, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImGuiWindow data::NTuple{1224, UInt8} end @@ -2133,6 +2181,14 @@ function Base.setproperty!(x::Ptr{ImGuiWindow}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiWindow, private::Bool = false) + (:Ctx, :Name, :ID, :Flags, :FlagsPreviousFrame, :ChildFlags, :WindowClass, :Viewport, :ViewportId, :ViewportPos, :ViewportAllowPlatformMonitorExtend, :Pos, :Size, :SizeFull, :ContentSize, :ContentSizeIdeal, :ContentSizeExplicit, :WindowPadding, :WindowRounding, :WindowBorderSize, :TitleBarHeight, :MenuBarHeight, :DecoOuterSizeX1, :DecoOuterSizeY1, :DecoOuterSizeX2, :DecoOuterSizeY2, :DecoInnerSizeX1, :DecoInnerSizeY1, :NameBufLen, :MoveId, :TabId, :ChildId, :PopupId, :Scroll, :ScrollMax, :ScrollTarget, :ScrollTargetCenterRatio, :ScrollTargetEdgeSnapDist, :ScrollbarSizes, :ScrollbarX, :ScrollbarY, :ScrollbarXStabilizeEnabled, :ScrollbarXStabilizeToggledHistory, :ViewportOwned, :Active, :WasActive, :WriteAccessed, :Collapsed, :WantCollapseToggle, :SkipItems, :SkipRefresh, :Appearing, :Hidden, :IsFallbackWindow, :IsExplicitChild, :HasCloseButton, :ResizeBorderHovered, :ResizeBorderHeld, :BeginCount, :BeginCountPreviousFrame, :BeginOrderWithinParent, :BeginOrderWithinContext, :FocusOrder, :AutoFitFramesX, :AutoFitFramesY, :AutoFitOnlyGrows, :AutoPosLastDirection, :HiddenFramesCanSkipItems, :HiddenFramesCannotSkipItems, :HiddenFramesForRenderOnly, :DisableInputsFrames, :SetWindowPosAllowFlags, :SetWindowSizeAllowFlags, :SetWindowCollapsedAllowFlags, :SetWindowDockAllowFlags, :SetWindowPosVal, :SetWindowPosPivot, :IDStack, :DC, :OuterRectClipped, :InnerRect, :InnerClipRect, :WorkRect, :ParentWorkRect, :ClipRect, :ContentRegionRect, :HitTestHoleSize, :HitTestHoleOffset, :LastFrameActive, :LastFrameJustFocused, :LastTimeActive, :ItemWidthDefault, :StateStorage, :ColumnsStorage, :FontWindowScale, :FontWindowScaleParents, :FontRefSize, :SettingsOffset, :DrawList, :DrawListInst, :ParentWindow, :ParentWindowInBeginStack, :RootWindow, :RootWindowPopupTree, :RootWindowDockTree, :RootWindowForTitleBarHighlight, :RootWindowForNav, :ParentWindowForFocusRoute, :NavLastChildNavWindow, :NavLastIds, :NavRectRel, :NavPreferredScoringPosRel, :NavRootFocusScopeId, :MemoryDrawListIdxCapacity, :MemoryDrawListVtxCapacity, :MemoryCompacted, :DockIsActive, :DockNodeIsVisible, :DockTabIsVisible, :DockTabWantClose, :DockOrder, :DockStyle, :DockNode, :DockNodeAsHost, :DockId, if private + fieldnames(typeof(x)) + else + () + end...) +end + const ImGuiItemFlags = Cint struct ImGuiLastItemData @@ -2313,6 +2369,14 @@ function Base.setproperty!(x::Ptr{ImGuiStyleMod}, f::Symbol, v) unsafe_store!(getproperty(x, f), v) end +function Base.propertynames(x::ImGuiStyleMod, private::Bool = false) + (:VarIdx, :BackupInt, :BackupFloat, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiStyleMod Size::Cint Capacity::Cint @@ -2799,6 +2863,14 @@ function Base.setproperty!(x::Ptr{ImGuiTableColumn}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiTableColumn, private::Bool = false) + (:Flags, :WidthGiven, :MinX, :MaxX, :WidthRequest, :WidthAuto, :WidthMax, :StretchWeight, :InitStretchWeightOrWidth, :ClipRect, :UserID, :WorkMinX, :WorkMaxX, :ItemWidth, :ContentMaxXFrozen, :ContentMaxXUnfrozen, :ContentMaxXHeadersUsed, :ContentMaxXHeadersIdeal, :NameOffset, :DisplayOrder, :IndexWithinEnabledSet, :PrevEnabledColumn, :NextEnabledColumn, :SortOrder, :DrawChannelCurrent, :DrawChannelFrozen, :DrawChannelUnfrozen, :IsEnabled, :IsUserEnabled, :IsUserEnabledNextFrame, :IsVisibleX, :IsVisibleY, :IsRequestOutput, :IsSkipItems, :IsPreserveWidthAuto, :NavLayerCurrent, :AutoFitQueue, :CannotSkipItemsQueue, :SortDirection, :SortDirectionsAvailCount, :SortDirectionsAvailMask, :SortDirectionsAvailList, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImSpan_ImGuiTableColumn Data::Ptr{ImGuiTableColumn} DataEnd::Ptr{ImGuiTableColumn} @@ -3027,6 +3099,14 @@ function Base.setproperty!(x::Ptr{ImGuiTable}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiTable, private::Bool = false) + (:ID, :Flags, :RawData, :TempData, :Columns, :DisplayOrderToIndex, :RowCellData, :EnabledMaskByDisplayOrder, :EnabledMaskByIndex, :VisibleMaskByIndex, :SettingsLoadedFlags, :SettingsOffset, :LastFrameActive, :ColumnsCount, :CurrentRow, :CurrentColumn, :InstanceCurrent, :InstanceInteracted, :RowPosY1, :RowPosY2, :RowMinHeight, :RowCellPaddingY, :RowTextBaseline, :RowIndentOffsetX, :RowFlags, :LastRowFlags, :RowBgColorCounter, :RowBgColor, :BorderColorStrong, :BorderColorLight, :BorderX1, :BorderX2, :HostIndentX, :MinColumnWidth, :OuterPaddingX, :CellPaddingX, :CellSpacingX1, :CellSpacingX2, :InnerWidth, :ColumnsGivenWidth, :ColumnsAutoFitWidth, :ColumnsStretchSumWeights, :ResizedColumnNextWidth, :ResizeLockMinContentsX2, :RefScale, :AngledHeadersHeight, :AngledHeadersSlope, :OuterRect, :InnerRect, :WorkRect, :InnerClipRect, :BgClipRect, :Bg0ClipRectForDrawCmd, :Bg2ClipRectForDrawCmd, :HostClipRect, :HostBackupInnerClipRect, :OuterWindow, :InnerWindow, :ColumnsNames, :DrawSplitter, :InstanceDataFirst, :InstanceDataExtra, :SortSpecsSingle, :SortSpecsMulti, :SortSpecs, :SortSpecsCount, :ColumnsEnabledCount, :ColumnsEnabledFixedCount, :DeclColumnsCount, :AngledHeadersCount, :HoveredColumnBody, :HoveredColumnBorder, :HighlightColumnHeader, :AutoFitSingleColumn, :ResizedColumn, :LastResizedColumn, :HeldHeaderColumn, :ReorderColumn, :ReorderColumnDir, :LeftMostEnabledColumn, :RightMostEnabledColumn, :LeftMostStretchedColumn, :RightMostStretchedColumn, :ContextPopupColumn, :FreezeRowsRequest, :FreezeRowsCount, :FreezeColumnsRequest, :FreezeColumnsCount, :RowCellDataCurrent, :DummyDrawChannel, :Bg2DrawChannelCurrent, :Bg2DrawChannelUnfrozen, :NavLayer, :IsLayoutLocked, :IsInsideRow, :IsInitializing, :IsSortSpecsDirty, :IsUsingHeaders, :IsContextPopupOpen, :DisableDefaultContextMenu, :IsSettingsRequestLoad, :IsSettingsDirty, :IsDefaultDisplayOrder, :IsResetAllRequest, :IsResetDisplayOrderRequest, :IsUnfrozenRows, :IsDefaultSizingPolicy, :IsActiveIdAliveBeforeTable, :IsActiveIdInTable, :HasScrollbarYCurr, :HasScrollbarYPrev, :MemoryCompacted, :HostSkipItems, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiTableTempData Size::Cint Capacity::Cint @@ -3150,6 +3230,14 @@ function Base.setproperty!(x::Ptr{ImGuiBoxSelectState}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiBoxSelectState, private::Bool = false) + (:ID, :IsActive, :IsStarting, :IsStartedFromVoid, :IsStartedSetNavIdOnce, :RequestClear, :KeyMods, :StartPosRel, :EndPosRel, :ScrollAccum, :Window, :UnclipMode, :UnclipRect, :BoxSelectRectPrev, :BoxSelectRectCurr, if private + fieldnames(typeof(x)) + else + () + end...) +end + @cenum ImGuiSelectionRequestType::UInt32 begin ImGuiSelectionRequestType_None = 0 ImGuiSelectionRequestType_SetAll = 1 @@ -3481,6 +3569,14 @@ function Base.setproperty!(x::Ptr{ImGuiStackLevelInfo}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiStackLevelInfo, private::Bool = false) + (:ID, :QueryFrameCount, :QuerySuccess, :DataType, :Desc, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiStackLevelInfo Size::Cint Capacity::Cint @@ -3879,6 +3975,14 @@ function Base.setproperty!(x::Ptr{ImGuiContext}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiContext, private::Bool = false) + (:Initialized, :IO, :PlatformIO, :Style, :ConfigFlagsCurrFrame, :ConfigFlagsLastFrame, :FontAtlases, :Font, :FontBaked, :FontSize, :FontSizeBase, :FontBakedScale, :FontRasterizerDensity, :CurrentDpiScale, :DrawListSharedData, :Time, :FrameCount, :FrameCountEnded, :FrameCountPlatformEnded, :FrameCountRendered, :WithinEndChildID, :WithinFrameScope, :WithinFrameScopeWithImplicitWindow, :GcCompactAll, :TestEngineHookItems, :TestEngine, :ContextName, :InputEventsQueue, :InputEventsTrail, :InputEventsNextMouseSource, :InputEventsNextEventId, :Windows, :WindowsFocusOrder, :WindowsTempSortBuffer, :CurrentWindowStack, :WindowsById, :WindowsActiveCount, :WindowsBorderHoverPadding, :DebugBreakInWindow, :CurrentWindow, :HoveredWindow, :HoveredWindowUnderMovingWindow, :HoveredWindowBeforeClear, :MovingWindow, :WheelingWindow, :WheelingWindowRefMousePos, :WheelingWindowStartFrame, :WheelingWindowScrolledFrame, :WheelingWindowReleaseTimer, :WheelingWindowWheelRemainder, :WheelingAxisAvg, :DebugDrawIdConflictsId, :DebugHookIdInfo, :HoveredId, :HoveredIdPreviousFrame, :HoveredIdPreviousFrameItemCount, :HoveredIdTimer, :HoveredIdNotActiveTimer, :HoveredIdAllowOverlap, :HoveredIdIsDisabled, :ItemUnclipByLog, :ActiveId, :ActiveIdIsAlive, :ActiveIdTimer, :ActiveIdIsJustActivated, :ActiveIdAllowOverlap, :ActiveIdNoClearOnFocusLoss, :ActiveIdHasBeenPressedBefore, :ActiveIdHasBeenEditedBefore, :ActiveIdHasBeenEditedThisFrame, :ActiveIdFromShortcut, :ActiveIdMouseButton, :ActiveIdClickOffset, :ActiveIdWindow, :ActiveIdSource, :ActiveIdPreviousFrame, :DeactivatedItemData, :ActiveIdValueOnActivation, :LastActiveId, :LastActiveIdTimer, :LastKeyModsChangeTime, :LastKeyModsChangeFromNoneTime, :LastKeyboardKeyPressTime, :KeysMayBeCharInput, :KeysOwnerData, :KeysRoutingTable, :ActiveIdUsingNavDirMask, :ActiveIdUsingAllKeyboardKeys, :DebugBreakInShortcutRouting, :CurrentFocusScopeId, :CurrentItemFlags, :DebugLocateId, :NextItemData, :LastItemData, :NextWindowData, :DebugShowGroupRects, :DebugFlashStyleColorIdx, :ColorStack, :StyleVarStack, :FontStack, :FocusScopeStack, :ItemFlagsStack, :GroupStack, :OpenPopupStack, :BeginPopupStack, :TreeNodeStack, :Viewports, :CurrentViewport, :MouseViewport, :MouseLastHoveredViewport, :PlatformLastFocusedViewportId, :FallbackMonitor, :PlatformMonitorsFullWorkRect, :ViewportCreatedCount, :PlatformWindowsCreatedCount, :ViewportFocusedStampCount, :NavCursorVisible, :NavHighlightItemUnderNav, :NavMousePosDirty, :NavIdIsAlive, :NavId, :NavWindow, :NavFocusScopeId, :NavLayer, :NavActivateId, :NavActivateDownId, :NavActivatePressedId, :NavActivateFlags, :NavFocusRoute, :NavHighlightActivatedId, :NavHighlightActivatedTimer, :NavNextActivateId, :NavNextActivateFlags, :NavInputSource, :NavLastValidSelectionUserData, :NavCursorHideFrames, :NavAnyRequest, :NavInitRequest, :NavInitRequestFromMove, :NavInitResult, :NavMoveSubmitted, :NavMoveScoringItems, :NavMoveForwardToNextFrame, :NavMoveFlags, :NavMoveScrollFlags, :NavMoveKeyMods, :NavMoveDir, :NavMoveDirForDebug, :NavMoveClipDir, :NavScoringRect, :NavScoringNoClipRect, :NavScoringDebugCount, :NavTabbingDir, :NavTabbingCounter, :NavMoveResultLocal, :NavMoveResultLocalVisible, :NavMoveResultOther, :NavTabbingResultFirst, :NavJustMovedFromFocusScopeId, :NavJustMovedToId, :NavJustMovedToFocusScopeId, :NavJustMovedToKeyMods, :NavJustMovedToIsTabbing, :NavJustMovedToHasSelectionData, :ConfigNavWindowingWithGamepad, :ConfigNavWindowingKeyNext, :ConfigNavWindowingKeyPrev, :NavWindowingTarget, :NavWindowingTargetAnim, :NavWindowingListWindow, :NavWindowingTimer, :NavWindowingHighlightAlpha, :NavWindowingInputSource, :NavWindowingToggleLayer, :NavWindowingToggleKey, :NavWindowingAccumDeltaPos, :NavWindowingAccumDeltaSize, :DimBgRatio, :DragDropActive, :DragDropWithinSource, :DragDropWithinTarget, :DragDropSourceFlags, :DragDropSourceFrameCount, :DragDropMouseButton, :DragDropPayload, :DragDropTargetRect, :DragDropTargetClipRect, :DragDropTargetId, :DragDropAcceptFlags, :DragDropAcceptIdCurrRectSurface, :DragDropAcceptIdCurr, :DragDropAcceptIdPrev, :DragDropAcceptFrameCount, :DragDropHoldJustPressedId, :DragDropPayloadBufHeap, :DragDropPayloadBufLocal, :ClipperTempDataStacked, :ClipperTempData, :CurrentTable, :DebugBreakInTable, :TablesTempDataStacked, :TablesTempData, :Tables, :TablesLastTimeActive, :DrawChannelsTempMergeBuffer, :CurrentTabBar, :TabBars, :CurrentTabBarStack, :ShrinkWidthBuffer, :BoxSelectState, :CurrentMultiSelect, :MultiSelectTempDataStacked, :MultiSelectTempData, :MultiSelectStorage, :HoverItemDelayId, :HoverItemDelayIdPreviousFrame, :HoverItemDelayTimer, :HoverItemDelayClearTimer, :HoverItemUnlockedStationaryId, :HoverWindowUnlockedStationaryId, :MouseCursor, :MouseStationaryTimer, :MouseLastValidPos, :InputTextState, :InputTextDeactivatedState, :InputTextPasswordFontBackupBaked, :InputTextPasswordFontBackupFlags, :TempInputId, :DataTypeZeroValue, :BeginMenuDepth, :BeginComboDepth, :ColorEditOptions, :ColorEditCurrentID, :ColorEditSavedID, :ColorEditSavedHue, :ColorEditSavedSat, :ColorEditSavedColor, :ColorPickerRef, :ComboPreviewData, :WindowResizeBorderExpectedRect, :WindowResizeRelativeMode, :ScrollbarSeekMode, :ScrollbarClickDeltaToGrabCenter, :SliderGrabClickOffset, :SliderCurrentAccum, :SliderCurrentAccumDirty, :DragCurrentAccumDirty, :DragCurrentAccum, :DragSpeedDefaultRatio, :DisabledAlphaBackup, :DisabledStackSize, :TooltipOverrideCount, :TooltipPreviousWindow, :ClipboardHandlerData, :MenusIdSubmittedThisFrame, :TypingSelectState, :PlatformImeData, :PlatformImeDataPrev, :UserTextures, :DockContext, :DockNodeWindowMenuHandler, :SettingsLoaded, :SettingsDirtyTimer, :SettingsIniData, :SettingsHandlers, :SettingsWindows, :SettingsTables, :Hooks, :HookIdNext, :LocalizationTable, :LogEnabled, :LogFlags, :LogWindow, :LogFile, :LogBuffer, :LogNextPrefix, :LogNextSuffix, :LogLinePosY, :LogLineFirstItem, :LogDepthRef, :LogDepthToExpand, :LogDepthToExpandDefault, :ErrorCallback, :ErrorCallbackUserData, :ErrorTooltipLockedPos, :ErrorFirst, :ErrorCountCurrentFrame, :StackSizesInNewFrame, :StackSizesInBeginForCurrentWindow, :DebugDrawIdConflictsCount, :DebugLogFlags, :DebugLogBuf, :DebugLogIndex, :DebugLogSkippedErrors, :DebugLogAutoDisableFlags, :DebugLogAutoDisableFrames, :DebugLocateFrames, :DebugBreakInLocateId, :DebugBreakKeyChord, :DebugBeginReturnValueCullDepth, :DebugItemPickerActive, :DebugItemPickerMouseButton, :DebugItemPickerBreakId, :DebugFlashStyleColorTime, :DebugFlashStyleColorBackup, :DebugMetricsConfig, :DebugIDStackTool, :DebugAllocInfo, :DebugHoveredDockNode, :FramerateSecPerFrame, :FramerateSecPerFrameIdx, :FramerateSecPerFrameCount, :FramerateSecPerFrameAccum, :WantCaptureMouseNextFrame, :WantCaptureKeyboardNextFrame, :WantTextInputNextFrame, :TempBuffer, :TempKeychordName, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImGuiInputTextCallbackData Ctx::Ptr{ImGuiContext} EventFlag::ImGuiInputTextFlags @@ -4051,6 +4155,14 @@ function Base.setproperty!(x::Ptr{ImGuiStyleVarInfo}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiStyleVarInfo, private::Bool = false) + (:Count, :DataType, :Offset, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImGuiTableSettings ID::ImGuiID SaveFlags::ImGuiTableFlags @@ -5202,6 +5314,14 @@ function Base.setproperty!(x::Ptr{ImGuiTableColumnSettings}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiTableColumnSettings, private::Bool = false) + (:WidthOrWeight, :UserID, :Index, :DisplayOrder, :SortOrder, :SortDirection, :IsEnabled, :IsStretch, if private + fieldnames(typeof(x)) + else + () + end...) +end + function ImVec2_ImVec2_Nil() ccall((:ImVec2_ImVec2_Nil, libcimgui), Ptr{ImVec2}, ()) end diff --git a/lib/x86_64-w64-mingw32.jl b/lib/x86_64-w64-mingw32.jl index c8ec2e4..f3bf6f4 100644 --- a/lib/x86_64-w64-mingw32.jl +++ b/lib/x86_64-w64-mingw32.jl @@ -1,4 +1,4 @@ -using CEnum +using CEnum: CEnum, @cenum to_c_type(t::Type) = t to_c_type_pairs(va_list) = map(enumerate(to_c_type.(va_list))) do (ind, type) @@ -37,6 +37,14 @@ function Base.setproperty!(x::Ptr{tm}, f::Symbol, v) unsafe_store!(getproperty(x, f), v) end +function Base.propertynames(x::tm, private::Bool = false) + (:tm_sec, :tm_min, :tm_hour, :tm_mday, :tm_mon, :tm_year, :tm_wday, :tm_yday, :tm_isdst, if private + fieldnames(typeof(x)) + else + () + end...) +end + # typedef void ( * ImDrawCallback ) ( const ImDrawList * parent_list , const ImDrawCmd * cmd ) const ImDrawCallback = Ptr{Cvoid} @@ -488,6 +496,14 @@ function Base.setproperty!(x::Ptr{ImFontGlyph}, f::Symbol, v) end end +function Base.propertynames(x::ImFontGlyph, private::Bool = false) + (:Colored, :Visible, :SourceIdx, :Codepoint, :AdvanceX, :X0, :Y0, :X1, :Y1, :U0, :V0, :U1, :V1, :PackId, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImFontGlyph Size::Cint Capacity::Cint @@ -561,6 +577,14 @@ function Base.setproperty!(x::Ptr{ImFontBaked}, f::Symbol, v) end end +function Base.propertynames(x::ImFontBaked, private::Bool = false) + (:IndexAdvanceX, :FallbackAdvanceX, :Size, :RasterizerDensity, :IndexLookup, :Glyphs, :FallbackGlyphIndex, :Ascent, :Descent, :MetricsTotalSurface, :WantDestroy, :LockLoadingFallback, :LastUsedFrame, :BakedId, :ContainerFont, :FontLoaderDatas, if private + fieldnames(typeof(x)) + else + () + end...) +end + const ImFontFlags = Cint const ImS8 = Int8 @@ -677,6 +701,14 @@ function Base.setproperty!(x::Ptr{ImGuiStoragePair}, f::Symbol, v) unsafe_store!(getproperty(x, f), v) end +function Base.propertynames(x::ImGuiStoragePair, private::Bool = false) + (:key, :val_i, :val_f, :val_p, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiStoragePair Size::Cint Capacity::Cint @@ -798,6 +830,14 @@ function Base.setproperty!(x::Ptr{ImFontAtlasRectEntry}, f::Symbol, v) end end +function Base.propertynames(x::ImFontAtlasRectEntry, private::Bool = false) + (:TargetIndex, :Generation, :IsUsed, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImFontAtlasRectEntry Size::Cint Capacity::Cint @@ -1572,6 +1612,14 @@ function Base.setproperty!(x::Ptr{ImGuiInputEvent}, f::Symbol, v) unsafe_store!(getproperty(x, f), v) end +function Base.propertynames(x::ImGuiInputEvent, private::Bool = false) + (:Type, :Source, :EventId, :MousePos, :MouseWheel, :MouseButton, :MouseViewport, :Key, :Text, :AppFocused, :AddedByTestEngine, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiInputEvent Size::Cint Capacity::Cint @@ -1971,6 +2019,14 @@ function Base.setproperty!(x::Ptr{ImGuiDockNode}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiDockNode, private::Bool = false) + (:ID, :SharedFlags, :LocalFlags, :LocalFlagsInWindows, :MergedFlags, :State, :ParentNode, :ChildNodes, :Windows, :TabBar, :Pos, :Size, :SizeRef, :SplitAxis, :WindowClass, :LastBgColor, :HostWindow, :VisibleWindow, :CentralNode, :OnlyNodeWithWindows, :CountNodeWithWindows, :LastFrameAlive, :LastFrameActive, :LastFrameFocused, :LastFocusedNodeId, :SelectedTabId, :WantCloseTabId, :RefViewportId, :AuthorityForPos, :AuthorityForSize, :AuthorityForViewport, :IsVisible, :IsFocused, :IsBgDrawnThisFrame, :HasCloseButton, :HasWindowMenuButton, :HasCentralNodeChild, :WantCloseAll, :WantLockSizeOnce, :WantMouseMove, :WantHiddenTabBarUpdate, :WantHiddenTabBarToggle, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImGuiWindow data::NTuple{1224, UInt8} end @@ -2147,6 +2203,14 @@ function Base.setproperty!(x::Ptr{ImGuiWindow}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiWindow, private::Bool = false) + (:Ctx, :Name, :ID, :Flags, :FlagsPreviousFrame, :ChildFlags, :WindowClass, :Viewport, :ViewportId, :ViewportPos, :ViewportAllowPlatformMonitorExtend, :Pos, :Size, :SizeFull, :ContentSize, :ContentSizeIdeal, :ContentSizeExplicit, :WindowPadding, :WindowRounding, :WindowBorderSize, :TitleBarHeight, :MenuBarHeight, :DecoOuterSizeX1, :DecoOuterSizeY1, :DecoOuterSizeX2, :DecoOuterSizeY2, :DecoInnerSizeX1, :DecoInnerSizeY1, :NameBufLen, :MoveId, :TabId, :ChildId, :PopupId, :Scroll, :ScrollMax, :ScrollTarget, :ScrollTargetCenterRatio, :ScrollTargetEdgeSnapDist, :ScrollbarSizes, :ScrollbarX, :ScrollbarY, :ScrollbarXStabilizeEnabled, :ScrollbarXStabilizeToggledHistory, :ViewportOwned, :Active, :WasActive, :WriteAccessed, :Collapsed, :WantCollapseToggle, :SkipItems, :SkipRefresh, :Appearing, :Hidden, :IsFallbackWindow, :IsExplicitChild, :HasCloseButton, :ResizeBorderHovered, :ResizeBorderHeld, :BeginCount, :BeginCountPreviousFrame, :BeginOrderWithinParent, :BeginOrderWithinContext, :FocusOrder, :AutoFitFramesX, :AutoFitFramesY, :AutoFitOnlyGrows, :AutoPosLastDirection, :HiddenFramesCanSkipItems, :HiddenFramesCannotSkipItems, :HiddenFramesForRenderOnly, :DisableInputsFrames, :SetWindowPosAllowFlags, :SetWindowSizeAllowFlags, :SetWindowCollapsedAllowFlags, :SetWindowDockAllowFlags, :SetWindowPosVal, :SetWindowPosPivot, :IDStack, :DC, :OuterRectClipped, :InnerRect, :InnerClipRect, :WorkRect, :ParentWorkRect, :ClipRect, :ContentRegionRect, :HitTestHoleSize, :HitTestHoleOffset, :LastFrameActive, :LastFrameJustFocused, :LastTimeActive, :ItemWidthDefault, :StateStorage, :ColumnsStorage, :FontWindowScale, :FontWindowScaleParents, :FontRefSize, :SettingsOffset, :DrawList, :DrawListInst, :ParentWindow, :ParentWindowInBeginStack, :RootWindow, :RootWindowPopupTree, :RootWindowDockTree, :RootWindowForTitleBarHighlight, :RootWindowForNav, :ParentWindowForFocusRoute, :NavLastChildNavWindow, :NavLastIds, :NavRectRel, :NavPreferredScoringPosRel, :NavRootFocusScopeId, :MemoryDrawListIdxCapacity, :MemoryDrawListVtxCapacity, :MemoryCompacted, :DockIsActive, :DockNodeIsVisible, :DockTabIsVisible, :DockTabWantClose, :DockOrder, :DockStyle, :DockNode, :DockNodeAsHost, :DockId, if private + fieldnames(typeof(x)) + else + () + end...) +end + const ImGuiItemFlags = Cint struct ImGuiLastItemData @@ -2327,6 +2391,14 @@ function Base.setproperty!(x::Ptr{ImGuiStyleMod}, f::Symbol, v) unsafe_store!(getproperty(x, f), v) end +function Base.propertynames(x::ImGuiStyleMod, private::Bool = false) + (:VarIdx, :BackupInt, :BackupFloat, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiStyleMod Size::Cint Capacity::Cint @@ -2813,6 +2885,14 @@ function Base.setproperty!(x::Ptr{ImGuiTableColumn}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiTableColumn, private::Bool = false) + (:Flags, :WidthGiven, :MinX, :MaxX, :WidthRequest, :WidthAuto, :WidthMax, :StretchWeight, :InitStretchWeightOrWidth, :ClipRect, :UserID, :WorkMinX, :WorkMaxX, :ItemWidth, :ContentMaxXFrozen, :ContentMaxXUnfrozen, :ContentMaxXHeadersUsed, :ContentMaxXHeadersIdeal, :NameOffset, :DisplayOrder, :IndexWithinEnabledSet, :PrevEnabledColumn, :NextEnabledColumn, :SortOrder, :DrawChannelCurrent, :DrawChannelFrozen, :DrawChannelUnfrozen, :IsEnabled, :IsUserEnabled, :IsUserEnabledNextFrame, :IsVisibleX, :IsVisibleY, :IsRequestOutput, :IsSkipItems, :IsPreserveWidthAuto, :NavLayerCurrent, :AutoFitQueue, :CannotSkipItemsQueue, :SortDirection, :SortDirectionsAvailCount, :SortDirectionsAvailMask, :SortDirectionsAvailList, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImSpan_ImGuiTableColumn Data::Ptr{ImGuiTableColumn} DataEnd::Ptr{ImGuiTableColumn} @@ -3041,6 +3121,14 @@ function Base.setproperty!(x::Ptr{ImGuiTable}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiTable, private::Bool = false) + (:ID, :Flags, :RawData, :TempData, :Columns, :DisplayOrderToIndex, :RowCellData, :EnabledMaskByDisplayOrder, :EnabledMaskByIndex, :VisibleMaskByIndex, :SettingsLoadedFlags, :SettingsOffset, :LastFrameActive, :ColumnsCount, :CurrentRow, :CurrentColumn, :InstanceCurrent, :InstanceInteracted, :RowPosY1, :RowPosY2, :RowMinHeight, :RowCellPaddingY, :RowTextBaseline, :RowIndentOffsetX, :RowFlags, :LastRowFlags, :RowBgColorCounter, :RowBgColor, :BorderColorStrong, :BorderColorLight, :BorderX1, :BorderX2, :HostIndentX, :MinColumnWidth, :OuterPaddingX, :CellPaddingX, :CellSpacingX1, :CellSpacingX2, :InnerWidth, :ColumnsGivenWidth, :ColumnsAutoFitWidth, :ColumnsStretchSumWeights, :ResizedColumnNextWidth, :ResizeLockMinContentsX2, :RefScale, :AngledHeadersHeight, :AngledHeadersSlope, :OuterRect, :InnerRect, :WorkRect, :InnerClipRect, :BgClipRect, :Bg0ClipRectForDrawCmd, :Bg2ClipRectForDrawCmd, :HostClipRect, :HostBackupInnerClipRect, :OuterWindow, :InnerWindow, :ColumnsNames, :DrawSplitter, :InstanceDataFirst, :InstanceDataExtra, :SortSpecsSingle, :SortSpecsMulti, :SortSpecs, :SortSpecsCount, :ColumnsEnabledCount, :ColumnsEnabledFixedCount, :DeclColumnsCount, :AngledHeadersCount, :HoveredColumnBody, :HoveredColumnBorder, :HighlightColumnHeader, :AutoFitSingleColumn, :ResizedColumn, :LastResizedColumn, :HeldHeaderColumn, :ReorderColumn, :ReorderColumnDir, :LeftMostEnabledColumn, :RightMostEnabledColumn, :LeftMostStretchedColumn, :RightMostStretchedColumn, :ContextPopupColumn, :FreezeRowsRequest, :FreezeRowsCount, :FreezeColumnsRequest, :FreezeColumnsCount, :RowCellDataCurrent, :DummyDrawChannel, :Bg2DrawChannelCurrent, :Bg2DrawChannelUnfrozen, :NavLayer, :IsLayoutLocked, :IsInsideRow, :IsInitializing, :IsSortSpecsDirty, :IsUsingHeaders, :IsContextPopupOpen, :DisableDefaultContextMenu, :IsSettingsRequestLoad, :IsSettingsDirty, :IsDefaultDisplayOrder, :IsResetAllRequest, :IsResetDisplayOrderRequest, :IsUnfrozenRows, :IsDefaultSizingPolicy, :IsActiveIdAliveBeforeTable, :IsActiveIdInTable, :HasScrollbarYCurr, :HasScrollbarYPrev, :MemoryCompacted, :HostSkipItems, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiTableTempData Size::Cint Capacity::Cint @@ -3164,6 +3252,14 @@ function Base.setproperty!(x::Ptr{ImGuiBoxSelectState}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiBoxSelectState, private::Bool = false) + (:ID, :IsActive, :IsStarting, :IsStartedFromVoid, :IsStartedSetNavIdOnce, :RequestClear, :KeyMods, :StartPosRel, :EndPosRel, :ScrollAccum, :Window, :UnclipMode, :UnclipRect, :BoxSelectRectPrev, :BoxSelectRectCurr, if private + fieldnames(typeof(x)) + else + () + end...) +end + @cenum ImGuiSelectionRequestType::UInt32 begin ImGuiSelectionRequestType_None = 0 ImGuiSelectionRequestType_SetAll = 1 @@ -3495,6 +3591,14 @@ function Base.setproperty!(x::Ptr{ImGuiStackLevelInfo}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiStackLevelInfo, private::Bool = false) + (:ID, :QueryFrameCount, :QuerySuccess, :DataType, :Desc, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImVector_ImGuiStackLevelInfo Size::Cint Capacity::Cint @@ -3893,6 +3997,14 @@ function Base.setproperty!(x::Ptr{ImGuiContext}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiContext, private::Bool = false) + (:Initialized, :IO, :PlatformIO, :Style, :ConfigFlagsCurrFrame, :ConfigFlagsLastFrame, :FontAtlases, :Font, :FontBaked, :FontSize, :FontSizeBase, :FontBakedScale, :FontRasterizerDensity, :CurrentDpiScale, :DrawListSharedData, :Time, :FrameCount, :FrameCountEnded, :FrameCountPlatformEnded, :FrameCountRendered, :WithinEndChildID, :WithinFrameScope, :WithinFrameScopeWithImplicitWindow, :GcCompactAll, :TestEngineHookItems, :TestEngine, :ContextName, :InputEventsQueue, :InputEventsTrail, :InputEventsNextMouseSource, :InputEventsNextEventId, :Windows, :WindowsFocusOrder, :WindowsTempSortBuffer, :CurrentWindowStack, :WindowsById, :WindowsActiveCount, :WindowsBorderHoverPadding, :DebugBreakInWindow, :CurrentWindow, :HoveredWindow, :HoveredWindowUnderMovingWindow, :HoveredWindowBeforeClear, :MovingWindow, :WheelingWindow, :WheelingWindowRefMousePos, :WheelingWindowStartFrame, :WheelingWindowScrolledFrame, :WheelingWindowReleaseTimer, :WheelingWindowWheelRemainder, :WheelingAxisAvg, :DebugDrawIdConflictsId, :DebugHookIdInfo, :HoveredId, :HoveredIdPreviousFrame, :HoveredIdPreviousFrameItemCount, :HoveredIdTimer, :HoveredIdNotActiveTimer, :HoveredIdAllowOverlap, :HoveredIdIsDisabled, :ItemUnclipByLog, :ActiveId, :ActiveIdIsAlive, :ActiveIdTimer, :ActiveIdIsJustActivated, :ActiveIdAllowOverlap, :ActiveIdNoClearOnFocusLoss, :ActiveIdHasBeenPressedBefore, :ActiveIdHasBeenEditedBefore, :ActiveIdHasBeenEditedThisFrame, :ActiveIdFromShortcut, :ActiveIdMouseButton, :ActiveIdClickOffset, :ActiveIdWindow, :ActiveIdSource, :ActiveIdPreviousFrame, :DeactivatedItemData, :ActiveIdValueOnActivation, :LastActiveId, :LastActiveIdTimer, :LastKeyModsChangeTime, :LastKeyModsChangeFromNoneTime, :LastKeyboardKeyPressTime, :KeysMayBeCharInput, :KeysOwnerData, :KeysRoutingTable, :ActiveIdUsingNavDirMask, :ActiveIdUsingAllKeyboardKeys, :DebugBreakInShortcutRouting, :CurrentFocusScopeId, :CurrentItemFlags, :DebugLocateId, :NextItemData, :LastItemData, :NextWindowData, :DebugShowGroupRects, :DebugFlashStyleColorIdx, :ColorStack, :StyleVarStack, :FontStack, :FocusScopeStack, :ItemFlagsStack, :GroupStack, :OpenPopupStack, :BeginPopupStack, :TreeNodeStack, :Viewports, :CurrentViewport, :MouseViewport, :MouseLastHoveredViewport, :PlatformLastFocusedViewportId, :FallbackMonitor, :PlatformMonitorsFullWorkRect, :ViewportCreatedCount, :PlatformWindowsCreatedCount, :ViewportFocusedStampCount, :NavCursorVisible, :NavHighlightItemUnderNav, :NavMousePosDirty, :NavIdIsAlive, :NavId, :NavWindow, :NavFocusScopeId, :NavLayer, :NavActivateId, :NavActivateDownId, :NavActivatePressedId, :NavActivateFlags, :NavFocusRoute, :NavHighlightActivatedId, :NavHighlightActivatedTimer, :NavNextActivateId, :NavNextActivateFlags, :NavInputSource, :NavLastValidSelectionUserData, :NavCursorHideFrames, :NavAnyRequest, :NavInitRequest, :NavInitRequestFromMove, :NavInitResult, :NavMoveSubmitted, :NavMoveScoringItems, :NavMoveForwardToNextFrame, :NavMoveFlags, :NavMoveScrollFlags, :NavMoveKeyMods, :NavMoveDir, :NavMoveDirForDebug, :NavMoveClipDir, :NavScoringRect, :NavScoringNoClipRect, :NavScoringDebugCount, :NavTabbingDir, :NavTabbingCounter, :NavMoveResultLocal, :NavMoveResultLocalVisible, :NavMoveResultOther, :NavTabbingResultFirst, :NavJustMovedFromFocusScopeId, :NavJustMovedToId, :NavJustMovedToFocusScopeId, :NavJustMovedToKeyMods, :NavJustMovedToIsTabbing, :NavJustMovedToHasSelectionData, :ConfigNavWindowingWithGamepad, :ConfigNavWindowingKeyNext, :ConfigNavWindowingKeyPrev, :NavWindowingTarget, :NavWindowingTargetAnim, :NavWindowingListWindow, :NavWindowingTimer, :NavWindowingHighlightAlpha, :NavWindowingInputSource, :NavWindowingToggleLayer, :NavWindowingToggleKey, :NavWindowingAccumDeltaPos, :NavWindowingAccumDeltaSize, :DimBgRatio, :DragDropActive, :DragDropWithinSource, :DragDropWithinTarget, :DragDropSourceFlags, :DragDropSourceFrameCount, :DragDropMouseButton, :DragDropPayload, :DragDropTargetRect, :DragDropTargetClipRect, :DragDropTargetId, :DragDropAcceptFlags, :DragDropAcceptIdCurrRectSurface, :DragDropAcceptIdCurr, :DragDropAcceptIdPrev, :DragDropAcceptFrameCount, :DragDropHoldJustPressedId, :DragDropPayloadBufHeap, :DragDropPayloadBufLocal, :ClipperTempDataStacked, :ClipperTempData, :CurrentTable, :DebugBreakInTable, :TablesTempDataStacked, :TablesTempData, :Tables, :TablesLastTimeActive, :DrawChannelsTempMergeBuffer, :CurrentTabBar, :TabBars, :CurrentTabBarStack, :ShrinkWidthBuffer, :BoxSelectState, :CurrentMultiSelect, :MultiSelectTempDataStacked, :MultiSelectTempData, :MultiSelectStorage, :HoverItemDelayId, :HoverItemDelayIdPreviousFrame, :HoverItemDelayTimer, :HoverItemDelayClearTimer, :HoverItemUnlockedStationaryId, :HoverWindowUnlockedStationaryId, :MouseCursor, :MouseStationaryTimer, :MouseLastValidPos, :InputTextState, :InputTextDeactivatedState, :InputTextPasswordFontBackupBaked, :InputTextPasswordFontBackupFlags, :TempInputId, :DataTypeZeroValue, :BeginMenuDepth, :BeginComboDepth, :ColorEditOptions, :ColorEditCurrentID, :ColorEditSavedID, :ColorEditSavedHue, :ColorEditSavedSat, :ColorEditSavedColor, :ColorPickerRef, :ComboPreviewData, :WindowResizeBorderExpectedRect, :WindowResizeRelativeMode, :ScrollbarSeekMode, :ScrollbarClickDeltaToGrabCenter, :SliderGrabClickOffset, :SliderCurrentAccum, :SliderCurrentAccumDirty, :DragCurrentAccumDirty, :DragCurrentAccum, :DragSpeedDefaultRatio, :DisabledAlphaBackup, :DisabledStackSize, :TooltipOverrideCount, :TooltipPreviousWindow, :ClipboardHandlerData, :MenusIdSubmittedThisFrame, :TypingSelectState, :PlatformImeData, :PlatformImeDataPrev, :UserTextures, :DockContext, :DockNodeWindowMenuHandler, :SettingsLoaded, :SettingsDirtyTimer, :SettingsIniData, :SettingsHandlers, :SettingsWindows, :SettingsTables, :Hooks, :HookIdNext, :LocalizationTable, :LogEnabled, :LogFlags, :LogWindow, :LogFile, :LogBuffer, :LogNextPrefix, :LogNextSuffix, :LogLinePosY, :LogLineFirstItem, :LogDepthRef, :LogDepthToExpand, :LogDepthToExpandDefault, :ErrorCallback, :ErrorCallbackUserData, :ErrorTooltipLockedPos, :ErrorFirst, :ErrorCountCurrentFrame, :StackSizesInNewFrame, :StackSizesInBeginForCurrentWindow, :DebugDrawIdConflictsCount, :DebugLogFlags, :DebugLogBuf, :DebugLogIndex, :DebugLogSkippedErrors, :DebugLogAutoDisableFlags, :DebugLogAutoDisableFrames, :DebugLocateFrames, :DebugBreakInLocateId, :DebugBreakKeyChord, :DebugBeginReturnValueCullDepth, :DebugItemPickerActive, :DebugItemPickerMouseButton, :DebugItemPickerBreakId, :DebugFlashStyleColorTime, :DebugFlashStyleColorBackup, :DebugMetricsConfig, :DebugIDStackTool, :DebugAllocInfo, :DebugHoveredDockNode, :FramerateSecPerFrame, :FramerateSecPerFrameIdx, :FramerateSecPerFrameCount, :FramerateSecPerFrameAccum, :WantCaptureMouseNextFrame, :WantCaptureKeyboardNextFrame, :WantTextInputNextFrame, :TempBuffer, :TempKeychordName, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImGuiInputTextCallbackData Ctx::Ptr{ImGuiContext} EventFlag::ImGuiInputTextFlags @@ -4065,6 +4177,14 @@ function Base.setproperty!(x::Ptr{ImGuiStyleVarInfo}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiStyleVarInfo, private::Bool = false) + (:Count, :DataType, :Offset, if private + fieldnames(typeof(x)) + else + () + end...) +end + struct ImGuiTableSettings ID::ImGuiID SaveFlags::ImGuiTableFlags @@ -5216,6 +5336,14 @@ function Base.setproperty!(x::Ptr{ImGuiTableColumnSettings}, f::Symbol, v) end end +function Base.propertynames(x::ImGuiTableColumnSettings, private::Bool = false) + (:WidthOrWeight, :UserID, :Index, :DisplayOrder, :SortOrder, :SortDirection, :IsEnabled, :IsStretch, if private + fieldnames(typeof(x)) + else + () + end...) +end + function ImVec2_ImVec2_Nil() ccall((:ImVec2_ImVec2_Nil, libcimgui), Ptr{ImVec2}, ()) end @@ -11705,36 +11833,60 @@ struct ImPool_ImPlotAlignmentData end struct ImPlotContext - Plots::ImPool_ImPlotPlot - Subplots::ImPool_ImPlotSubplot - CurrentPlot::Ptr{ImPlotPlot} - CurrentSubplot::Ptr{ImPlotSubplot} - CurrentItems::Ptr{ImPlotItemGroup} - CurrentItem::Ptr{ImPlotItem} - PreviousItem::Ptr{ImPlotItem} - CTicker::ImPlotTicker - Annotations::ImPlotAnnotationCollection - Tags::ImPlotTagCollection - Style::ImPlotStyle - ColorModifiers::ImVector_ImGuiColorMod - StyleModifiers::ImVector_ImGuiStyleMod - ColormapData::ImPlotColormapData - ColormapModifiers::ImVector_ImPlotColormap - Tm::tm - TempDouble1::ImVector_double - TempDouble2::ImVector_double - TempInt1::ImVector_int - DigitalPlotItemCnt::Cint - DigitalPlotOffset::Cint - NextPlotData::ImPlotNextPlotData - NextItemData::ImPlotNextItemData - InputMap::ImPlotInputMap - OpenContextThisFrame::Bool - MousePosStringBuilder::ImGuiTextBuffer - SortItems::Ptr{ImPlotItemGroup} - AlignmentData::ImPool_ImPlotAlignmentData - CurrentAlignmentH::Ptr{ImPlotAlignmentData} - CurrentAlignmentV::Ptr{ImPlotAlignmentData} + data::NTuple{1584, UInt8} +end + +function Base.getproperty(x::Ptr{ImPlotContext}, f::Symbol) + f === :Plots && return Ptr{ImPool_ImPlotPlot}(x + 0) + f === :Subplots && return Ptr{ImPool_ImPlotSubplot}(x + 40) + f === :CurrentPlot && return Ptr{Ptr{ImPlotPlot}}(x + 80) + f === :CurrentSubplot && return Ptr{Ptr{ImPlotSubplot}}(x + 88) + f === :CurrentItems && return Ptr{Ptr{ImPlotItemGroup}}(x + 96) + f === :CurrentItem && return Ptr{Ptr{ImPlotItem}}(x + 104) + f === :PreviousItem && return Ptr{Ptr{ImPlotItem}}(x + 112) + f === :CTicker && return Ptr{ImPlotTicker}(x + 120) + f === :Annotations && return Ptr{ImPlotAnnotationCollection}(x + 176) + f === :Tags && return Ptr{ImPlotTagCollection}(x + 216) + f === :Style && return Ptr{ImPlotStyle}(x + 256) + f === :ColorModifiers && return Ptr{ImVector_ImGuiColorMod}(x + 776) + f === :StyleModifiers && return Ptr{ImVector_ImGuiStyleMod}(x + 792) + f === :ColormapData && return Ptr{ImPlotColormapData}(x + 808) + f === :ColormapModifiers && return Ptr{ImVector_ImPlotColormap}(x + 976) + f === :Tm && return Ptr{tm}(x + 992) + f === :TempDouble1 && return Ptr{ImVector_double}(x + 1032) + f === :TempDouble2 && return Ptr{ImVector_double}(x + 1048) + f === :TempInt1 && return Ptr{ImVector_int}(x + 1064) + f === :DigitalPlotItemCnt && return Ptr{Cint}(x + 1080) + f === :DigitalPlotOffset && return Ptr{Cint}(x + 1084) + f === :NextPlotData && return Ptr{ImPlotNextPlotData}(x + 1088) + f === :NextItemData && return Ptr{ImPlotNextItemData}(x + 1320) + f === :InputMap && return Ptr{ImPlotInputMap}(x + 1448) + f === :OpenContextThisFrame && return Ptr{Bool}(x + 1496) + f === :MousePosStringBuilder && return Ptr{ImGuiTextBuffer}(x + 1504) + f === :SortItems && return Ptr{Ptr{ImPlotItemGroup}}(x + 1520) + f === :AlignmentData && return Ptr{ImPool_ImPlotAlignmentData}(x + 1528) + f === :CurrentAlignmentH && return Ptr{Ptr{ImPlotAlignmentData}}(x + 1568) + f === :CurrentAlignmentV && return Ptr{Ptr{ImPlotAlignmentData}}(x + 1576) + return getfield(x, f) +end + +function Base.getproperty(x::ImPlotContext, f::Symbol) + r = Ref{ImPlotContext}(x) + ptr = Base.unsafe_convert(Ptr{ImPlotContext}, r) + fptr = getproperty(ptr, f) + GC.@preserve r unsafe_load(fptr) +end + +function Base.setproperty!(x::Ptr{ImPlotContext}, f::Symbol, v) + unsafe_store!(getproperty(x, f), v) +end + +function Base.propertynames(x::ImPlotContext, private::Bool = false) + (:Plots, :Subplots, :CurrentPlot, :CurrentSubplot, :CurrentItems, :CurrentItem, :PreviousItem, :CTicker, :Annotations, :Tags, :Style, :ColorModifiers, :StyleModifiers, :ColormapData, :ColormapModifiers, :Tm, :TempDouble1, :TempDouble2, :TempInt1, :DigitalPlotItemCnt, :DigitalPlotOffset, :NextPlotData, :NextItemData, :InputMap, :OpenContextThisFrame, :MousePosStringBuilder, :SortItems, :AlignmentData, :CurrentAlignmentH, :CurrentAlignmentV, if private + fieldnames(typeof(x)) + else + () + end...) end mutable struct ImPlotAxisColor end diff --git a/src/wrapper.jl b/src/wrapper.jl index fccff34..32651d0 100644 --- a/src/wrapper.jl +++ b/src/wrapper.jl @@ -1203,6 +1203,7 @@ Formatted text. [Upstream link](https://github.com/ocornut/imgui/blob/v1.92.1-docking/imgui.h#L613). """ +function Text end Text(fmt) = igText(fmt) """