packages feed

dear-imgui-raw-1.0.0: src/DearImGui/Raw/ImGuiStoragePair.hsc

{-# LANGUAGE CApiFFI #-}
{-# LANGUAGE PatternSynonyms #-}

-- This file was generated by dear-bindings-ffi. Do not edit by hand.

module DearImGui.Raw.ImGuiStoragePair
  ( ImGuiStoragePair
  ) where

import DearImGui.Raw (ImGuiID)
import Foreign.Ptr (Ptr, plusPtr)
import Foreign.Storable (Storable (..))
import GHC.Records (HasField (..))

#include "dcimgui_nodefaultargfunctions.h"

-- structs (opaque)

data ImGuiStoragePair
instance Storable ImGuiStoragePair where
  sizeOf _    = #{size ImGuiStoragePair}
  alignment _ = #{alignment ImGuiStoragePair}
  peek _ = error "ImGuiStoragePair: opaque struct, peek not supported in v0"
  poke _ _ = error "ImGuiStoragePair: opaque struct, poke not supported in v0"

instance HasField "key" (Ptr ImGuiStoragePair) (Ptr ImGuiID) where
  getField = #{ptr ImGuiStoragePair, key}