From ffb56608f1b44f333a23478bbdcd01ead3d886e6 Mon Sep 17 00:00:00 2001 From: ericoporto Date: Sat, 6 Jun 2020 21:10:08 -0300 Subject: [PATCH] Fixes Member variable cannot be struct --- agsimgui/agsimgui.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/agsimgui/agsimgui.cpp b/agsimgui/agsimgui.cpp index 1149843..dc18ea0 100644 --- a/agsimgui/agsimgui.cpp +++ b/agsimgui/agsimgui.cpp @@ -480,7 +480,7 @@ namespace agsimgui { " import attribute float Alpha; \r\n" " \r\n" " /// Padding within a window. \r\n" -" import attribute ImVec2 WindowPadding; \r\n" +" import attribute ImVec2* WindowPadding; \r\n" " \r\n" " /// Radius of window corners rounding. Set to 0.0f to have rectangular windows. \r\n" " import attribute float WindowRounding; \r\n" @@ -489,10 +489,10 @@ namespace agsimgui { " import attribute float WindowBorderSize; \r\n" " \r\n" " /// Minimum window size. This is a global setting. For individual windows, use SetNextWindowSizeConstraints(). \r\n" -" import attribute ImVec2 WindowMinSize; \r\n" +" import attribute ImVec2* WindowMinSize; \r\n" " \r\n" " /// Alignment for title bar text. Defaults to (0.0f,0.5f) for left-aligned,vertically centered. \r\n" -" import attribute ImVec2 WindowTitleAlign; \r\n" +" import attribute ImVec2* WindowTitleAlign; \r\n" " \r\n" " /// Side of the collapsing/docking button in the title bar (None/Left/Right). Defaults to ImGuiDir_Left. \r\n" " import attribute ImGuiDir WindowMenuButtonPosition; \r\n" @@ -510,7 +510,7 @@ namespace agsimgui { " import attribute float PopupBorderSize; \r\n" " \r\n" " /// Padding within a framed rectangle (used by most widgets). \r\n" -" import attribute ImVec2 FramePadding; \r\n" +" import attribute ImVec2* FramePadding; \r\n" " \r\n" " /// Radius of frame corners rounding. Set to 0.0f to have rectangular frame (used by most widgets). \r\n" " import attribute float FrameRounding; \r\n" @@ -519,13 +519,13 @@ namespace agsimgui { " import attribute float FrameBorderSize; \r\n" " \r\n" " /// Horizontal and vertical spacing between widgets/lines. \r\n" -" import attribute ImVec2 ItemSpacing; \r\n" +" import attribute ImVec2* ItemSpacing; \r\n" " \r\n" " /// Horizontal and vertical spacing between within elements of a composed widget (e.g. a slider and its label). \r\n" -" import attribute ImVec2 ItemInnerSpacing; \r\n" +" import attribute ImVec2* ItemInnerSpacing; \r\n" " \r\n" " /// Expand reactive bounding box for touch-based system where touch position is not accurate enough. Unfortunately we don't sort widgets so priority on overlap will always be given to the first widget. Don't grow this too much! \r\n" -" import attribute ImVec2 TouchExtraPadding; \r\n" +" import attribute ImVec2* TouchExtraPadding; \r\n" " \r\n" " /// Horizontal indentation when e.g. entering a tree node. Generally == (FontSize + FramePadding.x*2). \r\n" " import attribute float IndentSpacing; \r\n" @@ -558,16 +558,16 @@ namespace agsimgui { " import attribute ImGuiDir ColorButtonPosition; \r\n" " \r\n" " /// Alignment of button text when button is larger than text. Defaults to (0.5f, 0.5f) (centered). \r\n" -" import attribute ImVec2 ButtonTextAlign; \r\n" +" import attribute ImVec2* ButtonTextAlign; \r\n" " \r\n" " /// Alignment of selectable text. Defaults to (0.0f, 0.0f) (top-left aligned). It's generally important to keep this left-aligned if you want to lay multiple items on a same line. \r\n" -" import attribute ImVec2 SelectableTextAlign; \r\n" +" import attribute ImVec2* SelectableTextAlign; \r\n" " \r\n" " /// Window position are clamped to be visible within the display area by at least this amount. Only applies to regular windows. \r\n" -" import attribute ImVec2 DisplayWindowPadding; \r\n" +" import attribute ImVec2* DisplayWindowPadding; \r\n" " \r\n" " /// If you cannot see the edges of your screen (e.g. on a TV) increase the safe area padding. Apply to popups/tooltips as well regular windows. NB: Prefer configuring your TV sets correctly! \r\n" -" import attribute ImVec2 DisplaySafeAreaPadding; \r\n" +" import attribute ImVec2* DisplaySafeAreaPadding; \r\n" " \r\n" " /// Scale software rendered mouse cursor (when io.MouseDrawCursor is enabled). May be removed later. \r\n" " import attribute float MouseCursorScale; \r\n" @@ -585,7 +585,7 @@ namespace agsimgui { " import attribute float CircleSegmentMaxError; \r\n" " \r\n" " /// Colors \r\n" -" import attribute ImVec4 Colors[]; \r\n" +" import attribute ImVec4* Colors[]; \r\n" " }; \r\n" " \r\n" "builtin managed struct AgsImGui{ \r\n"