diff --git a/Project.toml b/Project.toml index 8e90c66..aa57cd5 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "LibCImGui" uuid = "9be01004-c4f5-478b-abeb-cb32b114cf5e" authors = ["Yupei Qi "] -version = "1.82.1" +version = "1.82.2" [deps] CEnum = "fa961155-64e5-5f13-b03f-caf6b980ea82" diff --git a/gen/generator.toml b/gen/generator.toml index 40d5bf0..25b7c0f 100644 --- a/gen/generator.toml +++ b/gen/generator.toml @@ -23,4 +23,5 @@ field_access_method_list = [ "ImVec2", "ImVec4", "ImGuiPlatformMonitor", + "ImGuiStyle", ] \ No newline at end of file diff --git a/lib/aarch64-apple-darwin20.jl b/lib/aarch64-apple-darwin20.jl index 31de4c4..b8cb22a 100644 --- a/lib/aarch64-apple-darwin20.jl +++ b/lib/aarch64-apple-darwin20.jl @@ -1544,6 +1544,54 @@ struct ImGuiStyle Colors::NTuple{55, ImVec4} end +function Base.getproperty(x::Ptr{ImGuiStyle}, f::Symbol) + f === :Alpha && return Ptr{Cfloat}(x + 0) + f === :WindowPadding && return Ptr{ImVec2}(x + 4) + f === :WindowRounding && return Ptr{Cfloat}(x + 12) + f === :WindowBorderSize && return Ptr{Cfloat}(x + 16) + f === :WindowMinSize && return Ptr{ImVec2}(x + 20) + f === :WindowTitleAlign && return Ptr{ImVec2}(x + 28) + f === :WindowMenuButtonPosition && return Ptr{ImGuiDir}(x + 36) + f === :ChildRounding && return Ptr{Cfloat}(x + 40) + f === :ChildBorderSize && return Ptr{Cfloat}(x + 44) + f === :PopupRounding && return Ptr{Cfloat}(x + 48) + f === :PopupBorderSize && return Ptr{Cfloat}(x + 52) + f === :FramePadding && return Ptr{ImVec2}(x + 56) + f === :FrameRounding && return Ptr{Cfloat}(x + 64) + f === :FrameBorderSize && return Ptr{Cfloat}(x + 68) + f === :ItemSpacing && return Ptr{ImVec2}(x + 72) + f === :ItemInnerSpacing && return Ptr{ImVec2}(x + 80) + f === :CellPadding && return Ptr{ImVec2}(x + 88) + f === :TouchExtraPadding && return Ptr{ImVec2}(x + 96) + f === :IndentSpacing && return Ptr{Cfloat}(x + 104) + f === :ColumnsMinSpacing && return Ptr{Cfloat}(x + 108) + f === :ScrollbarSize && return Ptr{Cfloat}(x + 112) + f === :ScrollbarRounding && return Ptr{Cfloat}(x + 116) + f === :GrabMinSize && return Ptr{Cfloat}(x + 120) + f === :GrabRounding && return Ptr{Cfloat}(x + 124) + f === :LogSliderDeadzone && return Ptr{Cfloat}(x + 128) + f === :TabRounding && return Ptr{Cfloat}(x + 132) + f === :TabBorderSize && return Ptr{Cfloat}(x + 136) + f === :TabMinWidthForCloseButton && return Ptr{Cfloat}(x + 140) + f === :ColorButtonPosition && return Ptr{ImGuiDir}(x + 144) + f === :ButtonTextAlign && return Ptr{ImVec2}(x + 148) + f === :SelectableTextAlign && return Ptr{ImVec2}(x + 156) + f === :DisplayWindowPadding && return Ptr{ImVec2}(x + 164) + f === :DisplaySafeAreaPadding && return Ptr{ImVec2}(x + 172) + f === :MouseCursorScale && return Ptr{Cfloat}(x + 180) + f === :AntiAliasedLines && return Ptr{Bool}(x + 184) + f === :AntiAliasedLinesUseTex && return Ptr{Bool}(x + 185) + f === :AntiAliasedFill && return Ptr{Bool}(x + 186) + f === :CurveTessellationTol && return Ptr{Cfloat}(x + 188) + f === :CircleTessellationMaxError && return Ptr{Cfloat}(x + 192) + f === :Colors && return Ptr{NTuple{55, ImVec4}}(x + 196) + return getfield(x, f) +end + +function Base.setproperty!(x::Ptr{ImGuiStyle}, f::Symbol, v) + unsafe_store!(getproperty(x, f), v) +end + struct ImGuiSizeCallbackData UserData::Ptr{Cvoid} Pos::ImVec2 diff --git a/lib/aarch64-linux-gnu.jl b/lib/aarch64-linux-gnu.jl index 414c221..e15e3ea 100644 --- a/lib/aarch64-linux-gnu.jl +++ b/lib/aarch64-linux-gnu.jl @@ -1544,6 +1544,54 @@ struct ImGuiStyle Colors::NTuple{55, ImVec4} end +function Base.getproperty(x::Ptr{ImGuiStyle}, f::Symbol) + f === :Alpha && return Ptr{Cfloat}(x + 0) + f === :WindowPadding && return Ptr{ImVec2}(x + 4) + f === :WindowRounding && return Ptr{Cfloat}(x + 12) + f === :WindowBorderSize && return Ptr{Cfloat}(x + 16) + f === :WindowMinSize && return Ptr{ImVec2}(x + 20) + f === :WindowTitleAlign && return Ptr{ImVec2}(x + 28) + f === :WindowMenuButtonPosition && return Ptr{ImGuiDir}(x + 36) + f === :ChildRounding && return Ptr{Cfloat}(x + 40) + f === :ChildBorderSize && return Ptr{Cfloat}(x + 44) + f === :PopupRounding && return Ptr{Cfloat}(x + 48) + f === :PopupBorderSize && return Ptr{Cfloat}(x + 52) + f === :FramePadding && return Ptr{ImVec2}(x + 56) + f === :FrameRounding && return Ptr{Cfloat}(x + 64) + f === :FrameBorderSize && return Ptr{Cfloat}(x + 68) + f === :ItemSpacing && return Ptr{ImVec2}(x + 72) + f === :ItemInnerSpacing && return Ptr{ImVec2}(x + 80) + f === :CellPadding && return Ptr{ImVec2}(x + 88) + f === :TouchExtraPadding && return Ptr{ImVec2}(x + 96) + f === :IndentSpacing && return Ptr{Cfloat}(x + 104) + f === :ColumnsMinSpacing && return Ptr{Cfloat}(x + 108) + f === :ScrollbarSize && return Ptr{Cfloat}(x + 112) + f === :ScrollbarRounding && return Ptr{Cfloat}(x + 116) + f === :GrabMinSize && return Ptr{Cfloat}(x + 120) + f === :GrabRounding && return Ptr{Cfloat}(x + 124) + f === :LogSliderDeadzone && return Ptr{Cfloat}(x + 128) + f === :TabRounding && return Ptr{Cfloat}(x + 132) + f === :TabBorderSize && return Ptr{Cfloat}(x + 136) + f === :TabMinWidthForCloseButton && return Ptr{Cfloat}(x + 140) + f === :ColorButtonPosition && return Ptr{ImGuiDir}(x + 144) + f === :ButtonTextAlign && return Ptr{ImVec2}(x + 148) + f === :SelectableTextAlign && return Ptr{ImVec2}(x + 156) + f === :DisplayWindowPadding && return Ptr{ImVec2}(x + 164) + f === :DisplaySafeAreaPadding && return Ptr{ImVec2}(x + 172) + f === :MouseCursorScale && return Ptr{Cfloat}(x + 180) + f === :AntiAliasedLines && return Ptr{Bool}(x + 184) + f === :AntiAliasedLinesUseTex && return Ptr{Bool}(x + 185) + f === :AntiAliasedFill && return Ptr{Bool}(x + 186) + f === :CurveTessellationTol && return Ptr{Cfloat}(x + 188) + f === :CircleTessellationMaxError && return Ptr{Cfloat}(x + 192) + f === :Colors && return Ptr{NTuple{55, ImVec4}}(x + 196) + return getfield(x, f) +end + +function Base.setproperty!(x::Ptr{ImGuiStyle}, f::Symbol, v) + unsafe_store!(getproperty(x, f), v) +end + struct ImGuiSizeCallbackData UserData::Ptr{Cvoid} Pos::ImVec2 diff --git a/lib/aarch64-linux-musl.jl b/lib/aarch64-linux-musl.jl index d4732ab..6603240 100644 --- a/lib/aarch64-linux-musl.jl +++ b/lib/aarch64-linux-musl.jl @@ -1542,6 +1542,54 @@ struct ImGuiStyle Colors::NTuple{55, ImVec4} end +function Base.getproperty(x::Ptr{ImGuiStyle}, f::Symbol) + f === :Alpha && return Ptr{Cfloat}(x + 0) + f === :WindowPadding && return Ptr{ImVec2}(x + 4) + f === :WindowRounding && return Ptr{Cfloat}(x + 12) + f === :WindowBorderSize && return Ptr{Cfloat}(x + 16) + f === :WindowMinSize && return Ptr{ImVec2}(x + 20) + f === :WindowTitleAlign && return Ptr{ImVec2}(x + 28) + f === :WindowMenuButtonPosition && return Ptr{ImGuiDir}(x + 36) + f === :ChildRounding && return Ptr{Cfloat}(x + 40) + f === :ChildBorderSize && return Ptr{Cfloat}(x + 44) + f === :PopupRounding && return Ptr{Cfloat}(x + 48) + f === :PopupBorderSize && return Ptr{Cfloat}(x + 52) + f === :FramePadding && return Ptr{ImVec2}(x + 56) + f === :FrameRounding && return Ptr{Cfloat}(x + 64) + f === :FrameBorderSize && return Ptr{Cfloat}(x + 68) + f === :ItemSpacing && return Ptr{ImVec2}(x + 72) + f === :ItemInnerSpacing && return Ptr{ImVec2}(x + 80) + f === :CellPadding && return Ptr{ImVec2}(x + 88) + f === :TouchExtraPadding && return Ptr{ImVec2}(x + 96) + f === :IndentSpacing && return Ptr{Cfloat}(x + 104) + f === :ColumnsMinSpacing && return Ptr{Cfloat}(x + 108) + f === :ScrollbarSize && return Ptr{Cfloat}(x + 112) + f === :ScrollbarRounding && return Ptr{Cfloat}(x + 116) + f === :GrabMinSize && return Ptr{Cfloat}(x + 120) + f === :GrabRounding && return Ptr{Cfloat}(x + 124) + f === :LogSliderDeadzone && return Ptr{Cfloat}(x + 128) + f === :TabRounding && return Ptr{Cfloat}(x + 132) + f === :TabBorderSize && return Ptr{Cfloat}(x + 136) + f === :TabMinWidthForCloseButton && return Ptr{Cfloat}(x + 140) + f === :ColorButtonPosition && return Ptr{ImGuiDir}(x + 144) + f === :ButtonTextAlign && return Ptr{ImVec2}(x + 148) + f === :SelectableTextAlign && return Ptr{ImVec2}(x + 156) + f === :DisplayWindowPadding && return Ptr{ImVec2}(x + 164) + f === :DisplaySafeAreaPadding && return Ptr{ImVec2}(x + 172) + f === :MouseCursorScale && return Ptr{Cfloat}(x + 180) + f === :AntiAliasedLines && return Ptr{Bool}(x + 184) + f === :AntiAliasedLinesUseTex && return Ptr{Bool}(x + 185) + f === :AntiAliasedFill && return Ptr{Bool}(x + 186) + f === :CurveTessellationTol && return Ptr{Cfloat}(x + 188) + f === :CircleTessellationMaxError && return Ptr{Cfloat}(x + 192) + f === :Colors && return Ptr{NTuple{55, ImVec4}}(x + 196) + return getfield(x, f) +end + +function Base.setproperty!(x::Ptr{ImGuiStyle}, f::Symbol, v) + unsafe_store!(getproperty(x, f), v) +end + struct ImGuiSizeCallbackData UserData::Ptr{Cvoid} Pos::ImVec2 diff --git a/lib/armv7l-linux-gnueabihf.jl b/lib/armv7l-linux-gnueabihf.jl index c6baa1b..911b5f5 100644 --- a/lib/armv7l-linux-gnueabihf.jl +++ b/lib/armv7l-linux-gnueabihf.jl @@ -1544,6 +1544,54 @@ struct ImGuiStyle Colors::NTuple{55, ImVec4} end +function Base.getproperty(x::Ptr{ImGuiStyle}, f::Symbol) + f === :Alpha && return Ptr{Cfloat}(x + 0) + f === :WindowPadding && return Ptr{ImVec2}(x + 4) + f === :WindowRounding && return Ptr{Cfloat}(x + 12) + f === :WindowBorderSize && return Ptr{Cfloat}(x + 16) + f === :WindowMinSize && return Ptr{ImVec2}(x + 20) + f === :WindowTitleAlign && return Ptr{ImVec2}(x + 28) + f === :WindowMenuButtonPosition && return Ptr{ImGuiDir}(x + 36) + f === :ChildRounding && return Ptr{Cfloat}(x + 40) + f === :ChildBorderSize && return Ptr{Cfloat}(x + 44) + f === :PopupRounding && return Ptr{Cfloat}(x + 48) + f === :PopupBorderSize && return Ptr{Cfloat}(x + 52) + f === :FramePadding && return Ptr{ImVec2}(x + 56) + f === :FrameRounding && return Ptr{Cfloat}(x + 64) + f === :FrameBorderSize && return Ptr{Cfloat}(x + 68) + f === :ItemSpacing && return Ptr{ImVec2}(x + 72) + f === :ItemInnerSpacing && return Ptr{ImVec2}(x + 80) + f === :CellPadding && return Ptr{ImVec2}(x + 88) + f === :TouchExtraPadding && return Ptr{ImVec2}(x + 96) + f === :IndentSpacing && return Ptr{Cfloat}(x + 104) + f === :ColumnsMinSpacing && return Ptr{Cfloat}(x + 108) + f === :ScrollbarSize && return Ptr{Cfloat}(x + 112) + f === :ScrollbarRounding && return Ptr{Cfloat}(x + 116) + f === :GrabMinSize && return Ptr{Cfloat}(x + 120) + f === :GrabRounding && return Ptr{Cfloat}(x + 124) + f === :LogSliderDeadzone && return Ptr{Cfloat}(x + 128) + f === :TabRounding && return Ptr{Cfloat}(x + 132) + f === :TabBorderSize && return Ptr{Cfloat}(x + 136) + f === :TabMinWidthForCloseButton && return Ptr{Cfloat}(x + 140) + f === :ColorButtonPosition && return Ptr{ImGuiDir}(x + 144) + f === :ButtonTextAlign && return Ptr{ImVec2}(x + 148) + f === :SelectableTextAlign && return Ptr{ImVec2}(x + 156) + f === :DisplayWindowPadding && return Ptr{ImVec2}(x + 164) + f === :DisplaySafeAreaPadding && return Ptr{ImVec2}(x + 172) + f === :MouseCursorScale && return Ptr{Cfloat}(x + 180) + f === :AntiAliasedLines && return Ptr{Bool}(x + 184) + f === :AntiAliasedLinesUseTex && return Ptr{Bool}(x + 185) + f === :AntiAliasedFill && return Ptr{Bool}(x + 186) + f === :CurveTessellationTol && return Ptr{Cfloat}(x + 188) + f === :CircleTessellationMaxError && return Ptr{Cfloat}(x + 192) + f === :Colors && return Ptr{NTuple{55, ImVec4}}(x + 196) + return getfield(x, f) +end + +function Base.setproperty!(x::Ptr{ImGuiStyle}, f::Symbol, v) + unsafe_store!(getproperty(x, f), v) +end + struct ImGuiSizeCallbackData UserData::Ptr{Cvoid} Pos::ImVec2 diff --git a/lib/armv7l-linux-musleabihf.jl b/lib/armv7l-linux-musleabihf.jl index 8b22abe..c22ff7d 100644 --- a/lib/armv7l-linux-musleabihf.jl +++ b/lib/armv7l-linux-musleabihf.jl @@ -1542,6 +1542,54 @@ struct ImGuiStyle Colors::NTuple{55, ImVec4} end +function Base.getproperty(x::Ptr{ImGuiStyle}, f::Symbol) + f === :Alpha && return Ptr{Cfloat}(x + 0) + f === :WindowPadding && return Ptr{ImVec2}(x + 4) + f === :WindowRounding && return Ptr{Cfloat}(x + 12) + f === :WindowBorderSize && return Ptr{Cfloat}(x + 16) + f === :WindowMinSize && return Ptr{ImVec2}(x + 20) + f === :WindowTitleAlign && return Ptr{ImVec2}(x + 28) + f === :WindowMenuButtonPosition && return Ptr{ImGuiDir}(x + 36) + f === :ChildRounding && return Ptr{Cfloat}(x + 40) + f === :ChildBorderSize && return Ptr{Cfloat}(x + 44) + f === :PopupRounding && return Ptr{Cfloat}(x + 48) + f === :PopupBorderSize && return Ptr{Cfloat}(x + 52) + f === :FramePadding && return Ptr{ImVec2}(x + 56) + f === :FrameRounding && return Ptr{Cfloat}(x + 64) + f === :FrameBorderSize && return Ptr{Cfloat}(x + 68) + f === :ItemSpacing && return Ptr{ImVec2}(x + 72) + f === :ItemInnerSpacing && return Ptr{ImVec2}(x + 80) + f === :CellPadding && return Ptr{ImVec2}(x + 88) + f === :TouchExtraPadding && return Ptr{ImVec2}(x + 96) + f === :IndentSpacing && return Ptr{Cfloat}(x + 104) + f === :ColumnsMinSpacing && return Ptr{Cfloat}(x + 108) + f === :ScrollbarSize && return Ptr{Cfloat}(x + 112) + f === :ScrollbarRounding && return Ptr{Cfloat}(x + 116) + f === :GrabMinSize && return Ptr{Cfloat}(x + 120) + f === :GrabRounding && return Ptr{Cfloat}(x + 124) + f === :LogSliderDeadzone && return Ptr{Cfloat}(x + 128) + f === :TabRounding && return Ptr{Cfloat}(x + 132) + f === :TabBorderSize && return Ptr{Cfloat}(x + 136) + f === :TabMinWidthForCloseButton && return Ptr{Cfloat}(x + 140) + f === :ColorButtonPosition && return Ptr{ImGuiDir}(x + 144) + f === :ButtonTextAlign && return Ptr{ImVec2}(x + 148) + f === :SelectableTextAlign && return Ptr{ImVec2}(x + 156) + f === :DisplayWindowPadding && return Ptr{ImVec2}(x + 164) + f === :DisplaySafeAreaPadding && return Ptr{ImVec2}(x + 172) + f === :MouseCursorScale && return Ptr{Cfloat}(x + 180) + f === :AntiAliasedLines && return Ptr{Bool}(x + 184) + f === :AntiAliasedLinesUseTex && return Ptr{Bool}(x + 185) + f === :AntiAliasedFill && return Ptr{Bool}(x + 186) + f === :CurveTessellationTol && return Ptr{Cfloat}(x + 188) + f === :CircleTessellationMaxError && return Ptr{Cfloat}(x + 192) + f === :Colors && return Ptr{NTuple{55, ImVec4}}(x + 196) + return getfield(x, f) +end + +function Base.setproperty!(x::Ptr{ImGuiStyle}, f::Symbol, v) + unsafe_store!(getproperty(x, f), v) +end + struct ImGuiSizeCallbackData UserData::Ptr{Cvoid} Pos::ImVec2 diff --git a/lib/i686-linux-gnu.jl b/lib/i686-linux-gnu.jl index f375554..bbfd8dd 100644 --- a/lib/i686-linux-gnu.jl +++ b/lib/i686-linux-gnu.jl @@ -1544,6 +1544,54 @@ struct ImGuiStyle Colors::NTuple{55, ImVec4} end +function Base.getproperty(x::Ptr{ImGuiStyle}, f::Symbol) + f === :Alpha && return Ptr{Cfloat}(x + 0) + f === :WindowPadding && return Ptr{ImVec2}(x + 4) + f === :WindowRounding && return Ptr{Cfloat}(x + 12) + f === :WindowBorderSize && return Ptr{Cfloat}(x + 16) + f === :WindowMinSize && return Ptr{ImVec2}(x + 20) + f === :WindowTitleAlign && return Ptr{ImVec2}(x + 28) + f === :WindowMenuButtonPosition && return Ptr{ImGuiDir}(x + 36) + f === :ChildRounding && return Ptr{Cfloat}(x + 40) + f === :ChildBorderSize && return Ptr{Cfloat}(x + 44) + f === :PopupRounding && return Ptr{Cfloat}(x + 48) + f === :PopupBorderSize && return Ptr{Cfloat}(x + 52) + f === :FramePadding && return Ptr{ImVec2}(x + 56) + f === :FrameRounding && return Ptr{Cfloat}(x + 64) + f === :FrameBorderSize && return Ptr{Cfloat}(x + 68) + f === :ItemSpacing && return Ptr{ImVec2}(x + 72) + f === :ItemInnerSpacing && return Ptr{ImVec2}(x + 80) + f === :CellPadding && return Ptr{ImVec2}(x + 88) + f === :TouchExtraPadding && return Ptr{ImVec2}(x + 96) + f === :IndentSpacing && return Ptr{Cfloat}(x + 104) + f === :ColumnsMinSpacing && return Ptr{Cfloat}(x + 108) + f === :ScrollbarSize && return Ptr{Cfloat}(x + 112) + f === :ScrollbarRounding && return Ptr{Cfloat}(x + 116) + f === :GrabMinSize && return Ptr{Cfloat}(x + 120) + f === :GrabRounding && return Ptr{Cfloat}(x + 124) + f === :LogSliderDeadzone && return Ptr{Cfloat}(x + 128) + f === :TabRounding && return Ptr{Cfloat}(x + 132) + f === :TabBorderSize && return Ptr{Cfloat}(x + 136) + f === :TabMinWidthForCloseButton && return Ptr{Cfloat}(x + 140) + f === :ColorButtonPosition && return Ptr{ImGuiDir}(x + 144) + f === :ButtonTextAlign && return Ptr{ImVec2}(x + 148) + f === :SelectableTextAlign && return Ptr{ImVec2}(x + 156) + f === :DisplayWindowPadding && return Ptr{ImVec2}(x + 164) + f === :DisplaySafeAreaPadding && return Ptr{ImVec2}(x + 172) + f === :MouseCursorScale && return Ptr{Cfloat}(x + 180) + f === :AntiAliasedLines && return Ptr{Bool}(x + 184) + f === :AntiAliasedLinesUseTex && return Ptr{Bool}(x + 185) + f === :AntiAliasedFill && return Ptr{Bool}(x + 186) + f === :CurveTessellationTol && return Ptr{Cfloat}(x + 188) + f === :CircleTessellationMaxError && return Ptr{Cfloat}(x + 192) + f === :Colors && return Ptr{NTuple{55, ImVec4}}(x + 196) + return getfield(x, f) +end + +function Base.setproperty!(x::Ptr{ImGuiStyle}, f::Symbol, v) + unsafe_store!(getproperty(x, f), v) +end + struct ImGuiSizeCallbackData UserData::Ptr{Cvoid} Pos::ImVec2 diff --git a/lib/i686-linux-musl.jl b/lib/i686-linux-musl.jl index d57f261..cff4127 100644 --- a/lib/i686-linux-musl.jl +++ b/lib/i686-linux-musl.jl @@ -1542,6 +1542,54 @@ struct ImGuiStyle Colors::NTuple{55, ImVec4} end +function Base.getproperty(x::Ptr{ImGuiStyle}, f::Symbol) + f === :Alpha && return Ptr{Cfloat}(x + 0) + f === :WindowPadding && return Ptr{ImVec2}(x + 4) + f === :WindowRounding && return Ptr{Cfloat}(x + 12) + f === :WindowBorderSize && return Ptr{Cfloat}(x + 16) + f === :WindowMinSize && return Ptr{ImVec2}(x + 20) + f === :WindowTitleAlign && return Ptr{ImVec2}(x + 28) + f === :WindowMenuButtonPosition && return Ptr{ImGuiDir}(x + 36) + f === :ChildRounding && return Ptr{Cfloat}(x + 40) + f === :ChildBorderSize && return Ptr{Cfloat}(x + 44) + f === :PopupRounding && return Ptr{Cfloat}(x + 48) + f === :PopupBorderSize && return Ptr{Cfloat}(x + 52) + f === :FramePadding && return Ptr{ImVec2}(x + 56) + f === :FrameRounding && return Ptr{Cfloat}(x + 64) + f === :FrameBorderSize && return Ptr{Cfloat}(x + 68) + f === :ItemSpacing && return Ptr{ImVec2}(x + 72) + f === :ItemInnerSpacing && return Ptr{ImVec2}(x + 80) + f === :CellPadding && return Ptr{ImVec2}(x + 88) + f === :TouchExtraPadding && return Ptr{ImVec2}(x + 96) + f === :IndentSpacing && return Ptr{Cfloat}(x + 104) + f === :ColumnsMinSpacing && return Ptr{Cfloat}(x + 108) + f === :ScrollbarSize && return Ptr{Cfloat}(x + 112) + f === :ScrollbarRounding && return Ptr{Cfloat}(x + 116) + f === :GrabMinSize && return Ptr{Cfloat}(x + 120) + f === :GrabRounding && return Ptr{Cfloat}(x + 124) + f === :LogSliderDeadzone && return Ptr{Cfloat}(x + 128) + f === :TabRounding && return Ptr{Cfloat}(x + 132) + f === :TabBorderSize && return Ptr{Cfloat}(x + 136) + f === :TabMinWidthForCloseButton && return Ptr{Cfloat}(x + 140) + f === :ColorButtonPosition && return Ptr{ImGuiDir}(x + 144) + f === :ButtonTextAlign && return Ptr{ImVec2}(x + 148) + f === :SelectableTextAlign && return Ptr{ImVec2}(x + 156) + f === :DisplayWindowPadding && return Ptr{ImVec2}(x + 164) + f === :DisplaySafeAreaPadding && return Ptr{ImVec2}(x + 172) + f === :MouseCursorScale && return Ptr{Cfloat}(x + 180) + f === :AntiAliasedLines && return Ptr{Bool}(x + 184) + f === :AntiAliasedLinesUseTex && return Ptr{Bool}(x + 185) + f === :AntiAliasedFill && return Ptr{Bool}(x + 186) + f === :CurveTessellationTol && return Ptr{Cfloat}(x + 188) + f === :CircleTessellationMaxError && return Ptr{Cfloat}(x + 192) + f === :Colors && return Ptr{NTuple{55, ImVec4}}(x + 196) + return getfield(x, f) +end + +function Base.setproperty!(x::Ptr{ImGuiStyle}, f::Symbol, v) + unsafe_store!(getproperty(x, f), v) +end + struct ImGuiSizeCallbackData UserData::Ptr{Cvoid} Pos::ImVec2 diff --git a/lib/i686-w64-mingw32.jl b/lib/i686-w64-mingw32.jl index 1e6c841..3277382 100644 --- a/lib/i686-w64-mingw32.jl +++ b/lib/i686-w64-mingw32.jl @@ -1558,6 +1558,54 @@ struct ImGuiStyle Colors::NTuple{55, ImVec4} end +function Base.getproperty(x::Ptr{ImGuiStyle}, f::Symbol) + f === :Alpha && return Ptr{Cfloat}(x + 0) + f === :WindowPadding && return Ptr{ImVec2}(x + 4) + f === :WindowRounding && return Ptr{Cfloat}(x + 12) + f === :WindowBorderSize && return Ptr{Cfloat}(x + 16) + f === :WindowMinSize && return Ptr{ImVec2}(x + 20) + f === :WindowTitleAlign && return Ptr{ImVec2}(x + 28) + f === :WindowMenuButtonPosition && return Ptr{ImGuiDir}(x + 36) + f === :ChildRounding && return Ptr{Cfloat}(x + 40) + f === :ChildBorderSize && return Ptr{Cfloat}(x + 44) + f === :PopupRounding && return Ptr{Cfloat}(x + 48) + f === :PopupBorderSize && return Ptr{Cfloat}(x + 52) + f === :FramePadding && return Ptr{ImVec2}(x + 56) + f === :FrameRounding && return Ptr{Cfloat}(x + 64) + f === :FrameBorderSize && return Ptr{Cfloat}(x + 68) + f === :ItemSpacing && return Ptr{ImVec2}(x + 72) + f === :ItemInnerSpacing && return Ptr{ImVec2}(x + 80) + f === :CellPadding && return Ptr{ImVec2}(x + 88) + f === :TouchExtraPadding && return Ptr{ImVec2}(x + 96) + f === :IndentSpacing && return Ptr{Cfloat}(x + 104) + f === :ColumnsMinSpacing && return Ptr{Cfloat}(x + 108) + f === :ScrollbarSize && return Ptr{Cfloat}(x + 112) + f === :ScrollbarRounding && return Ptr{Cfloat}(x + 116) + f === :GrabMinSize && return Ptr{Cfloat}(x + 120) + f === :GrabRounding && return Ptr{Cfloat}(x + 124) + f === :LogSliderDeadzone && return Ptr{Cfloat}(x + 128) + f === :TabRounding && return Ptr{Cfloat}(x + 132) + f === :TabBorderSize && return Ptr{Cfloat}(x + 136) + f === :TabMinWidthForCloseButton && return Ptr{Cfloat}(x + 140) + f === :ColorButtonPosition && return Ptr{ImGuiDir}(x + 144) + f === :ButtonTextAlign && return Ptr{ImVec2}(x + 148) + f === :SelectableTextAlign && return Ptr{ImVec2}(x + 156) + f === :DisplayWindowPadding && return Ptr{ImVec2}(x + 164) + f === :DisplaySafeAreaPadding && return Ptr{ImVec2}(x + 172) + f === :MouseCursorScale && return Ptr{Cfloat}(x + 180) + f === :AntiAliasedLines && return Ptr{Bool}(x + 184) + f === :AntiAliasedLinesUseTex && return Ptr{Bool}(x + 185) + f === :AntiAliasedFill && return Ptr{Bool}(x + 186) + f === :CurveTessellationTol && return Ptr{Cfloat}(x + 188) + f === :CircleTessellationMaxError && return Ptr{Cfloat}(x + 192) + f === :Colors && return Ptr{NTuple{55, ImVec4}}(x + 196) + return getfield(x, f) +end + +function Base.setproperty!(x::Ptr{ImGuiStyle}, f::Symbol, v) + unsafe_store!(getproperty(x, f), v) +end + struct ImGuiSizeCallbackData UserData::Ptr{Cvoid} Pos::ImVec2 diff --git a/lib/powerpc64le-linux-gnu.jl b/lib/powerpc64le-linux-gnu.jl index 414c221..e15e3ea 100644 --- a/lib/powerpc64le-linux-gnu.jl +++ b/lib/powerpc64le-linux-gnu.jl @@ -1544,6 +1544,54 @@ struct ImGuiStyle Colors::NTuple{55, ImVec4} end +function Base.getproperty(x::Ptr{ImGuiStyle}, f::Symbol) + f === :Alpha && return Ptr{Cfloat}(x + 0) + f === :WindowPadding && return Ptr{ImVec2}(x + 4) + f === :WindowRounding && return Ptr{Cfloat}(x + 12) + f === :WindowBorderSize && return Ptr{Cfloat}(x + 16) + f === :WindowMinSize && return Ptr{ImVec2}(x + 20) + f === :WindowTitleAlign && return Ptr{ImVec2}(x + 28) + f === :WindowMenuButtonPosition && return Ptr{ImGuiDir}(x + 36) + f === :ChildRounding && return Ptr{Cfloat}(x + 40) + f === :ChildBorderSize && return Ptr{Cfloat}(x + 44) + f === :PopupRounding && return Ptr{Cfloat}(x + 48) + f === :PopupBorderSize && return Ptr{Cfloat}(x + 52) + f === :FramePadding && return Ptr{ImVec2}(x + 56) + f === :FrameRounding && return Ptr{Cfloat}(x + 64) + f === :FrameBorderSize && return Ptr{Cfloat}(x + 68) + f === :ItemSpacing && return Ptr{ImVec2}(x + 72) + f === :ItemInnerSpacing && return Ptr{ImVec2}(x + 80) + f === :CellPadding && return Ptr{ImVec2}(x + 88) + f === :TouchExtraPadding && return Ptr{ImVec2}(x + 96) + f === :IndentSpacing && return Ptr{Cfloat}(x + 104) + f === :ColumnsMinSpacing && return Ptr{Cfloat}(x + 108) + f === :ScrollbarSize && return Ptr{Cfloat}(x + 112) + f === :ScrollbarRounding && return Ptr{Cfloat}(x + 116) + f === :GrabMinSize && return Ptr{Cfloat}(x + 120) + f === :GrabRounding && return Ptr{Cfloat}(x + 124) + f === :LogSliderDeadzone && return Ptr{Cfloat}(x + 128) + f === :TabRounding && return Ptr{Cfloat}(x + 132) + f === :TabBorderSize && return Ptr{Cfloat}(x + 136) + f === :TabMinWidthForCloseButton && return Ptr{Cfloat}(x + 140) + f === :ColorButtonPosition && return Ptr{ImGuiDir}(x + 144) + f === :ButtonTextAlign && return Ptr{ImVec2}(x + 148) + f === :SelectableTextAlign && return Ptr{ImVec2}(x + 156) + f === :DisplayWindowPadding && return Ptr{ImVec2}(x + 164) + f === :DisplaySafeAreaPadding && return Ptr{ImVec2}(x + 172) + f === :MouseCursorScale && return Ptr{Cfloat}(x + 180) + f === :AntiAliasedLines && return Ptr{Bool}(x + 184) + f === :AntiAliasedLinesUseTex && return Ptr{Bool}(x + 185) + f === :AntiAliasedFill && return Ptr{Bool}(x + 186) + f === :CurveTessellationTol && return Ptr{Cfloat}(x + 188) + f === :CircleTessellationMaxError && return Ptr{Cfloat}(x + 192) + f === :Colors && return Ptr{NTuple{55, ImVec4}}(x + 196) + return getfield(x, f) +end + +function Base.setproperty!(x::Ptr{ImGuiStyle}, f::Symbol, v) + unsafe_store!(getproperty(x, f), v) +end + struct ImGuiSizeCallbackData UserData::Ptr{Cvoid} Pos::ImVec2 diff --git a/lib/x86_64-apple-darwin14.jl b/lib/x86_64-apple-darwin14.jl index 31de4c4..b8cb22a 100644 --- a/lib/x86_64-apple-darwin14.jl +++ b/lib/x86_64-apple-darwin14.jl @@ -1544,6 +1544,54 @@ struct ImGuiStyle Colors::NTuple{55, ImVec4} end +function Base.getproperty(x::Ptr{ImGuiStyle}, f::Symbol) + f === :Alpha && return Ptr{Cfloat}(x + 0) + f === :WindowPadding && return Ptr{ImVec2}(x + 4) + f === :WindowRounding && return Ptr{Cfloat}(x + 12) + f === :WindowBorderSize && return Ptr{Cfloat}(x + 16) + f === :WindowMinSize && return Ptr{ImVec2}(x + 20) + f === :WindowTitleAlign && return Ptr{ImVec2}(x + 28) + f === :WindowMenuButtonPosition && return Ptr{ImGuiDir}(x + 36) + f === :ChildRounding && return Ptr{Cfloat}(x + 40) + f === :ChildBorderSize && return Ptr{Cfloat}(x + 44) + f === :PopupRounding && return Ptr{Cfloat}(x + 48) + f === :PopupBorderSize && return Ptr{Cfloat}(x + 52) + f === :FramePadding && return Ptr{ImVec2}(x + 56) + f === :FrameRounding && return Ptr{Cfloat}(x + 64) + f === :FrameBorderSize && return Ptr{Cfloat}(x + 68) + f === :ItemSpacing && return Ptr{ImVec2}(x + 72) + f === :ItemInnerSpacing && return Ptr{ImVec2}(x + 80) + f === :CellPadding && return Ptr{ImVec2}(x + 88) + f === :TouchExtraPadding && return Ptr{ImVec2}(x + 96) + f === :IndentSpacing && return Ptr{Cfloat}(x + 104) + f === :ColumnsMinSpacing && return Ptr{Cfloat}(x + 108) + f === :ScrollbarSize && return Ptr{Cfloat}(x + 112) + f === :ScrollbarRounding && return Ptr{Cfloat}(x + 116) + f === :GrabMinSize && return Ptr{Cfloat}(x + 120) + f === :GrabRounding && return Ptr{Cfloat}(x + 124) + f === :LogSliderDeadzone && return Ptr{Cfloat}(x + 128) + f === :TabRounding && return Ptr{Cfloat}(x + 132) + f === :TabBorderSize && return Ptr{Cfloat}(x + 136) + f === :TabMinWidthForCloseButton && return Ptr{Cfloat}(x + 140) + f === :ColorButtonPosition && return Ptr{ImGuiDir}(x + 144) + f === :ButtonTextAlign && return Ptr{ImVec2}(x + 148) + f === :SelectableTextAlign && return Ptr{ImVec2}(x + 156) + f === :DisplayWindowPadding && return Ptr{ImVec2}(x + 164) + f === :DisplaySafeAreaPadding && return Ptr{ImVec2}(x + 172) + f === :MouseCursorScale && return Ptr{Cfloat}(x + 180) + f === :AntiAliasedLines && return Ptr{Bool}(x + 184) + f === :AntiAliasedLinesUseTex && return Ptr{Bool}(x + 185) + f === :AntiAliasedFill && return Ptr{Bool}(x + 186) + f === :CurveTessellationTol && return Ptr{Cfloat}(x + 188) + f === :CircleTessellationMaxError && return Ptr{Cfloat}(x + 192) + f === :Colors && return Ptr{NTuple{55, ImVec4}}(x + 196) + return getfield(x, f) +end + +function Base.setproperty!(x::Ptr{ImGuiStyle}, f::Symbol, v) + unsafe_store!(getproperty(x, f), v) +end + struct ImGuiSizeCallbackData UserData::Ptr{Cvoid} Pos::ImVec2 diff --git a/lib/x86_64-linux-gnu.jl b/lib/x86_64-linux-gnu.jl index 414c221..e15e3ea 100644 --- a/lib/x86_64-linux-gnu.jl +++ b/lib/x86_64-linux-gnu.jl @@ -1544,6 +1544,54 @@ struct ImGuiStyle Colors::NTuple{55, ImVec4} end +function Base.getproperty(x::Ptr{ImGuiStyle}, f::Symbol) + f === :Alpha && return Ptr{Cfloat}(x + 0) + f === :WindowPadding && return Ptr{ImVec2}(x + 4) + f === :WindowRounding && return Ptr{Cfloat}(x + 12) + f === :WindowBorderSize && return Ptr{Cfloat}(x + 16) + f === :WindowMinSize && return Ptr{ImVec2}(x + 20) + f === :WindowTitleAlign && return Ptr{ImVec2}(x + 28) + f === :WindowMenuButtonPosition && return Ptr{ImGuiDir}(x + 36) + f === :ChildRounding && return Ptr{Cfloat}(x + 40) + f === :ChildBorderSize && return Ptr{Cfloat}(x + 44) + f === :PopupRounding && return Ptr{Cfloat}(x + 48) + f === :PopupBorderSize && return Ptr{Cfloat}(x + 52) + f === :FramePadding && return Ptr{ImVec2}(x + 56) + f === :FrameRounding && return Ptr{Cfloat}(x + 64) + f === :FrameBorderSize && return Ptr{Cfloat}(x + 68) + f === :ItemSpacing && return Ptr{ImVec2}(x + 72) + f === :ItemInnerSpacing && return Ptr{ImVec2}(x + 80) + f === :CellPadding && return Ptr{ImVec2}(x + 88) + f === :TouchExtraPadding && return Ptr{ImVec2}(x + 96) + f === :IndentSpacing && return Ptr{Cfloat}(x + 104) + f === :ColumnsMinSpacing && return Ptr{Cfloat}(x + 108) + f === :ScrollbarSize && return Ptr{Cfloat}(x + 112) + f === :ScrollbarRounding && return Ptr{Cfloat}(x + 116) + f === :GrabMinSize && return Ptr{Cfloat}(x + 120) + f === :GrabRounding && return Ptr{Cfloat}(x + 124) + f === :LogSliderDeadzone && return Ptr{Cfloat}(x + 128) + f === :TabRounding && return Ptr{Cfloat}(x + 132) + f === :TabBorderSize && return Ptr{Cfloat}(x + 136) + f === :TabMinWidthForCloseButton && return Ptr{Cfloat}(x + 140) + f === :ColorButtonPosition && return Ptr{ImGuiDir}(x + 144) + f === :ButtonTextAlign && return Ptr{ImVec2}(x + 148) + f === :SelectableTextAlign && return Ptr{ImVec2}(x + 156) + f === :DisplayWindowPadding && return Ptr{ImVec2}(x + 164) + f === :DisplaySafeAreaPadding && return Ptr{ImVec2}(x + 172) + f === :MouseCursorScale && return Ptr{Cfloat}(x + 180) + f === :AntiAliasedLines && return Ptr{Bool}(x + 184) + f === :AntiAliasedLinesUseTex && return Ptr{Bool}(x + 185) + f === :AntiAliasedFill && return Ptr{Bool}(x + 186) + f === :CurveTessellationTol && return Ptr{Cfloat}(x + 188) + f === :CircleTessellationMaxError && return Ptr{Cfloat}(x + 192) + f === :Colors && return Ptr{NTuple{55, ImVec4}}(x + 196) + return getfield(x, f) +end + +function Base.setproperty!(x::Ptr{ImGuiStyle}, f::Symbol, v) + unsafe_store!(getproperty(x, f), v) +end + struct ImGuiSizeCallbackData UserData::Ptr{Cvoid} Pos::ImVec2 diff --git a/lib/x86_64-linux-musl.jl b/lib/x86_64-linux-musl.jl index d4732ab..6603240 100644 --- a/lib/x86_64-linux-musl.jl +++ b/lib/x86_64-linux-musl.jl @@ -1542,6 +1542,54 @@ struct ImGuiStyle Colors::NTuple{55, ImVec4} end +function Base.getproperty(x::Ptr{ImGuiStyle}, f::Symbol) + f === :Alpha && return Ptr{Cfloat}(x + 0) + f === :WindowPadding && return Ptr{ImVec2}(x + 4) + f === :WindowRounding && return Ptr{Cfloat}(x + 12) + f === :WindowBorderSize && return Ptr{Cfloat}(x + 16) + f === :WindowMinSize && return Ptr{ImVec2}(x + 20) + f === :WindowTitleAlign && return Ptr{ImVec2}(x + 28) + f === :WindowMenuButtonPosition && return Ptr{ImGuiDir}(x + 36) + f === :ChildRounding && return Ptr{Cfloat}(x + 40) + f === :ChildBorderSize && return Ptr{Cfloat}(x + 44) + f === :PopupRounding && return Ptr{Cfloat}(x + 48) + f === :PopupBorderSize && return Ptr{Cfloat}(x + 52) + f === :FramePadding && return Ptr{ImVec2}(x + 56) + f === :FrameRounding && return Ptr{Cfloat}(x + 64) + f === :FrameBorderSize && return Ptr{Cfloat}(x + 68) + f === :ItemSpacing && return Ptr{ImVec2}(x + 72) + f === :ItemInnerSpacing && return Ptr{ImVec2}(x + 80) + f === :CellPadding && return Ptr{ImVec2}(x + 88) + f === :TouchExtraPadding && return Ptr{ImVec2}(x + 96) + f === :IndentSpacing && return Ptr{Cfloat}(x + 104) + f === :ColumnsMinSpacing && return Ptr{Cfloat}(x + 108) + f === :ScrollbarSize && return Ptr{Cfloat}(x + 112) + f === :ScrollbarRounding && return Ptr{Cfloat}(x + 116) + f === :GrabMinSize && return Ptr{Cfloat}(x + 120) + f === :GrabRounding && return Ptr{Cfloat}(x + 124) + f === :LogSliderDeadzone && return Ptr{Cfloat}(x + 128) + f === :TabRounding && return Ptr{Cfloat}(x + 132) + f === :TabBorderSize && return Ptr{Cfloat}(x + 136) + f === :TabMinWidthForCloseButton && return Ptr{Cfloat}(x + 140) + f === :ColorButtonPosition && return Ptr{ImGuiDir}(x + 144) + f === :ButtonTextAlign && return Ptr{ImVec2}(x + 148) + f === :SelectableTextAlign && return Ptr{ImVec2}(x + 156) + f === :DisplayWindowPadding && return Ptr{ImVec2}(x + 164) + f === :DisplaySafeAreaPadding && return Ptr{ImVec2}(x + 172) + f === :MouseCursorScale && return Ptr{Cfloat}(x + 180) + f === :AntiAliasedLines && return Ptr{Bool}(x + 184) + f === :AntiAliasedLinesUseTex && return Ptr{Bool}(x + 185) + f === :AntiAliasedFill && return Ptr{Bool}(x + 186) + f === :CurveTessellationTol && return Ptr{Cfloat}(x + 188) + f === :CircleTessellationMaxError && return Ptr{Cfloat}(x + 192) + f === :Colors && return Ptr{NTuple{55, ImVec4}}(x + 196) + return getfield(x, f) +end + +function Base.setproperty!(x::Ptr{ImGuiStyle}, f::Symbol, v) + unsafe_store!(getproperty(x, f), v) +end + struct ImGuiSizeCallbackData UserData::Ptr{Cvoid} Pos::ImVec2 diff --git a/lib/x86_64-unknown-freebsd11.1.jl b/lib/x86_64-unknown-freebsd11.1.jl index b59e15f..2f8a464 100644 --- a/lib/x86_64-unknown-freebsd11.1.jl +++ b/lib/x86_64-unknown-freebsd11.1.jl @@ -1544,6 +1544,54 @@ struct ImGuiStyle Colors::NTuple{55, ImVec4} end +function Base.getproperty(x::Ptr{ImGuiStyle}, f::Symbol) + f === :Alpha && return Ptr{Cfloat}(x + 0) + f === :WindowPadding && return Ptr{ImVec2}(x + 4) + f === :WindowRounding && return Ptr{Cfloat}(x + 12) + f === :WindowBorderSize && return Ptr{Cfloat}(x + 16) + f === :WindowMinSize && return Ptr{ImVec2}(x + 20) + f === :WindowTitleAlign && return Ptr{ImVec2}(x + 28) + f === :WindowMenuButtonPosition && return Ptr{ImGuiDir}(x + 36) + f === :ChildRounding && return Ptr{Cfloat}(x + 40) + f === :ChildBorderSize && return Ptr{Cfloat}(x + 44) + f === :PopupRounding && return Ptr{Cfloat}(x + 48) + f === :PopupBorderSize && return Ptr{Cfloat}(x + 52) + f === :FramePadding && return Ptr{ImVec2}(x + 56) + f === :FrameRounding && return Ptr{Cfloat}(x + 64) + f === :FrameBorderSize && return Ptr{Cfloat}(x + 68) + f === :ItemSpacing && return Ptr{ImVec2}(x + 72) + f === :ItemInnerSpacing && return Ptr{ImVec2}(x + 80) + f === :CellPadding && return Ptr{ImVec2}(x + 88) + f === :TouchExtraPadding && return Ptr{ImVec2}(x + 96) + f === :IndentSpacing && return Ptr{Cfloat}(x + 104) + f === :ColumnsMinSpacing && return Ptr{Cfloat}(x + 108) + f === :ScrollbarSize && return Ptr{Cfloat}(x + 112) + f === :ScrollbarRounding && return Ptr{Cfloat}(x + 116) + f === :GrabMinSize && return Ptr{Cfloat}(x + 120) + f === :GrabRounding && return Ptr{Cfloat}(x + 124) + f === :LogSliderDeadzone && return Ptr{Cfloat}(x + 128) + f === :TabRounding && return Ptr{Cfloat}(x + 132) + f === :TabBorderSize && return Ptr{Cfloat}(x + 136) + f === :TabMinWidthForCloseButton && return Ptr{Cfloat}(x + 140) + f === :ColorButtonPosition && return Ptr{ImGuiDir}(x + 144) + f === :ButtonTextAlign && return Ptr{ImVec2}(x + 148) + f === :SelectableTextAlign && return Ptr{ImVec2}(x + 156) + f === :DisplayWindowPadding && return Ptr{ImVec2}(x + 164) + f === :DisplaySafeAreaPadding && return Ptr{ImVec2}(x + 172) + f === :MouseCursorScale && return Ptr{Cfloat}(x + 180) + f === :AntiAliasedLines && return Ptr{Bool}(x + 184) + f === :AntiAliasedLinesUseTex && return Ptr{Bool}(x + 185) + f === :AntiAliasedFill && return Ptr{Bool}(x + 186) + f === :CurveTessellationTol && return Ptr{Cfloat}(x + 188) + f === :CircleTessellationMaxError && return Ptr{Cfloat}(x + 192) + f === :Colors && return Ptr{NTuple{55, ImVec4}}(x + 196) + return getfield(x, f) +end + +function Base.setproperty!(x::Ptr{ImGuiStyle}, f::Symbol, v) + unsafe_store!(getproperty(x, f), v) +end + struct ImGuiSizeCallbackData UserData::Ptr{Cvoid} Pos::ImVec2 diff --git a/lib/x86_64-w64-mingw32.jl b/lib/x86_64-w64-mingw32.jl index aded3a7..b5a2a20 100644 --- a/lib/x86_64-w64-mingw32.jl +++ b/lib/x86_64-w64-mingw32.jl @@ -1558,6 +1558,54 @@ struct ImGuiStyle Colors::NTuple{55, ImVec4} end +function Base.getproperty(x::Ptr{ImGuiStyle}, f::Symbol) + f === :Alpha && return Ptr{Cfloat}(x + 0) + f === :WindowPadding && return Ptr{ImVec2}(x + 4) + f === :WindowRounding && return Ptr{Cfloat}(x + 12) + f === :WindowBorderSize && return Ptr{Cfloat}(x + 16) + f === :WindowMinSize && return Ptr{ImVec2}(x + 20) + f === :WindowTitleAlign && return Ptr{ImVec2}(x + 28) + f === :WindowMenuButtonPosition && return Ptr{ImGuiDir}(x + 36) + f === :ChildRounding && return Ptr{Cfloat}(x + 40) + f === :ChildBorderSize && return Ptr{Cfloat}(x + 44) + f === :PopupRounding && return Ptr{Cfloat}(x + 48) + f === :PopupBorderSize && return Ptr{Cfloat}(x + 52) + f === :FramePadding && return Ptr{ImVec2}(x + 56) + f === :FrameRounding && return Ptr{Cfloat}(x + 64) + f === :FrameBorderSize && return Ptr{Cfloat}(x + 68) + f === :ItemSpacing && return Ptr{ImVec2}(x + 72) + f === :ItemInnerSpacing && return Ptr{ImVec2}(x + 80) + f === :CellPadding && return Ptr{ImVec2}(x + 88) + f === :TouchExtraPadding && return Ptr{ImVec2}(x + 96) + f === :IndentSpacing && return Ptr{Cfloat}(x + 104) + f === :ColumnsMinSpacing && return Ptr{Cfloat}(x + 108) + f === :ScrollbarSize && return Ptr{Cfloat}(x + 112) + f === :ScrollbarRounding && return Ptr{Cfloat}(x + 116) + f === :GrabMinSize && return Ptr{Cfloat}(x + 120) + f === :GrabRounding && return Ptr{Cfloat}(x + 124) + f === :LogSliderDeadzone && return Ptr{Cfloat}(x + 128) + f === :TabRounding && return Ptr{Cfloat}(x + 132) + f === :TabBorderSize && return Ptr{Cfloat}(x + 136) + f === :TabMinWidthForCloseButton && return Ptr{Cfloat}(x + 140) + f === :ColorButtonPosition && return Ptr{ImGuiDir}(x + 144) + f === :ButtonTextAlign && return Ptr{ImVec2}(x + 148) + f === :SelectableTextAlign && return Ptr{ImVec2}(x + 156) + f === :DisplayWindowPadding && return Ptr{ImVec2}(x + 164) + f === :DisplaySafeAreaPadding && return Ptr{ImVec2}(x + 172) + f === :MouseCursorScale && return Ptr{Cfloat}(x + 180) + f === :AntiAliasedLines && return Ptr{Bool}(x + 184) + f === :AntiAliasedLinesUseTex && return Ptr{Bool}(x + 185) + f === :AntiAliasedFill && return Ptr{Bool}(x + 186) + f === :CurveTessellationTol && return Ptr{Cfloat}(x + 188) + f === :CircleTessellationMaxError && return Ptr{Cfloat}(x + 192) + f === :Colors && return Ptr{NTuple{55, ImVec4}}(x + 196) + return getfield(x, f) +end + +function Base.setproperty!(x::Ptr{ImGuiStyle}, f::Symbol, v) + unsafe_store!(getproperty(x, f), v) +end + struct ImGuiSizeCallbackData UserData::Ptr{Cvoid} Pos::ImVec2