dear-imgui-impl-sdl3: SDL3 platform backend bindings for dear-imgui-raw.

[ bsd3, gui, library ] [ Propose Tags ] [ Report a vulnerability ]

Generated with dear_bindings from the imgui_impl_sdl3 backend that ships with Dear ImGui.


[Skip to Readme]

Flags

Manual Flags

NameDescriptionDefault
sdl3

Bridge module DearImGui.Impl.SDL3 over the sdl3-bindgen-sys Window, Renderer, GLContext and Event types.

Enabled

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 1.0.0
Change log CHANGELOG.md
Dependencies base (>=4.16 && <5), dear-imgui-raw (>=1.0 && <1.1), sdl3-bindgen-sys (>=0.0.1 && <0.0.2), unliftio-core [details]
License BSD-3-Clause
Author
Maintainer IC Rainbow <aenor.realm@gmail.com>
Uploaded by AlexanderBondarenko at 2026-11-09T22:58:49Z
Category GUI
Distributions
Downloads 2 total (2 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2026-11-10 [all 1 reports]

Readme for dear-imgui-impl-sdl3-1.0.0

[back to package description]

dear-imgui-impl-sdl3

Platform backend for Dear ImGui on SDL3 windows. Pair it with a renderer backend.

{-# LANGUAGE BlockArguments #-}

import Control.Monad (when)
import Data.Function (fix)
import DearImGui.Impl.SDL3 qualified as ImplSDL3
import Foreign.Marshal.Alloc (alloca)
import Foreign.Ptr (Ptr)
import SDL3.Sys qualified as SDL3

forEachEvent :: (Ptr SDL3.SDL_Event -> IO ()) -> IO ()
forEachEvent handle = alloca \event -> fix \next -> do
  pending <- ImplSDL3.pollEvent event
  when pending do
    handle event
    next