dear-imgui-raw-implot: Raw FFI bindings to implot (epezent/implot) for dear-imgui-raw.

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

Generated with dear_bindings from the bundled implot sources, compiled against the Dear ImGui build in dear-imgui-raw.


[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), dear-imgui-raw (>=1.0 && <1.1), unliftio-core [details]
License BSD-3-Clause
Author
Maintainer IC Rainbow <aenor.realm@gmail.com>
Uploaded by AlexanderBondarenko at 2026-11-09T23:00:20Z
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-raw-implot-1.0.0

[back to package description]

dear-imgui-raw-implot

Raw FFI bindings to implot, GPU-accelerated plotting for Dear ImGui.

{-# LANGUAGE BlockArguments #-}

import DearImGui.Raw.ImPlot qualified as ImPlot
import DearImGui.Raw.ImPlot.Spec qualified as Spec
import Foreign.C.String (withCString)
import Foreign.Marshal.Array (withArrayLen)
import Foreign.Storable (peek)

plotSine :: IO ()
plotSine =
  withCString "sin" \label ->
    withArrayLen [sin (x / 10) | x <- [0 .. 99]] \count values ->
      Spec.withDefault \spec ->
        ImPlot.plotLine_F32 label values (fromIntegral count) 1 0 =<< peek spec