dear-imgui-raw: Raw FFI bindings to dear_bindings.

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

Generated with dear_bindings from the docking branch of Dear ImGui. The ImGui sources are bundled, so no system library is needed.


[Skip to Readme]

Modules

[Index] [Quick Jump]

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), text, unliftio-core [details]
License BSD-3-Clause
Author
Maintainer IC Rainbow <aenor.realm@gmail.com>
Uploaded by AlexanderBondarenko at 2026-11-09T22:55:49Z
Category GUI
Distributions
Reverse Dependencies 16 direct, 1 indirect [details]
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-raw-1.0.0

[back to package description]

dear-imgui-raw

Raw FFI bindings to Dear ImGui.

{-# LANGUAGE BlockArguments #-}
{-# LANGUAGE OverloadedRecordDot #-}

import Data.Bits ((.|.))
import DearImGui.Context (withContext)
import DearImGui.Raw.Enums.ImGuiConfigFlags qualified as ImGuiConfigFlags
import DearImGui.Raw.ImGui qualified as ImGui
import DearImGui.Raw.ImGuiIO qualified
import Foreign.Storable (peek, poke)

main :: IO ()
main = withContext do
  io <- ImGui.getIO
  flags <- peek io.configFlags
  poke io.configFlags (flags .|. ImGuiConfigFlags.DockingEnable)

Getting pixels on screen takes one platform and one renderer backend from the dear-imgui-impl-* packages.