MCPcopy Create free account
hub / github.com/crosire/reshade / convert

Function convert

source/imgui_function_table_19040.cpp:102–198  ·  view source on GitHub ↗

Convert 'ImGuiIO' as well due to 'IMGUI_DISABLE_OBSOLETE_KEYIO' not being defined by default

Source from the content-addressed store, hash-verified

100
101 // Convert 'ImGuiIO' as well due to 'IMGUI_DISABLE_OBSOLETE_KEYIO' not being defined by default
102 void convert(const imgui_io_19180 &new_io, imgui_io_19040 &old_io)
103 {
104 old_io.ConfigFlags = new_io.ConfigFlags;
105 old_io.BackendFlags = new_io.BackendFlags;
106 old_io.DisplaySize = new_io.DisplaySize;
107 old_io.DeltaTime = new_io.DeltaTime;
108 old_io.IniSavingRate = new_io.IniSavingRate;
109 old_io.IniFilename = new_io.IniFilename;
110 old_io.LogFilename = new_io.LogFilename;
111 old_io.UserData = new_io.UserData;
112
113 // It's not safe to access the internal fields of 'FontAtlas'
114 old_io.Fonts = new_io.Fonts;
115 old_io.FontGlobalScale = new_io.FontGlobalScale;
116 old_io.FontAllowUserScaling = new_io.FontAllowUserScaling;
117 old_io.FontDefault = nullptr;
118 old_io.DisplayFramebufferScale = new_io.DisplayFramebufferScale;
119
120 old_io.ConfigDockingNoSplit = new_io.ConfigDockingNoSplit;
121 old_io.ConfigDockingWithShift = new_io.ConfigDockingWithShift;
122 old_io.ConfigDockingAlwaysTabBar = new_io.ConfigDockingAlwaysTabBar;
123 old_io.ConfigDockingTransparentPayload = new_io.ConfigDockingTransparentPayload;
124
125 old_io.ConfigViewportsNoAutoMerge = new_io.ConfigViewportsNoAutoMerge;
126 old_io.ConfigViewportsNoTaskBarIcon = new_io.ConfigViewportsNoTaskBarIcon;
127 old_io.ConfigViewportsNoDecoration = new_io.ConfigViewportsNoDecoration;
128 old_io.ConfigViewportsNoDefaultParent = new_io.ConfigViewportsNoDefaultParent;
129
130 old_io.MouseDrawCursor = new_io.MouseDrawCursor;
131 old_io.ConfigMacOSXBehaviors = new_io.ConfigMacOSXBehaviors;
132 old_io.ConfigInputTrickleEventQueue = new_io.ConfigInputTrickleEventQueue;
133 old_io.ConfigInputTextCursorBlink = new_io.ConfigInputTextCursorBlink;
134 old_io.ConfigInputTextEnterKeepActive = new_io.ConfigInputTextEnterKeepActive;
135 old_io.ConfigDragClickToInputText = new_io.ConfigDragClickToInputText;
136 old_io.ConfigWindowsResizeFromEdges = new_io.ConfigWindowsResizeFromEdges;
137 old_io.ConfigWindowsMoveFromTitleBarOnly = new_io.ConfigWindowsMoveFromTitleBarOnly;
138 old_io.ConfigMemoryCompactTimer = new_io.ConfigMemoryCompactTimer;
139
140 old_io.MouseDoubleClickTime = new_io.MouseDoubleClickTime;
141 old_io.MouseDoubleClickMaxDist = new_io.MouseDoubleClickMaxDist;
142 old_io.MouseDragThreshold = new_io.MouseDragThreshold;
143 old_io.KeyRepeatDelay = new_io.KeyRepeatDelay;
144 old_io.KeyRepeatRate = new_io.KeyRepeatRate;
145
146 old_io.ConfigDebugIsDebuggerPresent = new_io.ConfigDebugIsDebuggerPresent;
147 old_io.ConfigDebugBeginReturnValueOnce = new_io.ConfigDebugBeginReturnValueOnce;
148 old_io.ConfigDebugBeginReturnValueLoop = new_io.ConfigDebugBeginReturnValueLoop;
149 old_io.ConfigDebugIgnoreFocusLoss = new_io.ConfigDebugIgnoreFocusLoss;
150 old_io.ConfigDebugIniSettings = new_io.ConfigDebugIniSettings;
151
152 old_io.BackendPlatformName = new_io.BackendPlatformName;
153 old_io.BackendRendererName = new_io.BackendRendererName;
154 old_io.BackendPlatformUserData = new_io.BackendPlatformUserData;
155 old_io.BackendRendererUserData = new_io.BackendRendererUserData;
156 old_io.BackendLanguageUserData = new_io.BackendLanguageUserData;
157
158 old_io.GetClipboardTextFn = nullptr;
159 old_io.SetClipboardTextFn = nullptr;

Callers 1

Calls 1

convert_style_colFunction · 0.70

Tested by

no test coverage detected