Skip to content

Commit 72b496f

Browse files
committed
Update imgui dependency to 1.91.3 (Released 2024-10-04)
This is needed for SDL3 support
1 parent c555b8d commit 72b496f

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

generator/DearImGui/Generator/Parser.hs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ headers = do
143143
)
144144
( try $ many comment >> keyword "struct" >> identifier)
145145

146-
_ <- skipManyTill anySingle ( namedSection "Helpers: Memory allocations macros, ImVector<>" )
146+
_ <- skipManyTill anySingle ( namedSection "Helpers: Debug log, memory allocations macros, ImVector<>" )
147147

148148
_ <- skipManyTill anySingle ( namedSection "ImGuiStyle" )
149149

@@ -153,6 +153,8 @@ headers = do
153153

154154
_ <- skipManyTill anySingle ( namedSection "Helpers (ImGuiOnceUponAFrame, ImGuiTextFilter, ImGuiTextBuffer, ImGuiStorage, ImGuiListClipper, Math Operators, ImColor)" )
155155

156+
_ <- skipManyTill anySingle ( namedSection "Multi-Select API flags and structures (ImGuiMultiSelectFlags, ImGuiSelectionRequestType, ImGuiSelectionRequest, ImGuiMultiSelectIO, ImGuiSelectionBasicStorage)" )
157+
156158
_ <- skipManyTill anySingle ( namedSection "Drawing API (ImDrawCmd, ImDrawIdx, ImDrawVert, ImDrawChannel, ImDrawListSplitter, ImDrawListFlags, ImDrawList, ImDrawData)" )
157159
skipManyTill anySingle ( try . lookAhead $ many comment *> keyword "enum" )
158160
drawingEnums <- many ( enumeration enumNamesAndTypes )

imgui

Submodule imgui updated 67 files

src/DearImGui/Raw.hs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -823,23 +823,22 @@ image userTextureIDPtr sizePtr uv0Ptr uv1Ptr tintColPtr borderColPtr = liftIO do
823823
-- Negative @frame_padding@ uses default frame padding settings. Set to 0 for no padding.
824824
--
825825
-- Wraps @ImGui::ImageButton()@.
826-
imageButton :: (MonadIO m) => Ptr () -> Ptr ImVec2 -> Ptr ImVec2 -> Ptr ImVec2 -> CInt -> Ptr ImVec4 -> Ptr ImVec4 -> m Bool
827-
imageButton userTextureIDPtr sizePtr uv0Ptr uv1Ptr framePadding bgColPtr tintColPtr = liftIO do
826+
imageButton :: (MonadIO m) => CString -> Ptr () -> Ptr ImVec2 -> Ptr ImVec2 -> Ptr ImVec2 -> Ptr ImVec4 -> Ptr ImVec4 -> m Bool
827+
imageButton labelPtr userTextureIDPtr sizePtr uv0Ptr uv1Ptr bgColPtr tintColPtr = liftIO do
828828
(0 /=) <$> [C.exp|
829829
bool {
830830
ImageButton(
831+
$(char* labelPtr),
831832
$(void* userTextureIDPtr),
832833
*$(ImVec2* sizePtr),
833834
*$(ImVec2* uv0Ptr),
834835
*$(ImVec2* uv1Ptr),
835-
$(int framePadding),
836836
*$(ImVec4* bgColPtr),
837837
*$(ImVec4* tintColPtr)
838838
)
839839
}
840840
|]
841841

842-
843842
-- | Wraps @ImGui::Checkbox()@.
844843
checkbox :: (MonadIO m) => CString -> Ptr CBool -> m Bool
845844
checkbox labelPtr boolPtr = liftIO do

0 commit comments

Comments
 (0)