gi-harfbuzz-0.0.10: HarfBuzz bindings

Copyright | Will Thompson and Iñaki García Etxebarria
License | LGPL-2.1
Maintainer | Iñaki García Etxebarria
Safe Haskell | None
Language | Haskell2010

GI.HarfBuzz.Callbacks

Contents

- Signals
  - BufferMessageFuncT
  - ColorLineGetColorStopsFuncT
  - ColorLineGetExtendFuncT
  - DestroyFuncT
  - DrawClosePathFuncT
  - DrawCubicToFuncT
  - DrawLineToFuncT
  - DrawMoveToFuncT
  - DrawQuadraticToFuncT
  - FontDrawGlyphFuncT
  - FontDrawGlyphOrFailFuncT
  - FontGetFontExtentsFuncT
  - FontGetGlyphAdvanceFuncT
  - FontGetGlyphAdvancesFuncT
  - FontGetGlyphContourPointFuncT
  - FontGetGlyphExtentsFuncT
  - FontGetGlyphFromNameFuncT
  - FontGetGlyphFuncT
  - FontGetGlyphKerningFuncT
  - FontGetGlyphNameFuncT
  - FontGetGlyphOriginFuncT
  - FontGetGlyphOriginsFuncT
  - FontGetGlyphShapeFuncT
  - FontGetNominalGlyphFuncT
  - FontGetNominalGlyphsFuncT
  - FontGetVariationGlyphFuncT
  - FontPaintGlyphFuncT
  - FontPaintGlyphOrFailFuncT
  - GetTableTagsFuncT
  - PaintColorFuncT
  - PaintColorGlyphFuncT
  - PaintCustomPaletteColorFuncT
  - PaintImageFuncT
  - PaintLinearGradientFuncT
  - PaintPopClipFuncT
  - PaintPopGroupFuncT
  - PaintPopTransformFuncT
  - PaintPushClipGlyphFuncT
  - PaintPushClipRectangleFuncT
  - PaintPushGroupFuncT
  - PaintPushTransformFuncT
  - PaintRadialGradientFuncT
  - PaintSweepGradientFuncT
  - ReferenceTableFuncT
  - UnicodeCombiningClassFuncT
  - UnicodeComposeFuncT
  - UnicodeDecomposeCompatibilityFuncT
  - UnicodeDecomposeFuncT
  - UnicodeEastasianWidthFuncT
  - UnicodeGeneralCategoryFuncT
  - UnicodeMirroringFuncT
  - UnicodeScriptFuncT

Description

Synopsis

- type BufferMessageFuncT = BufferT -> FontT -> Text -> IO Int32
- type BufferMessageFuncT_WithClosures = BufferT -> FontT -> Text -> Ptr () -> IO Int32
- type C_BufferMessageFuncT = Ptr BufferT -> Ptr FontT -> CString -> Ptr () -> IO Int32
- drop_closures_BufferMessageFuncT :: BufferMessageFuncT -> BufferMessageFuncT_WithClosures
- dynamic_BufferMessageFuncT :: (HasCallStack, MonadIO m) => FunPtr C_BufferMessageFuncT -> BufferT -> FontT -> Text -> Ptr () -> m Int32
- genClosure_BufferMessageFuncT :: MonadIO m => BufferMessageFuncT -> m (GClosure C_BufferMessageFuncT)
- mk_BufferMessageFuncT :: C_BufferMessageFuncT -> IO (FunPtr C_BufferMessageFuncT)
- noBufferMessageFuncT :: Maybe BufferMessageFuncT
- noBufferMessageFuncT_WithClosures :: Maybe BufferMessageFuncT_WithClosures
- wrap_BufferMessageFuncT :: Maybe (Ptr (FunPtr C_BufferMessageFuncT)) -> BufferMessageFuncT_WithClosures -> C_BufferMessageFuncT
- type C_ColorLineGetColorStopsFuncT = Ptr ColorLineT -> Ptr () -> Word32 -> Word32 -> Ptr ColorStopT -> Ptr () -> IO Word32
- type ColorLineGetColorStopsFuncT = ColorLineT -> Ptr () -> Word32 -> [ColorStopT] -> IO (Word32, [ColorStopT])
- type ColorLineGetColorStopsFuncT_WithClosures = ColorLineT -> Ptr () -> Word32 -> [ColorStopT] -> Ptr () -> IO (Word32, [ColorStopT])
- drop_closures_ColorLineGetColorStopsFuncT :: ColorLineGetColorStopsFuncT -> ColorLineGetColorStopsFuncT_WithClosures
- dynamic_ColorLineGetColorStopsFuncT :: (HasCallStack, MonadIO m) => FunPtr C_ColorLineGetColorStopsFuncT -> ColorLineT -> Ptr () -> Word32 -> [ColorStopT] -> Ptr () -> m (Word32, [ColorStopT])
- genClosure_ColorLineGetColorStopsFuncT :: MonadIO m => ColorLineGetColorStopsFuncT -> m (GClosure C_ColorLineGetColorStopsFuncT)
- mk_ColorLineGetColorStopsFuncT :: C_ColorLineGetColorStopsFuncT -> IO (FunPtr C_ColorLineGetColorStopsFuncT)
- noColorLineGetColorStopsFuncT :: Maybe ColorLineGetColorStopsFuncT
- noColorLineGetColorStopsFuncT_WithClosures :: Maybe ColorLineGetColorStopsFuncT_WithClosures
- wrap_ColorLineGetColorStopsFuncT :: Maybe (Ptr (FunPtr C_ColorLineGetColorStopsFuncT)) -> ColorLineGetColorStopsFuncT_WithClosures -> C_ColorLineGetColorStopsFuncT
- type C_ColorLineGetExtendFuncT = Ptr ColorLineT -> Ptr () -> Ptr () -> IO CUInt
- type ColorLineGetExtendFuncT = ColorLineT -> Ptr () -> IO PaintExtendT
- type ColorLineGetExtendFuncT_WithClosures = ColorLineT -> Ptr () -> Ptr () -> IO PaintExtendT
- drop_closures_ColorLineGetExtendFuncT :: ColorLineGetExtendFuncT -> ColorLineGetExtendFuncT_WithClosures
- dynamic_ColorLineGetExtendFuncT :: (HasCallStack, MonadIO m) => FunPtr C_ColorLineGetExtendFuncT -> ColorLineT -> Ptr () -> Ptr () -> m PaintExtendT
- genClosure_ColorLineGetExtendFuncT :: MonadIO m => ColorLineGetExtendFuncT -> m (GClosure C_ColorLineGetExtendFuncT)
- mk_ColorLineGetExtendFuncT :: C_ColorLineGetExtendFuncT -> IO (FunPtr C_ColorLineGetExtendFuncT)
- noColorLineGetExtendFuncT :: Maybe ColorLineGetExtendFuncT
- noColorLineGetExtendFuncT_WithClosures :: Maybe ColorLineGetExtendFuncT_WithClosures
- wrap_ColorLineGetExtendFuncT :: Maybe (Ptr (FunPtr C_ColorLineGetExtendFuncT)) -> ColorLineGetExtendFuncT_WithClosures -> C_ColorLineGetExtendFuncT
- type C_DestroyFuncT = Ptr () -> IO ()
- type DestroyFuncT = IO ()
- type DestroyFuncT_WithClosures = Ptr () -> IO ()
- drop_closures_DestroyFuncT :: DestroyFuncT -> DestroyFuncT_WithClosures
- dynamic_DestroyFuncT :: (HasCallStack, MonadIO m) => FunPtr C_DestroyFuncT -> Ptr () -> m ()
- genClosure_DestroyFuncT :: MonadIO m => DestroyFuncT -> m (GClosure C_DestroyFuncT)
- mk_DestroyFuncT :: C_DestroyFuncT -> IO (FunPtr C_DestroyFuncT)
- noDestroyFuncT :: Maybe DestroyFuncT
- noDestroyFuncT_WithClosures :: Maybe DestroyFuncT_WithClosures
- wrap_DestroyFuncT :: Maybe (Ptr (FunPtr C_DestroyFuncT)) -> DestroyFuncT_WithClosures -> C_DestroyFuncT
- type C_DrawClosePathFuncT = Ptr DrawFuncsT -> Ptr () -> Ptr DrawStateT -> Ptr () -> IO ()
- type DrawClosePathFuncT = DrawFuncsT -> Ptr () -> DrawStateT -> IO ()
- type DrawClosePathFuncT_WithClosures = DrawFuncsT -> Ptr () -> DrawStateT -> Ptr () -> IO ()
- drop_closures_DrawClosePathFuncT :: DrawClosePathFuncT -> DrawClosePathFuncT_WithClosures
- dynamic_DrawClosePathFuncT :: (HasCallStack, MonadIO m) => FunPtr C_DrawClosePathFuncT -> DrawFuncsT -> Ptr () -> DrawStateT -> Ptr () -> m ()
- genClosure_DrawClosePathFuncT :: MonadIO m => DrawClosePathFuncT -> m (GClosure C_DrawClosePathFuncT)
- mk_DrawClosePathFuncT :: C_DrawClosePathFuncT -> IO (FunPtr C_DrawClosePathFuncT)
- noDrawClosePathFuncT :: Maybe DrawClosePathFuncT
- noDrawClosePathFuncT_WithClosures :: Maybe DrawClosePathFuncT_WithClosures
- wrap_DrawClosePathFuncT :: Maybe (Ptr (FunPtr C_DrawClosePathFuncT)) -> DrawClosePathFuncT_WithClosures -> C_DrawClosePathFuncT
- type C_DrawCubicToFuncT = Ptr DrawFuncsT -> Ptr () -> Ptr DrawStateT -> CFloat -> CFloat -> CFloat -> CFloat -> CFloat -> CFloat -> Ptr () -> IO ()
- type DrawCubicToFuncT = DrawFuncsT -> Ptr () -> DrawStateT -> Float -> Float -> Float -> Float -> Float -> Float -> IO ()
- type DrawCubicToFuncT_WithClosures = DrawFuncsT -> Ptr () -> DrawStateT -> Float -> Float -> Float -> Float -> Float -> Float -> Ptr () -> IO ()
- drop_closures_DrawCubicToFuncT :: DrawCubicToFuncT -> DrawCubicToFuncT_WithClosures
- dynamic_DrawCubicToFuncT :: (HasCallStack, MonadIO m) => FunPtr C_DrawCubicToFuncT -> DrawFuncsT -> Ptr () -> DrawStateT -> Float -> Float -> Float -> Float -> Float -> Float -> Ptr () -> m ()
- genClosure_DrawCubicToFuncT :: MonadIO m => DrawCubicToFuncT -> m (GClosure C_DrawCubicToFuncT)
- mk_DrawCubicToFuncT :: C_DrawCubicToFuncT -> IO (FunPtr C_DrawCubicToFuncT)
- noDrawCubicToFuncT :: Maybe DrawCubicToFuncT
- noDrawCubicToFuncT_WithClosures :: Maybe DrawCubicToFuncT_WithClosures
- wrap_DrawCubicToFuncT :: Maybe (Ptr (FunPtr C_DrawCubicToFuncT)) -> DrawCubicToFuncT_WithClosures -> C_DrawCubicToFuncT
- type C_DrawLineToFuncT = Ptr DrawFuncsT -> Ptr () -> Ptr DrawStateT -> CFloat -> CFloat -> Ptr () -> IO ()
- type DrawLineToFuncT = DrawFuncsT -> Ptr () -> DrawStateT -> Float -> Float -> IO ()
- type DrawLineToFuncT_WithClosures = DrawFuncsT -> Ptr () -> DrawStateT -> Float -> Float -> Ptr () -> IO ()
- drop_closures_DrawLineToFuncT :: DrawLineToFuncT -> DrawLineToFuncT_WithClosures
- dynamic_DrawLineToFuncT :: (HasCallStack, MonadIO m) => FunPtr C_DrawLineToFuncT -> DrawFuncsT -> Ptr () -> DrawStateT -> Float -> Float -> Ptr () -> m ()
- genClosure_DrawLineToFuncT :: MonadIO m => DrawLineToFuncT -> m (GClosure C_DrawLineToFuncT)
- mk_DrawLineToFuncT :: C_DrawLineToFuncT -> IO (FunPtr C_DrawLineToFuncT)
- noDrawLineToFuncT :: Maybe DrawLineToFuncT
- noDrawLineToFuncT_WithClosures :: Maybe DrawLineToFuncT_WithClosures
- wrap_DrawLineToFuncT :: Maybe (Ptr (FunPtr C_DrawLineToFuncT)) -> DrawLineToFuncT_WithClosures -> C_DrawLineToFuncT
- type C_DrawMoveToFuncT = Ptr DrawFuncsT -> Ptr () -> Ptr DrawStateT -> CFloat -> CFloat -> Ptr () -> IO ()
- type DrawMoveToFuncT = DrawFuncsT -> Ptr () -> DrawStateT -> Float -> Float -> IO ()
- type DrawMoveToFuncT_WithClosures = DrawFuncsT -> Ptr () -> DrawStateT -> Float -> Float -> Ptr () -> IO ()
- drop_closures_DrawMoveToFuncT :: DrawMoveToFuncT -> DrawMoveToFuncT_WithClosures
- dynamic_DrawMoveToFuncT :: (HasCallStack, MonadIO m) => FunPtr C_DrawMoveToFuncT -> DrawFuncsT -> Ptr () -> DrawStateT -> Float -> Float -> Ptr () -> m ()
- genClosure_DrawMoveToFuncT :: MonadIO m => DrawMoveToFuncT -> m (GClosure C_DrawMoveToFuncT)
- mk_DrawMoveToFuncT :: C_DrawMoveToFuncT -> IO (FunPtr C_DrawMoveToFuncT)
- noDrawMoveToFuncT :: Maybe DrawMoveToFuncT
- noDrawMoveToFuncT_WithClosures :: Maybe DrawMoveToFuncT_WithClosures
- wrap_DrawMoveToFuncT :: Maybe (Ptr (FunPtr C_DrawMoveToFuncT)) -> DrawMoveToFuncT_WithClosures -> C_DrawMoveToFuncT
- type C_DrawQuadraticToFuncT = Ptr DrawFuncsT -> Ptr () -> Ptr DrawStateT -> CFloat -> CFloat -> CFloat -> CFloat -> Ptr () -> IO ()
- type DrawQuadraticToFuncT = DrawFuncsT -> Ptr () -> DrawStateT -> Float -> Float -> Float -> Float -> IO ()
- type DrawQuadraticToFuncT_WithClosures = DrawFuncsT -> Ptr () -> DrawStateT -> Float -> Float -> Float -> Float -> Ptr () -> IO ()
- drop_closures_DrawQuadraticToFuncT :: DrawQuadraticToFuncT -> DrawQuadraticToFuncT_WithClosures
- dynamic_DrawQuadraticToFuncT :: (HasCallStack, MonadIO m) => FunPtr C_DrawQuadraticToFuncT -> DrawFuncsT -> Ptr () -> DrawStateT -> Float -> Float -> Float -> Float -> Ptr () -> m ()
- genClosure_DrawQuadraticToFuncT :: MonadIO m => DrawQuadraticToFuncT -> m (GClosure C_DrawQuadraticToFuncT)
- mk_DrawQuadraticToFuncT :: C_DrawQuadraticToFuncT -> IO (FunPtr C_DrawQuadraticToFuncT)
- noDrawQuadraticToFuncT :: Maybe DrawQuadraticToFuncT
- noDrawQuadraticToFuncT_WithClosures :: Maybe DrawQuadraticToFuncT_WithClosures
- wrap_DrawQuadraticToFuncT :: Maybe (Ptr (FunPtr C_DrawQuadraticToFuncT)) -> DrawQuadraticToFuncT_WithClosures -> C_DrawQuadraticToFuncT
- type C_FontDrawGlyphFuncT = Ptr FontT -> Ptr () -> Word32 -> Ptr DrawFuncsT -> Ptr () -> Ptr () -> IO ()
- type FontDrawGlyphFuncT = FontT -> Ptr () -> Word32 -> DrawFuncsT -> Ptr () -> IO ()
- type FontDrawGlyphFuncT_WithClosures = FontT -> Ptr () -> Word32 -> DrawFuncsT -> Ptr () -> Ptr () -> IO ()
- drop_closures_FontDrawGlyphFuncT :: FontDrawGlyphFuncT -> FontDrawGlyphFuncT_WithClosures
- dynamic_FontDrawGlyphFuncT :: (HasCallStack, MonadIO m) => FunPtr C_FontDrawGlyphFuncT -> FontT -> Ptr () -> Word32 -> DrawFuncsT -> Ptr () -> Ptr () -> m ()
- genClosure_FontDrawGlyphFuncT :: MonadIO m => FontDrawGlyphFuncT -> m (GClosure C_FontDrawGlyphFuncT)
- mk_FontDrawGlyphFuncT :: C_FontDrawGlyphFuncT -> IO (FunPtr C_FontDrawGlyphFuncT)
- noFontDrawGlyphFuncT :: Maybe FontDrawGlyphFuncT
- noFontDrawGlyphFuncT_WithClosures :: Maybe FontDrawGlyphFuncT_WithClosures
- wrap_FontDrawGlyphFuncT :: Maybe (Ptr (FunPtr C_FontDrawGlyphFuncT)) -> FontDrawGlyphFuncT_WithClosures -> C_FontDrawGlyphFuncT
- type C_FontDrawGlyphOrFailFuncT = Ptr FontT -> Ptr () -> Word32 -> Ptr DrawFuncsT -> Ptr () -> Ptr () -> IO Int32
- type FontDrawGlyphOrFailFuncT = FontT -> Ptr () -> Word32 -> DrawFuncsT -> Ptr () -> IO Int32
- type FontDrawGlyphOrFailFuncT_WithClosures = FontT -> Ptr () -> Word32 -> DrawFuncsT -> Ptr () -> Ptr () -> IO Int32
- drop_closures_FontDrawGlyphOrFailFuncT :: FontDrawGlyphOrFailFuncT -> FontDrawGlyphOrFailFuncT_WithClosures
- dynamic_FontDrawGlyphOrFailFuncT :: (HasCallStack, MonadIO m) => FunPtr C_FontDrawGlyphOrFailFuncT -> FontT -> Ptr () -> Word32 -> DrawFuncsT -> Ptr () -> Ptr () -> m Int32
- genClosure_FontDrawGlyphOrFailFuncT :: MonadIO m => FontDrawGlyphOrFailFuncT -> m (GClosure C_FontDrawGlyphOrFailFuncT)
- mk_FontDrawGlyphOrFailFuncT :: C_FontDrawGlyphOrFailFuncT -> IO (FunPtr C_FontDrawGlyphOrFailFuncT)
- noFontDrawGlyphOrFailFuncT :: Maybe FontDrawGlyphOrFailFuncT
- noFontDrawGlyphOrFailFuncT_WithClosures :: Maybe FontDrawGlyphOrFailFuncT_WithClosures
- wrap_FontDrawGlyphOrFailFuncT :: Maybe (Ptr (FunPtr C_FontDrawGlyphOrFailFuncT)) -> FontDrawGlyphOrFailFuncT_WithClosures -> C_FontDrawGlyphOrFailFuncT
- type C_FontGetFontExtentsFuncT = Ptr FontT -> Ptr () -> Ptr FontExtentsT -> Ptr () -> IO Int32
- type FontGetFontExtentsFuncT = FontT -> Ptr () -> IO (Int32, FontExtentsT)
- type FontGetFontExtentsFuncT_WithClosures = FontT -> Ptr () -> Ptr () -> IO (Int32, FontExtentsT)
- drop_closures_FontGetFontExtentsFuncT :: FontGetFontExtentsFuncT -> FontGetFontExtentsFuncT_WithClosures
- dynamic_FontGetFontExtentsFuncT :: (HasCallStack, MonadIO m) => FunPtr C_FontGetFontExtentsFuncT -> FontT -> Ptr () -> Ptr () -> m (Int32, FontExtentsT)
- genClosure_FontGetFontExtentsFuncT :: MonadIO m => FontGetFontExtentsFuncT -> m (GClosure C_FontGetFontExtentsFuncT)
- mk_FontGetFontExtentsFuncT :: C_FontGetFontExtentsFuncT -> IO (FunPtr C_FontGetFontExtentsFuncT)
- noFontGetFontExtentsFuncT :: Maybe FontGetFontExtentsFuncT
- noFontGetFontExtentsFuncT_WithClosures :: Maybe FontGetFontExtentsFuncT_WithClosures
- wrap_FontGetFontExtentsFuncT :: Maybe (Ptr (FunPtr C_FontGetFontExtentsFuncT)) -> FontGetFontExtentsFuncT_WithClosures -> C_FontGetFontExtentsFuncT
- type C_FontGetGlyphAdvanceFuncT = Ptr FontT -> Ptr () -> Word32 -> Ptr () -> IO Int32
- type FontGetGlyphAdvanceFuncT = FontT -> Ptr () -> Word32 -> IO Int32
- type FontGetGlyphAdvanceFuncT_WithClosures = FontT -> Ptr () -> Word32 -> Ptr () -> IO Int32
- drop_closures_FontGetGlyphAdvanceFuncT :: FontGetGlyphAdvanceFuncT -> FontGetGlyphAdvanceFuncT_WithClosures
- dynamic_FontGetGlyphAdvanceFuncT :: (HasCallStack, MonadIO m) => FunPtr C_FontGetGlyphAdvanceFuncT -> FontT -> Ptr () -> Word32 -> Ptr () -> m Int32
- genClosure_FontGetGlyphAdvanceFuncT :: MonadIO m => FontGetGlyphAdvanceFuncT -> m (GClosure C_FontGetGlyphAdvanceFuncT)
- mk_FontGetGlyphAdvanceFuncT :: C_FontGetGlyphAdvanceFuncT -> IO (FunPtr C_FontGetGlyphAdvanceFuncT)
- noFontGetGlyphAdvanceFuncT :: Maybe FontGetGlyphAdvanceFuncT
- noFontGetGlyphAdvanceFuncT_WithClosures :: Maybe FontGetGlyphAdvanceFuncT_WithClosures
- wrap_FontGetGlyphAdvanceFuncT :: Maybe (Ptr (FunPtr C_FontGetGlyphAdvanceFuncT)) -> FontGetGlyphAdvanceFuncT_WithClosures -> C_FontGetGlyphAdvanceFuncT
- type C_FontGetGlyphAdvancesFuncT = Ptr FontT -> Ptr () -> Word32 -> Word32 -> Word32 -> Ptr Int32 -> Word32 -> Ptr () -> IO ()
- type FontGetGlyphAdvancesFuncT = FontT -> Ptr () -> Word32 -> Word32 -> Word32 -> Word32 -> IO Int32
- type FontGetGlyphAdvancesFuncT_WithClosures = FontT -> Ptr () -> Word32 -> Word32 -> Word32 -> Word32 -> Ptr () -> IO Int32
- drop_closures_FontGetGlyphAdvancesFuncT :: FontGetGlyphAdvancesFuncT -> FontGetGlyphAdvancesFuncT_WithClosures
- dynamic_FontGetGlyphAdvancesFuncT :: (HasCallStack, MonadIO m) => FunPtr C_FontGetGlyphAdvancesFuncT -> FontT -> Ptr () -> Word32 -> Word32 -> Word32 -> Word32 -> Ptr () -> m Int32
- genClosure_FontGetGlyphAdvancesFuncT :: MonadIO m => FontGetGlyphAdvancesFuncT -> m (GClosure C_FontGetGlyphAdvancesFuncT)
- mk_FontGetGlyphAdvancesFuncT :: C_FontGetGlyphAdvancesFuncT -> IO (FunPtr C_FontGetGlyphAdvancesFuncT)
- noFontGetGlyphAdvancesFuncT :: Maybe FontGetGlyphAdvancesFuncT
- noFontGetGlyphAdvancesFuncT_WithClosures :: Maybe FontGetGlyphAdvancesFuncT_WithClosures
- wrap_FontGetGlyphAdvancesFuncT :: Maybe (Ptr (FunPtr C_FontGetGlyphAdvancesFuncT)) -> FontGetGlyphAdvancesFuncT_WithClosures -> C_FontGetGlyphAdvancesFuncT
- type C_FontGetGlyphContourPointFuncT = Ptr FontT -> Ptr () -> Word32 -> Word32 -> Ptr Int32 -> Ptr Int32 -> Ptr () -> IO Int32
- type FontGetGlyphContourPointFuncT = FontT -> Ptr () -> Word32 -> Word32 -> IO (Int32, Int32, Int32)
- type FontGetGlyphContourPointFuncT_WithClosures = FontT -> Ptr () -> Word32 -> Word32 -> Ptr () -> IO (Int32, Int32, Int32)
- drop_closures_FontGetGlyphContourPointFuncT :: FontGetGlyphContourPointFuncT -> FontGetGlyphContourPointFuncT_WithClosures
- dynamic_FontGetGlyphContourPointFuncT :: (HasCallStack, MonadIO m) => FunPtr C_FontGetGlyphContourPointFuncT -> FontT -> Ptr () -> Word32 -> Word32 -> Ptr () -> m (Int32, Int32, Int32)
- genClosure_FontGetGlyphContourPointFuncT :: MonadIO m => FontGetGlyphContourPointFuncT -> m (GClosure C_FontGetGlyphContourPointFuncT)
- mk_FontGetGlyphContourPointFuncT :: C_FontGetGlyphContourPointFuncT -> IO (FunPtr C_FontGetGlyphContourPointFuncT)
- noFontGetGlyphContourPointFuncT :: Maybe FontGetGlyphContourPointFuncT
- noFontGetGlyphContourPointFuncT_WithClosures :: Maybe FontGetGlyphContourPointFuncT_WithClosures
- wrap_FontGetGlyphContourPointFuncT :: Maybe (Ptr (FunPtr C_FontGetGlyphContourPointFuncT)) -> FontGetGlyphContourPointFuncT_WithClosures -> C_FontGetGlyphContourPointFuncT
- type C_FontGetGlyphExtentsFuncT = Ptr FontT -> Ptr () -> Word32 -> Ptr GlyphExtentsT -> Ptr () -> IO Int32
- type FontGetGlyphExtentsFuncT = FontT -> Ptr () -> Word32 -> IO (Int32, GlyphExtentsT)
- type FontGetGlyphExtentsFuncT_WithClosures = FontT -> Ptr () -> Word32 -> Ptr () -> IO (Int32, GlyphExtentsT)
- drop_closures_FontGetGlyphExtentsFuncT :: FontGetGlyphExtentsFuncT -> FontGetGlyphExtentsFuncT_WithClosures
- dynamic_FontGetGlyphExtentsFuncT :: (HasCallStack, MonadIO m) => FunPtr C_FontGetGlyphExtentsFuncT -> FontT -> Ptr () -> Word32 -> Ptr () -> m (Int32, GlyphExtentsT)
- genClosure_FontGetGlyphExtentsFuncT :: MonadIO m => FontGetGlyphExtentsFuncT -> m (GClosure C_FontGetGlyphExtentsFuncT)
- mk_FontGetGlyphExtentsFuncT :: C_FontGetGlyphExtentsFuncT -> IO (FunPtr C_FontGetGlyphExtentsFuncT)
- noFontGetGlyphExtentsFuncT :: Maybe FontGetGlyphExtentsFuncT
- noFontGetGlyphExtentsFuncT_WithClosures :: Maybe FontGetGlyphExtentsFuncT_WithClosures
- wrap_FontGetGlyphExtentsFuncT :: Maybe (Ptr (FunPtr C_FontGetGlyphExtentsFuncT)) -> FontGetGlyphExtentsFuncT_WithClosures -> C_FontGetGlyphExtentsFuncT
- type C_FontGetGlyphFromNameFuncT = Ptr FontT -> Ptr () -> Ptr CString -> Int32 -> Ptr Word32 -> Ptr () -> IO Int32
- type FontGetGlyphFromNameFuncT = FontT -> Ptr () -> [Text] -> IO (Int32, Word32)
- type FontGetGlyphFromNameFuncT_WithClosures = FontT -> Ptr () -> [Text] -> Ptr () -> IO (Int32, Word32)
- drop_closures_FontGetGlyphFromNameFuncT :: FontGetGlyphFromNameFuncT -> FontGetGlyphFromNameFuncT_WithClosures
- dynamic_FontGetGlyphFromNameFuncT :: (HasCallStack, MonadIO m) => FunPtr C_FontGetGlyphFromNameFuncT -> FontT -> Ptr () -> [Text] -> Ptr () -> m (Int32, Word32)
- genClosure_FontGetGlyphFromNameFuncT :: MonadIO m => FontGetGlyphFromNameFuncT -> m (GClosure C_FontGetGlyphFromNameFuncT)
- mk_FontGetGlyphFromNameFuncT :: C_FontGetGlyphFromNameFuncT -> IO (FunPtr C_FontGetGlyphFromNameFuncT)
- noFontGetGlyphFromNameFuncT :: Maybe FontGetGlyphFromNameFuncT
- noFontGetGlyphFromNameFuncT_WithClosures :: Maybe FontGetGlyphFromNameFuncT_WithClosures
- wrap_FontGetGlyphFromNameFuncT :: Maybe (Ptr (FunPtr C_FontGetGlyphFromNameFuncT)) -> FontGetGlyphFromNameFuncT_WithClosures -> C_FontGetGlyphFromNameFuncT
- type C_FontGetGlyphFuncT = Ptr FontT -> Ptr () -> Word32 -> Word32 -> Ptr Word32 -> Ptr () -> IO Int32
- type FontGetGlyphFuncT = FontT -> Ptr () -> Word32 -> Word32 -> IO (Int32, Word32)
- type FontGetGlyphFuncT_WithClosures = FontT -> Ptr () -> Word32 -> Word32 -> Ptr () -> IO (Int32, Word32)
- drop_closures_FontGetGlyphFuncT :: FontGetGlyphFuncT -> FontGetGlyphFuncT_WithClosures
- dynamic_FontGetGlyphFuncT :: (HasCallStack, MonadIO m) => FunPtr C_FontGetGlyphFuncT -> FontT -> Ptr () -> Word32 -> Word32 -> Ptr () -> m (Int32, Word32)
- genClosure_FontGetGlyphFuncT :: MonadIO m => FontGetGlyphFuncT -> m (GClosure C_FontGetGlyphFuncT)
- mk_FontGetGlyphFuncT :: C_FontGetGlyphFuncT -> IO (FunPtr C_FontGetGlyphFuncT)
- noFontGetGlyphFuncT :: Maybe FontGetGlyphFuncT
- noFontGetGlyphFuncT_WithClosures :: Maybe FontGetGlyphFuncT_WithClosures
- wrap_FontGetGlyphFuncT :: Maybe (Ptr (FunPtr C_FontGetGlyphFuncT)) -> FontGetGlyphFuncT_WithClosures -> C_FontGetGlyphFuncT
- type C_FontGetGlyphKerningFuncT = Ptr FontT -> Ptr () -> Word32 -> Word32 -> Ptr () -> IO Int32
- type FontGetGlyphKerningFuncT = FontT -> Ptr () -> Word32 -> Word32 -> IO Int32
- type FontGetGlyphKerningFuncT_WithClosures = FontT -> Ptr () -> Word32 -> Word32 -> Ptr () -> IO Int32
- drop_closures_FontGetGlyphKerningFuncT :: FontGetGlyphKerningFuncT -> FontGetGlyphKerningFuncT_WithClosures
- dynamic_FontGetGlyphKerningFuncT :: (HasCallStack, MonadIO m) => FunPtr C_FontGetGlyphKerningFuncT -> FontT -> Ptr () -> Word32 -> Word32 -> Ptr () -> m Int32
- genClosure_FontGetGlyphKerningFuncT :: MonadIO m => FontGetGlyphKerningFuncT -> m (GClosure C_FontGetGlyphKerningFuncT)
- mk_FontGetGlyphKerningFuncT :: C_FontGetGlyphKerningFuncT -> IO (FunPtr C_FontGetGlyphKerningFuncT)
- noFontGetGlyphKerningFuncT :: Maybe FontGetGlyphKerningFuncT
- noFontGetGlyphKerningFuncT_WithClosures :: Maybe FontGetGlyphKerningFuncT_WithClosures
- wrap_FontGetGlyphKerningFuncT :: Maybe (Ptr (FunPtr C_FontGetGlyphKerningFuncT)) -> FontGetGlyphKerningFuncT_WithClosures -> C_FontGetGlyphKerningFuncT
- type C_FontGetGlyphNameFuncT = Ptr FontT -> Ptr () -> Word32 -> Ptr (Ptr CString) -> Ptr Word32 -> Ptr () -> IO Int32
- type FontGetGlyphNameFuncT = FontT -> Ptr () -> Word32 -> IO (Int32, [Text])
- type FontGetGlyphNameFuncT_WithClosures = FontT -> Ptr () -> Word32 -> Ptr () -> IO (Int32, [Text])
- drop_closures_FontGetGlyphNameFuncT :: FontGetGlyphNameFuncT -> FontGetGlyphNameFuncT_WithClosures
- dynamic_FontGetGlyphNameFuncT :: (HasCallStack, MonadIO m) => FunPtr C_FontGetGlyphNameFuncT -> FontT -> Ptr () -> Word32 -> Ptr () -> m (Int32, [Text])
- genClosure_FontGetGlyphNameFuncT :: MonadIO m => FontGetGlyphNameFuncT -> m (GClosure C_FontGetGlyphNameFuncT)
- mk_FontGetGlyphNameFuncT :: C_FontGetGlyphNameFuncT -> IO (FunPtr C_FontGetGlyphNameFuncT)
- noFontGetGlyphNameFuncT :: Maybe FontGetGlyphNameFuncT
- noFontGetGlyphNameFuncT_WithClosures :: Maybe FontGetGlyphNameFuncT_WithClosures
- wrap_FontGetGlyphNameFuncT :: Maybe (Ptr (FunPtr C_FontGetGlyphNameFuncT)) -> FontGetGlyphNameFuncT_WithClosures -> C_FontGetGlyphNameFuncT
- type C_FontGetGlyphOriginFuncT = Ptr FontT -> Ptr () -> Word32 -> Ptr Int32 -> Ptr Int32 -> Ptr () -> IO Int32
- type FontGetGlyphOriginFuncT = FontT -> Ptr () -> Word32 -> IO (Int32, Int32, Int32)
- type FontGetGlyphOriginFuncT_WithClosures = FontT -> Ptr () -> Word32 -> Ptr () -> IO (Int32, Int32, Int32)
- drop_closures_FontGetGlyphOriginFuncT :: FontGetGlyphOriginFuncT -> FontGetGlyphOriginFuncT_WithClosures
- dynamic_FontGetGlyphOriginFuncT :: (HasCallStack, MonadIO m) => FunPtr C_FontGetGlyphOriginFuncT -> FontT -> Ptr () -> Word32 -> Ptr () -> m (Int32, Int32, Int32)
- genClosure_FontGetGlyphOriginFuncT :: MonadIO m => FontGetGlyphOriginFuncT -> m (GClosure C_FontGetGlyphOriginFuncT)
- mk_FontGetGlyphOriginFuncT :: C_FontGetGlyphOriginFuncT -> IO (FunPtr C_FontGetGlyphOriginFuncT)
- noFontGetGlyphOriginFuncT :: Maybe FontGetGlyphOriginFuncT
- noFontGetGlyphOriginFuncT_WithClosures :: Maybe FontGetGlyphOriginFuncT_WithClosures
- wrap_FontGetGlyphOriginFuncT :: Maybe (Ptr (FunPtr C_FontGetGlyphOriginFuncT)) -> FontGetGlyphOriginFuncT_WithClosures -> C_FontGetGlyphOriginFuncT
- type C_FontGetGlyphOriginsFuncT = Ptr FontT -> Ptr () -> Word32 -> Word32 -> Word32 -> Ptr Int32 -> Word32 -> Ptr Int32 -> Word32 -> Ptr () -> IO Int32
- type FontGetGlyphOriginsFuncT = FontT -> Ptr () -> Word32 -> Word32 -> Word32 -> Word32 -> Word32 -> IO (Int32, Int32, Int32)
- type FontGetGlyphOriginsFuncT_WithClosures = FontT -> Ptr () -> Word32 -> Word32 -> Word32 -> Word32 -> Word32 -> Ptr () -> IO (Int32, Int32, Int32)
- drop_closures_FontGetGlyphOriginsFuncT :: FontGetGlyphOriginsFuncT -> FontGetGlyphOriginsFuncT_WithClosures
- dynamic_FontGetGlyphOriginsFuncT :: (HasCallStack, MonadIO m) => FunPtr C_FontGetGlyphOriginsFuncT -> FontT -> Ptr () -> Word32 -> Word32 -> Word32 -> Word32 -> Word32 -> Ptr () -> m (Int32, Int32, Int32)
- genClosure_FontGetGlyphOriginsFuncT :: MonadIO m => FontGetGlyphOriginsFuncT -> m (GClosure C_FontGetGlyphOriginsFuncT)
- mk_FontGetGlyphOriginsFuncT :: C_FontGetGlyphOriginsFuncT -> IO (FunPtr C_FontGetGlyphOriginsFuncT)
- noFontGetGlyphOriginsFuncT :: Maybe FontGetGlyphOriginsFuncT
- noFontGetGlyphOriginsFuncT_WithClosures :: Maybe FontGetGlyphOriginsFuncT_WithClosures
- wrap_FontGetGlyphOriginsFuncT :: Maybe (Ptr (FunPtr C_FontGetGlyphOriginsFuncT)) -> FontGetGlyphOriginsFuncT_WithClosures -> C_FontGetGlyphOriginsFuncT
- type C_FontGetGlyphShapeFuncT = Ptr FontT -> Ptr () -> Word32 -> Ptr DrawFuncsT -> Ptr () -> Ptr () -> IO ()
- type FontGetGlyphShapeFuncT = FontT -> Ptr () -> Word32 -> DrawFuncsT -> Ptr () -> IO ()
- type FontGetGlyphShapeFuncT_WithClosures = FontT -> Ptr () -> Word32 -> DrawFuncsT -> Ptr () -> Ptr () -> IO ()
- drop_closures_FontGetGlyphShapeFuncT :: FontGetGlyphShapeFuncT -> FontGetGlyphShapeFuncT_WithClosures
- dynamic_FontGetGlyphShapeFuncT :: (HasCallStack, MonadIO m) => FunPtr C_FontGetGlyphShapeFuncT -> FontT -> Ptr () -> Word32 -> DrawFuncsT -> Ptr () -> Ptr () -> m ()
- genClosure_FontGetGlyphShapeFuncT :: MonadIO m => FontGetGlyphShapeFuncT -> m (GClosure C_FontGetGlyphShapeFuncT)
- mk_FontGetGlyphShapeFuncT :: C_FontGetGlyphShapeFuncT -> IO (FunPtr C_FontGetGlyphShapeFuncT)
- noFontGetGlyphShapeFuncT :: Maybe FontGetGlyphShapeFuncT
- noFontGetGlyphShapeFuncT_WithClosures :: Maybe FontGetGlyphShapeFuncT_WithClosures
- wrap_FontGetGlyphShapeFuncT :: Maybe (Ptr (FunPtr C_FontGetGlyphShapeFuncT)) -> FontGetGlyphShapeFuncT_WithClosures -> C_FontGetGlyphShapeFuncT
- type C_FontGetNominalGlyphFuncT = Ptr FontT -> Ptr () -> Word32 -> Ptr Word32 -> Ptr () -> IO Int32
- type FontGetNominalGlyphFuncT = FontT -> Ptr () -> Word32 -> IO (Int32, Word32)
- type FontGetNominalGlyphFuncT_WithClosures = FontT -> Ptr () -> Word32 -> Ptr () -> IO (Int32, Word32)
- drop_closures_FontGetNominalGlyphFuncT :: FontGetNominalGlyphFuncT -> FontGetNominalGlyphFuncT_WithClosures
- dynamic_FontGetNominalGlyphFuncT :: (HasCallStack, MonadIO m) => FunPtr C_FontGetNominalGlyphFuncT -> FontT -> Ptr () -> Word32 -> Ptr () -> m (Int32, Word32)
- genClosure_FontGetNominalGlyphFuncT :: MonadIO m => FontGetNominalGlyphFuncT -> m (GClosure C_FontGetNominalGlyphFuncT)
- mk_FontGetNominalGlyphFuncT :: C_FontGetNominalGlyphFuncT -> IO (FunPtr C_FontGetNominalGlyphFuncT)
- noFontGetNominalGlyphFuncT :: Maybe FontGetNominalGlyphFuncT
- noFontGetNominalGlyphFuncT_WithClosures :: Maybe FontGetNominalGlyphFuncT_WithClosures
- wrap_FontGetNominalGlyphFuncT :: Maybe (Ptr (FunPtr C_FontGetNominalGlyphFuncT)) -> FontGetNominalGlyphFuncT_WithClosures -> C_FontGetNominalGlyphFuncT
- type C_FontGetNominalGlyphsFuncT = Ptr FontT -> Ptr () -> Word32 -> Word32 -> Word32 -> Ptr Word32 -> Word32 -> Ptr () -> IO Word32
- type FontGetNominalGlyphsFuncT = FontT -> Ptr () -> Word32 -> Word32 -> Word32 -> Word32 -> IO (Word32, Word32)
- type FontGetNominalGlyphsFuncT_WithClosures = FontT -> Ptr () -> Word32 -> Word32 -> Word32 -> Word32 -> Ptr () -> IO (Word32, Word32)
- drop_closures_FontGetNominalGlyphsFuncT :: FontGetNominalGlyphsFuncT -> FontGetNominalGlyphsFuncT_WithClosures
- dynamic_FontGetNominalGlyphsFuncT :: (HasCallStack, MonadIO m) => FunPtr C_FontGetNominalGlyphsFuncT -> FontT -> Ptr () -> Word32 -> Word32 -> Word32 -> Word32 -> Ptr () -> m (Word32, Word32)
- genClosure_FontGetNominalGlyphsFuncT :: MonadIO m => FontGetNominalGlyphsFuncT -> m (GClosure C_FontGetNominalGlyphsFuncT)
- mk_FontGetNominalGlyphsFuncT :: C_FontGetNominalGlyphsFuncT -> IO (FunPtr C_FontGetNominalGlyphsFuncT)
- noFontGetNominalGlyphsFuncT :: Maybe FontGetNominalGlyphsFuncT
- noFontGetNominalGlyphsFuncT_WithClosures :: Maybe FontGetNominalGlyphsFuncT_WithClosures
- wrap_FontGetNominalGlyphsFuncT :: Maybe (Ptr (FunPtr C_FontGetNominalGlyphsFuncT)) -> FontGetNominalGlyphsFuncT_WithClosures -> C_FontGetNominalGlyphsFuncT
- type C_FontGetVariationGlyphFuncT = Ptr FontT -> Ptr () -> Word32 -> Word32 -> Ptr Word32 -> Ptr () -> IO Int32
- type FontGetVariationGlyphFuncT = FontT -> Ptr () -> Word32 -> Word32 -> IO (Int32, Word32)
- type FontGetVariationGlyphFuncT_WithClosures = FontT -> Ptr () -> Word32 -> Word32 -> Ptr () -> IO (Int32, Word32)
- drop_closures_FontGetVariationGlyphFuncT :: FontGetVariationGlyphFuncT -> FontGetVariationGlyphFuncT_WithClosures
- dynamic_FontGetVariationGlyphFuncT :: (HasCallStack, MonadIO m) => FunPtr C_FontGetVariationGlyphFuncT -> FontT -> Ptr () -> Word32 -> Word32 -> Ptr () -> m (Int32, Word32)
- genClosure_FontGetVariationGlyphFuncT :: MonadIO m => FontGetVariationGlyphFuncT -> m (GClosure C_FontGetVariationGlyphFuncT)
- mk_FontGetVariationGlyphFuncT :: C_FontGetVariationGlyphFuncT -> IO (FunPtr C_FontGetVariationGlyphFuncT)
- noFontGetVariationGlyphFuncT :: Maybe FontGetVariationGlyphFuncT
- noFontGetVariationGlyphFuncT_WithClosures :: Maybe FontGetVariationGlyphFuncT_WithClosures
- wrap_FontGetVariationGlyphFuncT :: Maybe (Ptr (FunPtr C_FontGetVariationGlyphFuncT)) -> FontGetVariationGlyphFuncT_WithClosures -> C_FontGetVariationGlyphFuncT
- type C_FontPaintGlyphFuncT = Ptr FontT -> Ptr () -> Word32 -> Ptr PaintFuncsT -> Ptr () -> Word32 -> Word32 -> Ptr () -> IO Int32
- type FontPaintGlyphFuncT = FontT -> Ptr () -> Word32 -> PaintFuncsT -> Ptr () -> Word32 -> Word32 -> IO Int32
- type FontPaintGlyphFuncT_WithClosures = FontT -> Ptr () -> Word32 -> PaintFuncsT -> Ptr () -> Word32 -> Word32 -> Ptr () -> IO Int32
- drop_closures_FontPaintGlyphFuncT :: FontPaintGlyphFuncT -> FontPaintGlyphFuncT_WithClosures
- dynamic_FontPaintGlyphFuncT :: (HasCallStack, MonadIO m) => FunPtr C_FontPaintGlyphFuncT -> FontT -> Ptr () -> Word32 -> PaintFuncsT -> Ptr () -> Word32 -> Word32 -> Ptr () -> m Int32
- genClosure_FontPaintGlyphFuncT :: MonadIO m => FontPaintGlyphFuncT -> m (GClosure C_FontPaintGlyphFuncT)
- mk_FontPaintGlyphFuncT :: C_FontPaintGlyphFuncT -> IO (FunPtr C_FontPaintGlyphFuncT)
- noFontPaintGlyphFuncT :: Maybe FontPaintGlyphFuncT
- noFontPaintGlyphFuncT_WithClosures :: Maybe FontPaintGlyphFuncT_WithClosures
- wrap_FontPaintGlyphFuncT :: Maybe (Ptr (FunPtr C_FontPaintGlyphFuncT)) -> FontPaintGlyphFuncT_WithClosures -> C_FontPaintGlyphFuncT
- type C_FontPaintGlyphOrFailFuncT = Ptr FontT -> Ptr () -> Word32 -> Ptr PaintFuncsT -> Ptr () -> Word32 -> Word32 -> Ptr () -> IO Int32
- type FontPaintGlyphOrFailFuncT = FontT -> Ptr () -> Word32 -> PaintFuncsT -> Ptr () -> Word32 -> Word32 -> IO Int32
- type FontPaintGlyphOrFailFuncT_WithClosures = FontT -> Ptr () -> Word32 -> PaintFuncsT -> Ptr () -> Word32 -> Word32 -> Ptr () -> IO Int32
- drop_closures_FontPaintGlyphOrFailFuncT :: FontPaintGlyphOrFailFuncT -> FontPaintGlyphOrFailFuncT_WithClosures
- dynamic_FontPaintGlyphOrFailFuncT :: (HasCallStack, MonadIO m) => FunPtr C_FontPaintGlyphOrFailFuncT -> FontT -> Ptr () -> Word32 -> PaintFuncsT -> Ptr () -> Word32 -> Word32 -> Ptr () -> m Int32
- genClosure_FontPaintGlyphOrFailFuncT :: MonadIO m => FontPaintGlyphOrFailFuncT -> m (GClosure C_FontPaintGlyphOrFailFuncT)
- mk_FontPaintGlyphOrFailFuncT :: C_FontPaintGlyphOrFailFuncT -> IO (FunPtr C_FontPaintGlyphOrFailFuncT)
- noFontPaintGlyphOrFailFuncT :: Maybe FontPaintGlyphOrFailFuncT
- noFontPaintGlyphOrFailFuncT_WithClosures :: Maybe FontPaintGlyphOrFailFuncT_WithClosures
- wrap_FontPaintGlyphOrFailFuncT :: Maybe (Ptr (FunPtr C_FontPaintGlyphOrFailFuncT)) -> FontPaintGlyphOrFailFuncT_WithClosures -> C_FontPaintGlyphOrFailFuncT
- type C_GetTableTagsFuncT = Ptr FaceT -> Word32 -> Ptr Word32 -> Ptr (Ptr Word32) -> Ptr () -> IO Word32
- type GetTableTagsFuncT = FaceT -> Word32 -> IO (Word32, [Word32])
- type GetTableTagsFuncT_WithClosures = FaceT -> Word32 -> Ptr () -> IO (Word32, [Word32])
- drop_closures_GetTableTagsFuncT :: GetTableTagsFuncT -> GetTableTagsFuncT_WithClosures
- dynamic_GetTableTagsFuncT :: (HasCallStack, MonadIO m) => FunPtr C_GetTableTagsFuncT -> FaceT -> Word32 -> Ptr () -> m (Word32, [Word32])
- genClosure_GetTableTagsFuncT :: MonadIO m => GetTableTagsFuncT -> m (GClosure C_GetTableTagsFuncT)
- mk_GetTableTagsFuncT :: C_GetTableTagsFuncT -> IO (FunPtr C_GetTableTagsFuncT)
- noGetTableTagsFuncT :: Maybe GetTableTagsFuncT
- noGetTableTagsFuncT_WithClosures :: Maybe GetTableTagsFuncT_WithClosures
- wrap_GetTableTagsFuncT :: Maybe (Ptr (FunPtr C_GetTableTagsFuncT)) -> GetTableTagsFuncT_WithClosures -> C_GetTableTagsFuncT
- type C_PaintColorFuncT = Ptr PaintFuncsT -> Ptr () -> Int32 -> Word32 -> Ptr () -> IO ()
- type PaintColorFuncT = PaintFuncsT -> Ptr () -> Int32 -> Word32 -> IO ()
- type PaintColorFuncT_WithClosures = PaintFuncsT -> Ptr () -> Int32 -> Word32 -> Ptr () -> IO ()
- drop_closures_PaintColorFuncT :: PaintColorFuncT -> PaintColorFuncT_WithClosures
- dynamic_PaintColorFuncT :: (HasCallStack, MonadIO m) => FunPtr C_PaintColorFuncT -> PaintFuncsT -> Ptr () -> Int32 -> Word32 -> Ptr () -> m ()
- genClosure_PaintColorFuncT :: MonadIO m => PaintColorFuncT -> m (GClosure C_PaintColorFuncT)
- mk_PaintColorFuncT :: C_PaintColorFuncT -> IO (FunPtr C_PaintColorFuncT)
- noPaintColorFuncT :: Maybe PaintColorFuncT
- noPaintColorFuncT_WithClosures :: Maybe PaintColorFuncT_WithClosures
- wrap_PaintColorFuncT :: Maybe (Ptr (FunPtr C_PaintColorFuncT)) -> PaintColorFuncT_WithClosures -> C_PaintColorFuncT
- type C_PaintColorGlyphFuncT = Ptr PaintFuncsT -> Ptr () -> Word32 -> Ptr FontT -> Ptr () -> IO Int32
- type PaintColorGlyphFuncT = PaintFuncsT -> Ptr () -> Word32 -> FontT -> IO Int32
- type PaintColorGlyphFuncT_WithClosures = PaintFuncsT -> Ptr () -> Word32 -> FontT -> Ptr () -> IO Int32
- drop_closures_PaintColorGlyphFuncT :: PaintColorGlyphFuncT -> PaintColorGlyphFuncT_WithClosures
- dynamic_PaintColorGlyphFuncT :: (HasCallStack, MonadIO m) => FunPtr C_PaintColorGlyphFuncT -> PaintFuncsT -> Ptr () -> Word32 -> FontT -> Ptr () -> m Int32
- genClosure_PaintColorGlyphFuncT :: MonadIO m => PaintColorGlyphFuncT -> m (GClosure C_PaintColorGlyphFuncT)
- mk_PaintColorGlyphFuncT :: C_PaintColorGlyphFuncT -> IO (FunPtr C_PaintColorGlyphFuncT)
- noPaintColorGlyphFuncT :: Maybe PaintColorGlyphFuncT
- noPaintColorGlyphFuncT_WithClosures :: Maybe PaintColorGlyphFuncT_WithClosures
- wrap_PaintColorGlyphFuncT :: Maybe (Ptr (FunPtr C_PaintColorGlyphFuncT)) -> PaintColorGlyphFuncT_WithClosures -> C_PaintColorGlyphFuncT
- type C_PaintCustomPaletteColorFuncT = Ptr PaintFuncsT -> Ptr () -> Word32 -> Ptr Word32 -> Ptr () -> IO Int32
- type PaintCustomPaletteColorFuncT = PaintFuncsT -> Ptr () -> Word32 -> IO (Int32, Word32)
- type PaintCustomPaletteColorFuncT_WithClosures = PaintFuncsT -> Ptr () -> Word32 -> Ptr () -> IO (Int32, Word32)
- drop_closures_PaintCustomPaletteColorFuncT :: PaintCustomPaletteColorFuncT -> PaintCustomPaletteColorFuncT_WithClosures
- dynamic_PaintCustomPaletteColorFuncT :: (HasCallStack, MonadIO m) => FunPtr C_PaintCustomPaletteColorFuncT -> PaintFuncsT -> Ptr () -> Word32 -> Ptr () -> m (Int32, Word32)
- genClosure_PaintCustomPaletteColorFuncT :: MonadIO m => PaintCustomPaletteColorFuncT -> m (GClosure C_PaintCustomPaletteColorFuncT)
- mk_PaintCustomPaletteColorFuncT :: C_PaintCustomPaletteColorFuncT -> IO (FunPtr C_PaintCustomPaletteColorFuncT)
- noPaintCustomPaletteColorFuncT :: Maybe PaintCustomPaletteColorFuncT
- noPaintCustomPaletteColorFuncT_WithClosures :: Maybe PaintCustomPaletteColorFuncT_WithClosures
- wrap_PaintCustomPaletteColorFuncT :: Maybe (Ptr (FunPtr C_PaintCustomPaletteColorFuncT)) -> PaintCustomPaletteColorFuncT_WithClosures -> C_PaintCustomPaletteColorFuncT
- type C_PaintImageFuncT = Ptr PaintFuncsT -> Ptr () -> Ptr BlobT -> Word32 -> Word32 -> Word32 -> CFloat -> Ptr GlyphExtentsT -> Ptr () -> IO Int32
- type PaintImageFuncT = PaintFuncsT -> Ptr () -> BlobT -> Word32 -> Word32 -> Word32 -> Float -> Maybe GlyphExtentsT -> IO Int32
- type PaintImageFuncT_WithClosures = PaintFuncsT -> Ptr () -> BlobT -> Word32 -> Word32 -> Word32 -> Float -> Maybe GlyphExtentsT -> Ptr () -> IO Int32
- drop_closures_PaintImageFuncT :: PaintImageFuncT -> PaintImageFuncT_WithClosures
- dynamic_PaintImageFuncT :: (HasCallStack, MonadIO m) => FunPtr C_PaintImageFuncT -> PaintFuncsT -> Ptr () -> BlobT -> Word32 -> Word32 -> Word32 -> Float -> Maybe GlyphExtentsT -> Ptr () -> m Int32
- genClosure_PaintImageFuncT :: MonadIO m => PaintImageFuncT -> m (GClosure C_PaintImageFuncT)
- mk_PaintImageFuncT :: C_PaintImageFuncT -> IO (FunPtr C_PaintImageFuncT)
- noPaintImageFuncT :: Maybe PaintImageFuncT
- noPaintImageFuncT_WithClosures :: Maybe PaintImageFuncT_WithClosures
- wrap_PaintImageFuncT :: Maybe (Ptr (FunPtr C_PaintImageFuncT)) -> PaintImageFuncT_WithClosures -> C_PaintImageFuncT
- type C_PaintLinearGradientFuncT = Ptr PaintFuncsT -> Ptr () -> Ptr ColorLineT -> CFloat -> CFloat -> CFloat -> CFloat -> CFloat -> CFloat -> Ptr () -> IO ()
- type PaintLinearGradientFuncT = PaintFuncsT -> Ptr () -> ColorLineT -> Float -> Float -> Float -> Float -> Float -> Float -> IO ()
- type PaintLinearGradientFuncT_WithClosures = PaintFuncsT -> Ptr () -> ColorLineT -> Float -> Float -> Float -> Float -> Float -> Float -> Ptr () -> IO ()
- drop_closures_PaintLinearGradientFuncT :: PaintLinearGradientFuncT -> PaintLinearGradientFuncT_WithClosures
- dynamic_PaintLinearGradientFuncT :: (HasCallStack, MonadIO m) => FunPtr C_PaintLinearGradientFuncT -> PaintFuncsT -> Ptr () -> ColorLineT -> Float -> Float -> Float -> Float -> Float -> Float -> Ptr () -> m ()
- genClosure_PaintLinearGradientFuncT :: MonadIO m => PaintLinearGradientFuncT -> m (GClosure C_PaintLinearGradientFuncT)
- mk_PaintLinearGradientFuncT :: C_PaintLinearGradientFuncT -> IO (FunPtr C_PaintLinearGradientFuncT)
- noPaintLinearGradientFuncT :: Maybe PaintLinearGradientFuncT
- noPaintLinearGradientFuncT_WithClosures :: Maybe PaintLinearGradientFuncT_WithClosures
- wrap_PaintLinearGradientFuncT :: Maybe (Ptr (FunPtr C_PaintLinearGradientFuncT)) -> PaintLinearGradientFuncT_WithClosures -> C_PaintLinearGradientFuncT
- type C_PaintPopClipFuncT = Ptr PaintFuncsT -> Ptr () -> Ptr () -> IO ()
- type PaintPopClipFuncT = PaintFuncsT -> Ptr () -> IO ()
- type PaintPopClipFuncT_WithClosures = PaintFuncsT -> Ptr () -> Ptr () -> IO ()
- drop_closures_PaintPopClipFuncT :: PaintPopClipFuncT -> PaintPopClipFuncT_WithClosures
- dynamic_PaintPopClipFuncT :: (HasCallStack, MonadIO m) => FunPtr C_PaintPopClipFuncT -> PaintFuncsT -> Ptr () -> Ptr () -> m ()
- genClosure_PaintPopClipFuncT :: MonadIO m => PaintPopClipFuncT -> m (GClosure C_PaintPopClipFuncT)
- mk_PaintPopClipFuncT :: C_PaintPopClipFuncT -> IO (FunPtr C_PaintPopClipFuncT)
- noPaintPopClipFuncT :: Maybe PaintPopClipFuncT
- noPaintPopClipFuncT_WithClosures :: Maybe PaintPopClipFuncT_WithClosures
- wrap_PaintPopClipFuncT :: Maybe (Ptr (FunPtr C_PaintPopClipFuncT)) -> PaintPopClipFuncT_WithClosures -> C_PaintPopClipFuncT
- type C_PaintPopGroupFuncT = Ptr PaintFuncsT -> Ptr () -> CUInt -> Ptr () -> IO ()
- type PaintPopGroupFuncT = PaintFuncsT -> Ptr () -> PaintCompositeModeT -> IO ()
- type PaintPopGroupFuncT_WithClosures = PaintFuncsT -> Ptr () -> PaintCompositeModeT -> Ptr () -> IO ()
- drop_closures_PaintPopGroupFuncT :: PaintPopGroupFuncT -> PaintPopGroupFuncT_WithClosures
- dynamic_PaintPopGroupFuncT :: (HasCallStack, MonadIO m) => FunPtr C_PaintPopGroupFuncT -> PaintFuncsT -> Ptr () -> PaintCompositeModeT -> Ptr () -> m ()
- genClosure_PaintPopGroupFuncT :: MonadIO m => PaintPopGroupFuncT -> m (GClosure C_PaintPopGroupFuncT)
- mk_PaintPopGroupFuncT :: C_PaintPopGroupFuncT -> IO (FunPtr C_PaintPopGroupFuncT)
- noPaintPopGroupFuncT :: Maybe PaintPopGroupFuncT
- noPaintPopGroupFuncT_WithClosures :: Maybe PaintPopGroupFuncT_WithClosures
- wrap_PaintPopGroupFuncT :: Maybe (Ptr (FunPtr C_PaintPopGroupFuncT)) -> PaintPopGroupFuncT_WithClosures -> C_PaintPopGroupFuncT
- type C_PaintPopTransformFuncT = Ptr PaintFuncsT -> Ptr () -> Ptr () -> IO ()
- type PaintPopTransformFuncT = PaintFuncsT -> Ptr () -> IO ()
- type PaintPopTransformFuncT_WithClosures = PaintFuncsT -> Ptr () -> Ptr () -> IO ()
- drop_closures_PaintPopTransformFuncT :: PaintPopTransformFuncT -> PaintPopTransformFuncT_WithClosures
- dynamic_PaintPopTransformFuncT :: (HasCallStack, MonadIO m) => FunPtr C_PaintPopTransformFuncT -> PaintFuncsT -> Ptr () -> Ptr () -> m ()
- genClosure_PaintPopTransformFuncT :: MonadIO m => PaintPopTransformFuncT -> m (GClosure C_PaintPopTransformFuncT)
- mk_PaintPopTransformFuncT :: C_PaintPopTransformFuncT -> IO (FunPtr C_PaintPopTransformFuncT)
- noPaintPopTransformFuncT :: Maybe PaintPopTransformFuncT
- noPaintPopTransformFuncT_WithClosures :: Maybe PaintPopTransformFuncT_WithClosures
- wrap_PaintPopTransformFuncT :: Maybe (Ptr (FunPtr C_PaintPopTransformFuncT)) -> PaintPopTransformFuncT_WithClosures -> C_PaintPopTransformFuncT
- type C_PaintPushClipGlyphFuncT = Ptr PaintFuncsT -> Ptr () -> Word32 -> Ptr FontT -> Ptr () -> IO ()
- type PaintPushClipGlyphFuncT = PaintFuncsT -> Ptr () -> Word32 -> FontT -> IO ()
- type PaintPushClipGlyphFuncT_WithClosures = PaintFuncsT -> Ptr () -> Word32 -> FontT -> Ptr () -> IO ()
- drop_closures_PaintPushClipGlyphFuncT :: PaintPushClipGlyphFuncT -> PaintPushClipGlyphFuncT_WithClosures
- dynamic_PaintPushClipGlyphFuncT :: (HasCallStack, MonadIO m) => FunPtr C_PaintPushClipGlyphFuncT -> PaintFuncsT -> Ptr () -> Word32 -> FontT -> Ptr () -> m ()
- genClosure_PaintPushClipGlyphFuncT :: MonadIO m => PaintPushClipGlyphFuncT -> m (GClosure C_PaintPushClipGlyphFuncT)
- mk_PaintPushClipGlyphFuncT :: C_PaintPushClipGlyphFuncT -> IO (FunPtr C_PaintPushClipGlyphFuncT)
- noPaintPushClipGlyphFuncT :: Maybe PaintPushClipGlyphFuncT
- noPaintPushClipGlyphFuncT_WithClosures :: Maybe PaintPushClipGlyphFuncT_WithClosures
- wrap_PaintPushClipGlyphFuncT :: Maybe (Ptr (FunPtr C_PaintPushClipGlyphFuncT)) -> PaintPushClipGlyphFuncT_WithClosures -> C_PaintPushClipGlyphFuncT
- type C_PaintPushClipRectangleFuncT = Ptr PaintFuncsT -> Ptr () -> CFloat -> CFloat -> CFloat -> CFloat -> Ptr () -> IO ()
- type PaintPushClipRectangleFuncT = PaintFuncsT -> Ptr () -> Float -> Float -> Float -> Float -> IO ()
- type PaintPushClipRectangleFuncT_WithClosures = PaintFuncsT -> Ptr () -> Float -> Float -> Float -> Float -> Ptr () -> IO ()
- drop_closures_PaintPushClipRectangleFuncT :: PaintPushClipRectangleFuncT -> PaintPushClipRectangleFuncT_WithClosures
- dynamic_PaintPushClipRectangleFuncT :: (HasCallStack, MonadIO m) => FunPtr C_PaintPushClipRectangleFuncT -> PaintFuncsT -> Ptr () -> Float -> Float -> Float -> Float -> Ptr () -> m ()
- genClosure_PaintPushClipRectangleFuncT :: MonadIO m => PaintPushClipRectangleFuncT -> m (GClosure C_PaintPushClipRectangleFuncT)
- mk_PaintPushClipRectangleFuncT :: C_PaintPushClipRectangleFuncT -> IO (FunPtr C_PaintPushClipRectangleFuncT)
- noPaintPushClipRectangleFuncT :: Maybe PaintPushClipRectangleFuncT
- noPaintPushClipRectangleFuncT_WithClosures :: Maybe PaintPushClipRectangleFuncT_WithClosures
- wrap_PaintPushClipRectangleFuncT :: Maybe (Ptr (FunPtr C_PaintPushClipRectangleFuncT)) -> PaintPushClipRectangleFuncT_WithClosures -> C_PaintPushClipRectangleFuncT
- type C_PaintPushGroupFuncT = Ptr PaintFuncsT -> Ptr () -> Ptr () -> IO ()
- type PaintPushGroupFuncT = PaintFuncsT -> Ptr () -> IO ()
- type PaintPushGroupFuncT_WithClosures = PaintFuncsT -> Ptr () -> Ptr () -> IO ()
- drop_closures_PaintPushGroupFuncT :: PaintPushGroupFuncT -> PaintPushGroupFuncT_WithClosures
- dynamic_PaintPushGroupFuncT :: (HasCallStack, MonadIO m) => FunPtr C_PaintPushGroupFuncT -> PaintFuncsT -> Ptr () -> Ptr () -> m ()
- genClosure_PaintPushGroupFuncT :: MonadIO m => PaintPushGroupFuncT -> m (GClosure C_PaintPushGroupFuncT)
- mk_PaintPushGroupFuncT :: C_PaintPushGroupFuncT -> IO (FunPtr C_PaintPushGroupFuncT)
- noPaintPushGroupFuncT :: Maybe PaintPushGroupFuncT
- noPaintPushGroupFuncT_WithClosures :: Maybe PaintPushGroupFuncT_WithClosures
- wrap_PaintPushGroupFuncT :: Maybe (Ptr (FunPtr C_PaintPushGroupFuncT)) -> PaintPushGroupFuncT_WithClosures -> C_PaintPushGroupFuncT
- type C_PaintPushTransformFuncT = Ptr PaintFuncsT -> Ptr () -> CFloat -> CFloat -> CFloat -> CFloat -> CFloat -> CFloat -> Ptr () -> IO ()
- type PaintPushTransformFuncT = PaintFuncsT -> Ptr () -> Float -> Float -> Float -> Float -> Float -> Float -> IO ()
- type PaintPushTransformFuncT_WithClosures = PaintFuncsT -> Ptr () -> Float -> Float -> Float -> Float -> Float -> Float -> Ptr () -> IO ()
- drop_closures_PaintPushTransformFuncT :: PaintPushTransformFuncT -> PaintPushTransformFuncT_WithClosures
- dynamic_PaintPushTransformFuncT :: (HasCallStack, MonadIO m) => FunPtr C_PaintPushTransformFuncT -> PaintFuncsT -> Ptr () -> Float -> Float -> Float -> Float -> Float -> Float -> Ptr () -> m ()
- genClosure_PaintPushTransformFuncT :: MonadIO m => PaintPushTransformFuncT -> m (GClosure C_PaintPushTransformFuncT)
- mk_PaintPushTransformFuncT :: C_PaintPushTransformFuncT -> IO (FunPtr C_PaintPushTransformFuncT)
- noPaintPushTransformFuncT :: Maybe PaintPushTransformFuncT
- noPaintPushTransformFuncT_WithClosures :: Maybe PaintPushTransformFuncT_WithClosures
- wrap_PaintPushTransformFuncT :: Maybe (Ptr (FunPtr C_PaintPushTransformFuncT)) -> PaintPushTransformFuncT_WithClosures -> C_PaintPushTransformFuncT
- type C_PaintRadialGradientFuncT = Ptr PaintFuncsT -> Ptr () -> Ptr ColorLineT -> CFloat -> CFloat -> CFloat -> CFloat -> CFloat -> CFloat -> Ptr () -> IO ()
- type PaintRadialGradientFuncT = PaintFuncsT -> Ptr () -> ColorLineT -> Float -> Float -> Float -> Float -> Float -> Float -> IO ()
- type PaintRadialGradientFuncT_WithClosures = PaintFuncsT -> Ptr () -> ColorLineT -> Float -> Float -> Float -> Float -> Float -> Float -> Ptr () -> IO ()
- drop_closures_PaintRadialGradientFuncT :: PaintRadialGradientFuncT -> PaintRadialGradientFuncT_WithClosures
- dynamic_PaintRadialGradientFuncT :: (HasCallStack, MonadIO m) => FunPtr C_PaintRadialGradientFuncT -> PaintFuncsT -> Ptr () -> ColorLineT -> Float -> Float -> Float -> Float -> Float -> Float -> Ptr () -> m ()
- genClosure_PaintRadialGradientFuncT :: MonadIO m => PaintRadialGradientFuncT -> m (GClosure C_PaintRadialGradientFuncT)
- mk_PaintRadialGradientFuncT :: C_PaintRadialGradientFuncT -> IO (FunPtr C_PaintRadialGradientFuncT)
- noPaintRadialGradientFuncT :: Maybe PaintRadialGradientFuncT
- noPaintRadialGradientFuncT_WithClosures :: Maybe PaintRadialGradientFuncT_WithClosures
- wrap_PaintRadialGradientFuncT :: Maybe (Ptr (FunPtr C_PaintRadialGradientFuncT)) -> PaintRadialGradientFuncT_WithClosures -> C_PaintRadialGradientFuncT
- type C_PaintSweepGradientFuncT = Ptr PaintFuncsT -> Ptr () -> Ptr ColorLineT -> CFloat -> CFloat -> CFloat -> CFloat -> Ptr () -> IO ()
- type PaintSweepGradientFuncT = PaintFuncsT -> Ptr () -> ColorLineT -> Float -> Float -> Float -> Float -> IO ()
- type PaintSweepGradientFuncT_WithClosures = PaintFuncsT -> Ptr () -> ColorLineT -> Float -> Float -> Float -> Float -> Ptr () -> IO ()
- drop_closures_PaintSweepGradientFuncT :: PaintSweepGradientFuncT -> PaintSweepGradientFuncT_WithClosures
- dynamic_PaintSweepGradientFuncT :: (HasCallStack, MonadIO m) => FunPtr C_PaintSweepGradientFuncT -> PaintFuncsT -> Ptr () -> ColorLineT -> Float -> Float -> Float -> Float -> Ptr () -> m ()
- genClosure_PaintSweepGradientFuncT :: MonadIO m => PaintSweepGradientFuncT -> m (GClosure C_PaintSweepGradientFuncT)
- mk_PaintSweepGradientFuncT :: C_PaintSweepGradientFuncT -> IO (FunPtr C_PaintSweepGradientFuncT)
- noPaintSweepGradientFuncT :: Maybe PaintSweepGradientFuncT
- noPaintSweepGradientFuncT_WithClosures :: Maybe PaintSweepGradientFuncT_WithClosures
- wrap_PaintSweepGradientFuncT :: Maybe (Ptr (FunPtr C_PaintSweepGradientFuncT)) -> PaintSweepGradientFuncT_WithClosures -> C_PaintSweepGradientFuncT
- type C_ReferenceTableFuncT = Ptr FaceT -> Word32 -> Ptr () -> IO (Ptr BlobT)
- type ReferenceTableFuncT = FaceT -> Word32 -> IO BlobT
- type ReferenceTableFuncT_WithClosures = FaceT -> Word32 -> Ptr () -> IO BlobT
- drop_closures_ReferenceTableFuncT :: ReferenceTableFuncT -> ReferenceTableFuncT_WithClosures
- dynamic_ReferenceTableFuncT :: (HasCallStack, MonadIO m) => FunPtr C_ReferenceTableFuncT -> FaceT -> Word32 -> Ptr () -> m BlobT
- genClosure_ReferenceTableFuncT :: MonadIO m => ReferenceTableFuncT -> m (GClosure C_ReferenceTableFuncT)
- mk_ReferenceTableFuncT :: C_ReferenceTableFuncT -> IO (FunPtr C_ReferenceTableFuncT)
- noReferenceTableFuncT :: Maybe ReferenceTableFuncT
- noReferenceTableFuncT_WithClosures :: Maybe ReferenceTableFuncT_WithClosures
- wrap_ReferenceTableFuncT :: Maybe (Ptr (FunPtr C_ReferenceTableFuncT)) -> ReferenceTableFuncT_WithClosures -> C_ReferenceTableFuncT
- type C_UnicodeCombiningClassFuncT = Ptr UnicodeFuncsT -> Word32 -> Ptr () -> IO CUInt
- type UnicodeCombiningClassFuncT = UnicodeFuncsT -> Word32 -> IO UnicodeCombiningClassT
- type UnicodeCombiningClassFuncT_WithClosures = UnicodeFuncsT -> Word32 -> Ptr () -> IO UnicodeCombiningClassT
- drop_closures_UnicodeCombiningClassFuncT :: UnicodeCombiningClassFuncT -> UnicodeCombiningClassFuncT_WithClosures
- dynamic_UnicodeCombiningClassFuncT :: (HasCallStack, MonadIO m) => FunPtr C_UnicodeCombiningClassFuncT -> UnicodeFuncsT -> Word32 -> Ptr () -> m UnicodeCombiningClassT
- genClosure_UnicodeCombiningClassFuncT :: MonadIO m => UnicodeCombiningClassFuncT -> m (GClosure C_UnicodeCombiningClassFuncT)
- mk_UnicodeCombiningClassFuncT :: C_UnicodeCombiningClassFuncT -> IO (FunPtr C_UnicodeCombiningClassFuncT)
- noUnicodeCombiningClassFuncT :: Maybe UnicodeCombiningClassFuncT
- noUnicodeCombiningClassFuncT_WithClosures :: Maybe UnicodeCombiningClassFuncT_WithClosures
- wrap_UnicodeCombiningClassFuncT :: Maybe (Ptr (FunPtr C_UnicodeCombiningClassFuncT)) -> UnicodeCombiningClassFuncT_WithClosures -> C_UnicodeCombiningClassFuncT
- type C_UnicodeComposeFuncT = Ptr UnicodeFuncsT -> Word32 -> Word32 -> Ptr Word32 -> Ptr () -> IO Int32
- type UnicodeComposeFuncT = UnicodeFuncsT -> Word32 -> Word32 -> IO (Int32, Word32)
- type UnicodeComposeFuncT_WithClosures = UnicodeFuncsT -> Word32 -> Word32 -> Ptr () -> IO (Int32, Word32)
- drop_closures_UnicodeComposeFuncT :: UnicodeComposeFuncT -> UnicodeComposeFuncT_WithClosures
- dynamic_UnicodeComposeFuncT :: (HasCallStack, MonadIO m) => FunPtr C_UnicodeComposeFuncT -> UnicodeFuncsT -> Word32 -> Word32 -> Ptr () -> m (Int32, Word32)
- genClosure_UnicodeComposeFuncT :: MonadIO m => UnicodeComposeFuncT -> m (GClosure C_UnicodeComposeFuncT)
- mk_UnicodeComposeFuncT :: C_UnicodeComposeFuncT -> IO (FunPtr C_UnicodeComposeFuncT)
- noUnicodeComposeFuncT :: Maybe UnicodeComposeFuncT
- noUnicodeComposeFuncT_WithClosures :: Maybe UnicodeComposeFuncT_WithClosures
- wrap_UnicodeComposeFuncT :: Maybe (Ptr (FunPtr C_UnicodeComposeFuncT)) -> UnicodeComposeFuncT_WithClosures -> C_UnicodeComposeFuncT
- type C_UnicodeDecomposeCompatibilityFuncT = Ptr UnicodeFuncsT -> Word32 -> Word32 -> Ptr () -> IO Word32
- type UnicodeDecomposeCompatibilityFuncT = UnicodeFuncsT -> Word32 -> Word32 -> IO Word32
- type UnicodeDecomposeCompatibilityFuncT_WithClosures = UnicodeFuncsT -> Word32 -> Word32 -> Ptr () -> IO Word32
- drop_closures_UnicodeDecomposeCompatibilityFuncT :: UnicodeDecomposeCompatibilityFuncT -> UnicodeDecomposeCompatibilityFuncT_WithClosures
- dynamic_UnicodeDecomposeCompatibilityFuncT :: (HasCallStack, MonadIO m) => FunPtr C_UnicodeDecomposeCompatibilityFuncT -> UnicodeFuncsT -> Word32 -> Word32 -> Ptr () -> m Word32
- genClosure_UnicodeDecomposeCompatibilityFuncT :: MonadIO m => UnicodeDecomposeCompatibilityFuncT -> m (GClosure C_UnicodeDecomposeCompatibilityFuncT)
- mk_UnicodeDecomposeCompatibilityFuncT :: C_UnicodeDecomposeCompatibilityFuncT -> IO (FunPtr C_UnicodeDecomposeCompatibilityFuncT)
- noUnicodeDecomposeCompatibilityFuncT :: Maybe UnicodeDecomposeCompatibilityFuncT
- noUnicodeDecomposeCompatibilityFuncT_WithClosures :: Maybe UnicodeDecomposeCompatibilityFuncT_WithClosures
- wrap_UnicodeDecomposeCompatibilityFuncT :: Maybe (Ptr (FunPtr C_UnicodeDecomposeCompatibilityFuncT)) -> UnicodeDecomposeCompatibilityFuncT_WithClosures -> C_UnicodeDecomposeCompatibilityFuncT
- type C_UnicodeDecomposeFuncT = Ptr UnicodeFuncsT -> Word32 -> Ptr Word32 -> Ptr Word32 -> Ptr () -> IO Int32
- type UnicodeDecomposeFuncT = UnicodeFuncsT -> Word32 -> IO (Int32, Word32, Word32)
- type UnicodeDecomposeFuncT_WithClosures = UnicodeFuncsT -> Word32 -> Ptr () -> IO (Int32, Word32, Word32)
- drop_closures_UnicodeDecomposeFuncT :: UnicodeDecomposeFuncT -> UnicodeDecomposeFuncT_WithClosures
- dynamic_UnicodeDecomposeFuncT :: (HasCallStack, MonadIO m) => FunPtr C_UnicodeDecomposeFuncT -> UnicodeFuncsT -> Word32 -> Ptr () -> m (Int32, Word32, Word32)
- genClosure_UnicodeDecomposeFuncT :: MonadIO m => UnicodeDecomposeFuncT -> m (GClosure C_UnicodeDecomposeFuncT)
- mk_UnicodeDecomposeFuncT :: C_UnicodeDecomposeFuncT -> IO (FunPtr C_UnicodeDecomposeFuncT)
- noUnicodeDecomposeFuncT :: Maybe UnicodeDecomposeFuncT
- noUnicodeDecomposeFuncT_WithClosures :: Maybe UnicodeDecomposeFuncT_WithClosures
- wrap_UnicodeDecomposeFuncT :: Maybe (Ptr (FunPtr C_UnicodeDecomposeFuncT)) -> UnicodeDecomposeFuncT_WithClosures -> C_UnicodeDecomposeFuncT
- type C_UnicodeEastasianWidthFuncT = Ptr UnicodeFuncsT -> Word32 -> Ptr () -> IO Word32
- type UnicodeEastasianWidthFuncT = UnicodeFuncsT -> Word32 -> IO Word32
- type UnicodeEastasianWidthFuncT_WithClosures = UnicodeFuncsT -> Word32 -> Ptr () -> IO Word32
- drop_closures_UnicodeEastasianWidthFuncT :: UnicodeEastasianWidthFuncT -> UnicodeEastasianWidthFuncT_WithClosures
- dynamic_UnicodeEastasianWidthFuncT :: (HasCallStack, MonadIO m) => FunPtr C_UnicodeEastasianWidthFuncT -> UnicodeFuncsT -> Word32 -> Ptr () -> m Word32
- genClosure_UnicodeEastasianWidthFuncT :: MonadIO m => UnicodeEastasianWidthFuncT -> m (GClosure C_UnicodeEastasianWidthFuncT)
- mk_UnicodeEastasianWidthFuncT :: C_UnicodeEastasianWidthFuncT -> IO (FunPtr C_UnicodeEastasianWidthFuncT)
- noUnicodeEastasianWidthFuncT :: Maybe UnicodeEastasianWidthFuncT
- noUnicodeEastasianWidthFuncT_WithClosures :: Maybe UnicodeEastasianWidthFuncT_WithClosures
- wrap_UnicodeEastasianWidthFuncT :: Maybe (Ptr (FunPtr C_UnicodeEastasianWidthFuncT)) -> UnicodeEastasianWidthFuncT_WithClosures -> C_UnicodeEastasianWidthFuncT
- type C_UnicodeGeneralCategoryFuncT = Ptr UnicodeFuncsT -> Word32 -> Ptr () -> IO CUInt
- type UnicodeGeneralCategoryFuncT = UnicodeFuncsT -> Word32 -> IO UnicodeGeneralCategoryT
- type UnicodeGeneralCategoryFuncT_WithClosures = UnicodeFuncsT -> Word32 -> Ptr () -> IO UnicodeGeneralCategoryT
- drop_closures_UnicodeGeneralCategoryFuncT :: UnicodeGeneralCategoryFuncT -> UnicodeGeneralCategoryFuncT_WithClosures
- dynamic_UnicodeGeneralCategoryFuncT :: (HasCallStack, MonadIO m) => FunPtr C_UnicodeGeneralCategoryFuncT -> UnicodeFuncsT -> Word32 -> Ptr () -> m UnicodeGeneralCategoryT
- genClosure_UnicodeGeneralCategoryFuncT :: MonadIO m => UnicodeGeneralCategoryFuncT -> m (GClosure C_UnicodeGeneralCategoryFuncT)
- mk_UnicodeGeneralCategoryFuncT :: C_UnicodeGeneralCategoryFuncT -> IO (FunPtr C_UnicodeGeneralCategoryFuncT)
- noUnicodeGeneralCategoryFuncT :: Maybe UnicodeGeneralCategoryFuncT
- noUnicodeGeneralCategoryFuncT_WithClosures :: Maybe UnicodeGeneralCategoryFuncT_WithClosures
- wrap_UnicodeGeneralCategoryFuncT :: Maybe (Ptr (FunPtr C_UnicodeGeneralCategoryFuncT)) -> UnicodeGeneralCategoryFuncT_WithClosures -> C_UnicodeGeneralCategoryFuncT
- type C_UnicodeMirroringFuncT = Ptr UnicodeFuncsT -> Word32 -> Ptr () -> IO Word32
- type UnicodeMirroringFuncT = UnicodeFuncsT -> Word32 -> IO Word32
- type UnicodeMirroringFuncT_WithClosures = UnicodeFuncsT -> Word32 -> Ptr () -> IO Word32
- drop_closures_UnicodeMirroringFuncT :: UnicodeMirroringFuncT -> UnicodeMirroringFuncT_WithClosures
- dynamic_UnicodeMirroringFuncT :: (HasCallStack, MonadIO m) => FunPtr C_UnicodeMirroringFuncT -> UnicodeFuncsT -> Word32 -> Ptr () -> m Word32
- genClosure_UnicodeMirroringFuncT :: MonadIO m => UnicodeMirroringFuncT -> m (GClosure C_UnicodeMirroringFuncT)
- mk_UnicodeMirroringFuncT :: C_UnicodeMirroringFuncT -> IO (FunPtr C_UnicodeMirroringFuncT)
- noUnicodeMirroringFuncT :: Maybe UnicodeMirroringFuncT
- noUnicodeMirroringFuncT_WithClosures :: Maybe UnicodeMirroringFuncT_WithClosures
- wrap_UnicodeMirroringFuncT :: Maybe (Ptr (FunPtr C_UnicodeMirroringFuncT)) -> UnicodeMirroringFuncT_WithClosures -> C_UnicodeMirroringFuncT
- type C_UnicodeScriptFuncT = Ptr UnicodeFuncsT -> Word32 -> Ptr () -> IO CUInt
- type UnicodeScriptFuncT = UnicodeFuncsT -> Word32 -> IO ScriptT
- type UnicodeScriptFuncT_WithClosures = UnicodeFuncsT -> Word32 -> Ptr () -> IO ScriptT
- drop_closures_UnicodeScriptFuncT :: UnicodeScriptFuncT -> UnicodeScriptFuncT_WithClosures
- dynamic_UnicodeScriptFuncT :: (HasCallStack, MonadIO m) => FunPtr C_UnicodeScriptFuncT -> UnicodeFuncsT -> Word32 -> Ptr () -> m ScriptT
- genClosure_UnicodeScriptFuncT :: MonadIO m => UnicodeScriptFuncT -> m (GClosure C_UnicodeScriptFuncT)
- mk_UnicodeScriptFuncT :: C_UnicodeScriptFuncT -> IO (FunPtr C_UnicodeScriptFuncT)
- noUnicodeScriptFuncT :: Maybe UnicodeScriptFuncT
- noUnicodeScriptFuncT_WithClosures :: Maybe UnicodeScriptFuncT_WithClosures
- wrap_UnicodeScriptFuncT :: Maybe (Ptr (FunPtr C_UnicodeScriptFuncT)) -> UnicodeScriptFuncT_WithClosures -> C_UnicodeScriptFuncT

# Signals

## BufferMessageFuncT

type BufferMessageFuncT Source #

Arguments

= BufferT | `buffer`: An `BufferT` to work upon
-> FontT | `font`: The `FontT` the `buffer` is shaped with
-> Text | `message`: `NULL`-terminated message passed to the function
-> IO Int32 | Returns: `true` to perform the shaping step, `false` to skip it.

A callback method for `BufferT`. The method gets called with the `BufferT` it was set on, the `FontT` the buffer is shaped with and a message describing what step of the shaping process will be performed. Returning `false` from this method will skip this shaping step and move to the next one.

Since: 1.1.3

type BufferMessageFuncT_WithClosures Source #

Arguments

= BufferT | `buffer`: An `BufferT` to work upon
-> FontT | `font`: The `FontT` the `buffer` is shaped with
-> Text | `message`: `NULL`-terminated message passed to the function
-> Ptr () | `userData`: User data pointer passed by the caller
-> IO Int32 | Returns: `true` to perform the shaping step, `false` to skip it.

A callback method for `BufferT`. The method gets called with the `BufferT` it was set on, the `FontT` the buffer is shaped with and a message describing what step of the shaping process will be performed. Returning `false` from this method will skip this shaping step and move to the next one.

Since: 1.1.3

type C_BufferMessageFuncT = Ptr BufferT -> Ptr FontT -> CString -> Ptr () -> IO Int32 Source #

Type for the callback on the (unwrapped) C side.

drop_closures_BufferMessageFuncT :: BufferMessageFuncT -> BufferMessageFuncT_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_BufferMessageFuncT Source #

Arguments

:: (HasCallStack, MonadIO m) |
=> FunPtr C_BufferMessageFuncT |
-> BufferT | `buffer`: An `BufferT` to work upon
-> FontT | `font`: The `FontT` the `buffer` is shaped with
-> Text | `message`: `NULL`-terminated message passed to the function
-> Ptr () | `userData`: User data pointer passed by the caller
-> m Int32 | Returns: `true` to perform the shaping step, `false` to skip it.

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

genClosure_BufferMessageFuncT :: MonadIO m => BufferMessageFuncT -> m (GClosure C_BufferMessageFuncT) Source #

Wrap the callback into a `GClosure`.

mk_BufferMessageFuncT :: C_BufferMessageFuncT -> IO (FunPtr C_BufferMessageFuncT) Source #

Generate a function pointer callable from C code, from a `C_BufferMessageFuncT`.

noBufferMessageFuncT :: Maybe BufferMessageFuncT Source #

A convenience synonym for ``Nothing` :: `Maybe` `BufferMessageFuncT``.

noBufferMessageFuncT_WithClosures :: Maybe BufferMessageFuncT_WithClosures Source #

A convenience synonym for ``Nothing` :: `Maybe` `BufferMessageFuncT_WithClosures``.

wrap_BufferMessageFuncT :: Maybe (Ptr (FunPtr C_BufferMessageFuncT)) -> BufferMessageFuncT_WithClosures -> C_BufferMessageFuncT Source #

Wrap a `BufferMessageFuncT` into a `C_BufferMessageFuncT`.

## ColorLineGetColorStopsFuncT

type C_ColorLineGetColorStopsFuncT = Ptr ColorLineT -> Ptr () -> Word32 -> Word32 -> Ptr ColorStopT -> Ptr () -> IO Word32 Source #

Type for the callback on the (unwrapped) C side.

type ColorLineGetColorStopsFuncT Source #

Arguments

= ColorLineT | `colorLine`: a `ColorLineT` object
-> Ptr () | `colorLineData`: the data accompanying `colorLine`
-> Word32 | `start`: the index of the first color stop to return
-> [ColorStopT] | `colorStops`: Array of `ColorStopT` to populate
-> IO (Word32, [ColorStopT]) | Returns: the total number of color stops in `colorLine`

A virtual method for the `ColorLineT` to fetch color stops.

Since: 7.0.0

type ColorLineGetColorStopsFuncT_WithClosures Source #

Arguments

= ColorLineT | `colorLine`: a `ColorLineT` object
-> Ptr () | `colorLineData`: the data accompanying `colorLine`
-> Word32 | `start`: the index of the first color stop to return
-> [ColorStopT] | `colorStops`: Array of `ColorStopT` to populate
-> Ptr () | `userData`: the data accompanying this method
-> IO (Word32, [ColorStopT]) | Returns: the total number of color stops in `colorLine`

A virtual method for the `ColorLineT` to fetch color stops.

Since: 7.0.0

drop_closures_ColorLineGetColorStopsFuncT :: ColorLineGetColorStopsFuncT -> ColorLineGetColorStopsFuncT_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_ColorLineGetColorStopsFuncT Source #

Arguments

:: (HasCallStack, MonadIO m) |
=> FunPtr C_ColorLineGetColorStopsFuncT |
-> ColorLineT | `colorLine`: a `ColorLineT` object
-> Ptr () | `colorLineData`: the data accompanying `colorLine`
-> Word32 | `start`: the index of the first color stop to return
-> [ColorStopT] | `colorStops`: Array of `ColorStopT` to populate
-> Ptr () | `userData`: the data accompanying this method
-> m (Word32, [ColorStopT]) | Returns: the total number of color stops in `colorLine`

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

genClosure_ColorLineGetColorStopsFuncT :: MonadIO m => ColorLineGetColorStopsFuncT -> m (GClosure C_ColorLineGetColorStopsFuncT) Source #

Wrap the callback into a `GClosure`.

mk_ColorLineGetColorStopsFuncT :: C_ColorLineGetColorStopsFuncT -> IO (FunPtr C_ColorLineGetColorStopsFuncT) Source #

Generate a function pointer callable from C code, from a `C_ColorLineGetColorStopsFuncT`.

noColorLineGetColorStopsFuncT :: Maybe ColorLineGetColorStopsFuncT Source #

A convenience synonym for ``Nothing` :: `Maybe` `ColorLineGetColorStopsFuncT``.

noColorLineGetColorStopsFuncT_WithClosures :: Maybe ColorLineGetColorStopsFuncT_WithClosures Source #

A convenience synonym for ``Nothing` :: `Maybe` `ColorLineGetColorStopsFuncT_WithClosures``.

wrap_ColorLineGetColorStopsFuncT :: Maybe (Ptr (FunPtr C_ColorLineGetColorStopsFuncT)) -> ColorLineGetColorStopsFuncT_WithClosures -> C_ColorLineGetColorStopsFuncT Source #

Wrap a `ColorLineGetColorStopsFuncT` into a `C_ColorLineGetColorStopsFuncT`.

## ColorLineGetExtendFuncT

type C_ColorLineGetExtendFuncT = Ptr ColorLineT -> Ptr () -> Ptr () -> IO CUInt Source #

Type for the callback on the (unwrapped) C side.

type ColorLineGetExtendFuncT Source #

Arguments

= ColorLineT | `colorLine`: a `ColorLineT` object
-> Ptr () | `colorLineData`: the data accompanying `colorLine`
-> IO PaintExtendT | Returns: the extend mode of `colorLine`

A virtual method for the `hbColorLineT` to fetches the extend mode.

Since: 7.0.0

type ColorLineGetExtendFuncT_WithClosures Source #

Arguments

= ColorLineT | `colorLine`: a `ColorLineT` object
-> Ptr () | `colorLineData`: the data accompanying `colorLine`
-> Ptr () | `userData`: the data accompanying this method
-> IO PaintExtendT | Returns: the extend mode of `colorLine`

A virtual method for the `hbColorLineT` to fetches the extend mode.

Since: 7.0.0

drop_closures_ColorLineGetExtendFuncT :: ColorLineGetExtendFuncT -> ColorLineGetExtendFuncT_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_ColorLineGetExtendFuncT Source #

Arguments

:: (HasCallStack, MonadIO m) |
=> FunPtr C_ColorLineGetExtendFuncT |
-> ColorLineT | `colorLine`: a `ColorLineT` object
-> Ptr () | `colorLineData`: the data accompanying `colorLine`
-> Ptr () | `userData`: the data accompanying this method
-> m PaintExtendT | Returns: the extend mode of `colorLine`

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

genClosure_ColorLineGetExtendFuncT :: MonadIO m => ColorLineGetExtendFuncT -> m (GClosure C_ColorLineGetExtendFuncT) Source #

Wrap the callback into a `GClosure`.

mk_ColorLineGetExtendFuncT :: C_ColorLineGetExtendFuncT -> IO (FunPtr C_ColorLineGetExtendFuncT) Source #

Generate a function pointer callable from C code, from a `C_ColorLineGetExtendFuncT`.

noColorLineGetExtendFuncT :: Maybe ColorLineGetExtendFuncT Source #

A convenience synonym for ``Nothing` :: `Maybe` `ColorLineGetExtendFuncT``.

noColorLineGetExtendFuncT_WithClosures :: Maybe ColorLineGetExtendFuncT_WithClosures Source #

A convenience synonym for ``Nothing` :: `Maybe` `ColorLineGetExtendFuncT_WithClosures``.

wrap_ColorLineGetExtendFuncT :: Maybe (Ptr (FunPtr C_ColorLineGetExtendFuncT)) -> ColorLineGetExtendFuncT_WithClosures -> C_ColorLineGetExtendFuncT Source #

Wrap a `ColorLineGetExtendFuncT` into a `C_ColorLineGetExtendFuncT`.

## DestroyFuncT

type C_DestroyFuncT = Ptr () -> IO () Source #

Type for the callback on the (unwrapped) C side.

type DestroyFuncT = IO () Source #

A virtual method for destroy user-data callbacks.

type DestroyFuncT_WithClosures Source #

Arguments

= Ptr () | `userData`: the data to be destroyed
-> IO () |

A virtual method for destroy user-data callbacks.

drop_closures_DestroyFuncT :: DestroyFuncT -> DestroyFuncT_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_DestroyFuncT Source #

Arguments

:: (HasCallStack, MonadIO m) |
=> FunPtr C_DestroyFuncT |
-> Ptr () | `userData`: the data to be destroyed
-> m () |

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

genClosure_DestroyFuncT :: MonadIO m => DestroyFuncT -> m (GClosure C_DestroyFuncT) Source #

Wrap the callback into a `GClosure`.

mk_DestroyFuncT :: C_DestroyFuncT -> IO (FunPtr C_DestroyFuncT) Source #

Generate a function pointer callable from C code, from a `C_DestroyFuncT`.

noDestroyFuncT :: Maybe DestroyFuncT Source #

A convenience synonym for ``Nothing` :: `Maybe` `DestroyFuncT``.

noDestroyFuncT_WithClosures :: Maybe DestroyFuncT_WithClosures Source #

A convenience synonym for ``Nothing` :: `Maybe` `DestroyFuncT_WithClosures``.

wrap_DestroyFuncT :: Maybe (Ptr (FunPtr C_DestroyFuncT)) -> DestroyFuncT_WithClosures -> C_DestroyFuncT Source #

Wrap a `DestroyFuncT` into a `C_DestroyFuncT`.

## DrawClosePathFuncT

type C_DrawClosePathFuncT = Ptr DrawFuncsT -> Ptr () -> Ptr DrawStateT -> Ptr () -> IO () Source #

Type for the callback on the (unwrapped) C side.

type DrawClosePathFuncT Source #

Arguments

= DrawFuncsT | `dfuncs`: draw functions object
-> Ptr () | `drawData`: The data accompanying the draw functions in `fontDrawGlyph`
-> DrawStateT | `st`: current draw state
-> IO () |

A virtual method for the `DrawFuncsT` to perform a "close-path" draw operation.

Since: 4.0.0

type DrawClosePathFuncT_WithClosures Source #

Arguments

= DrawFuncsT | `dfuncs`: draw functions object
-> Ptr () | `drawData`: The data accompanying the draw functions in `fontDrawGlyph`
-> DrawStateT | `st`: current draw state
-> Ptr () | `userData`: User data pointer passed to `drawFuncsSetClosePathFunc`
-> IO () |

A virtual method for the `DrawFuncsT` to perform a "close-path" draw operation.

Since: 4.0.0

drop_closures_DrawClosePathFuncT :: DrawClosePathFuncT -> DrawClosePathFuncT_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_DrawClosePathFuncT Source #

Arguments

:: (HasCallStack, MonadIO m) |
=> FunPtr C_DrawClosePathFuncT |
-> DrawFuncsT | `dfuncs`: draw functions object
-> Ptr () | `drawData`: The data accompanying the draw functions in `fontDrawGlyph`
-> DrawStateT | `st`: current draw state
-> Ptr () | `userData`: User data pointer passed to `drawFuncsSetClosePathFunc`
-> m () |

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

genClosure_DrawClosePathFuncT :: MonadIO m => DrawClosePathFuncT -> m (GClosure C_DrawClosePathFuncT) Source #

Wrap the callback into a `GClosure`.

mk_DrawClosePathFuncT :: C_DrawClosePathFuncT -> IO (FunPtr C_DrawClosePathFuncT) Source #

Generate a function pointer callable from C code, from a `C_DrawClosePathFuncT`.

noDrawClosePathFuncT :: Maybe DrawClosePathFuncT Source #

A convenience synonym for ``Nothing` :: `Maybe` `DrawClosePathFuncT``.

noDrawClosePathFuncT_WithClosures :: Maybe DrawClosePathFuncT_WithClosures Source #

A convenience synonym for ``Nothing` :: `Maybe` `DrawClosePathFuncT_WithClosures``.

wrap_DrawClosePathFuncT :: Maybe (Ptr (FunPtr C_DrawClosePathFuncT)) -> DrawClosePathFuncT_WithClosures -> C_DrawClosePathFuncT Source #

Wrap a `DrawClosePathFuncT` into a `C_DrawClosePathFuncT`.

## DrawCubicToFuncT

type C_DrawCubicToFuncT = Ptr DrawFuncsT -> Ptr () -> Ptr DrawStateT -> CFloat -> CFloat -> CFloat -> CFloat -> CFloat -> CFloat -> Ptr () -> IO () Source #

Type for the callback on the (unwrapped) C side.

type DrawCubicToFuncT Source #

Arguments

= DrawFuncsT | `dfuncs`: draw functions object
-> Ptr () | `drawData`: The data accompanying the draw functions in `fontDrawGlyph`
-> DrawStateT | `st`: current draw state
-> Float | `control1X`: X component of first control point
-> Float | `control1Y`: Y component of first control point
-> Float | `control2X`: X component of second control point
-> Float | `control2Y`: Y component of second control point
-> Float | `toX`: X component of target point
-> Float | `toY`: Y component of target point
-> IO () |

A virtual method for the `DrawFuncsT` to perform a "cubic-to" draw operation.

Since: 4.0.0

type DrawCubicToFuncT_WithClosures Source #

Arguments

= DrawFuncsT | `dfuncs`: draw functions object
-> Ptr () | `drawData`: The data accompanying the draw functions in `fontDrawGlyph`
-> DrawStateT | `st`: current draw state
-> Float | `control1X`: X component of first control point
-> Float | `control1Y`: Y component of first control point
-> Float | `control2X`: X component of second control point
-> Float | `control2Y`: Y component of second control point
-> Float | `toX`: X component of target point
-> Float | `toY`: Y component of target point
-> Ptr () | `userData`: User data pointer passed to `drawFuncsSetCubicToFunc`
-> IO () |

A virtual method for the `DrawFuncsT` to perform a "cubic-to" draw operation.

Since: 4.0.0

drop_closures_DrawCubicToFuncT :: DrawCubicToFuncT -> DrawCubicToFuncT_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_DrawCubicToFuncT Source #

Arguments

:: (HasCallStack, MonadIO m) |
=> FunPtr C_DrawCubicToFuncT |
-> DrawFuncsT | `dfuncs`: draw functions object
-> Ptr () | `drawData`: The data accompanying the draw functions in `fontDrawGlyph`
-> DrawStateT | `st`: current draw state
-> Float | `control1X`: X component of first control point
-> Float | `control1Y`: Y component of first control point
-> Float | `control2X`: X component of second control point
-> Float | `control2Y`: Y component of second control point
-> Float | `toX`: X component of target point
-> Float | `toY`: Y component of target point
-> Ptr () | `userData`: User data pointer passed to `drawFuncsSetCubicToFunc`
-> m () |

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

genClosure_DrawCubicToFuncT :: MonadIO m => DrawCubicToFuncT -> m (GClosure C_DrawCubicToFuncT) Source #

Wrap the callback into a `GClosure`.

mk_DrawCubicToFuncT :: C_DrawCubicToFuncT -> IO (FunPtr C_DrawCubicToFuncT) Source #

Generate a function pointer callable from C code, from a `C_DrawCubicToFuncT`.

noDrawCubicToFuncT :: Maybe DrawCubicToFuncT Source #

A convenience synonym for ``Nothing` :: `Maybe` `DrawCubicToFuncT``.

noDrawCubicToFuncT_WithClosures :: Maybe DrawCubicToFuncT_WithClosures Source #

A convenience synonym for ``Nothing` :: `Maybe` `DrawCubicToFuncT_WithClosures``.

wrap_DrawCubicToFuncT :: Maybe (Ptr (FunPtr C_DrawCubicToFuncT)) -> DrawCubicToFuncT_WithClosures -> C_DrawCubicToFuncT Source #

Wrap a `DrawCubicToFuncT` into a `C_DrawCubicToFuncT`.

## DrawLineToFuncT

type C_DrawLineToFuncT = Ptr DrawFuncsT -> Ptr () -> Ptr DrawStateT -> CFloat -> CFloat -> Ptr () -> IO () Source #

Type for the callback on the (unwrapped) C side.

type DrawLineToFuncT Source #

Arguments

= DrawFuncsT | `dfuncs`: draw functions object
-> Ptr () | `drawData`: The data accompanying the draw functions in `fontDrawGlyph`
-> DrawStateT | `st`: current draw state
-> Float | `toX`: X component of target point
-> Float | `toY`: Y component of target point
-> IO () |

A virtual method for the `DrawFuncsT` to perform a "line-to" draw operation.

Since: 4.0.0

type DrawLineToFuncT_WithClosures Source #

Arguments

= DrawFuncsT | `dfuncs`: draw functions object
-> Ptr () | `drawData`: The data accompanying the draw functions in `fontDrawGlyph`
-> DrawStateT | `st`: current draw state
-> Float | `toX`: X component of target point
-> Float | `toY`: Y component of target point
-> Ptr () | `userData`: User data pointer passed to `drawFuncsSetLineToFunc`
-> IO () |

A virtual method for the `DrawFuncsT` to perform a "line-to" draw operation.

Since: 4.0.0

drop_closures_DrawLineToFuncT :: DrawLineToFuncT -> DrawLineToFuncT_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_DrawLineToFuncT Source #

Arguments

:: (HasCallStack, MonadIO m) |
=> FunPtr C_DrawLineToFuncT |
-> DrawFuncsT | `dfuncs`: draw functions object
-> Ptr () | `drawData`: The data accompanying the draw functions in `fontDrawGlyph`
-> DrawStateT | `st`: current draw state
-> Float | `toX`: X component of target point
-> Float | `toY`: Y component of target point
-> Ptr () | `userData`: User data pointer passed to `drawFuncsSetLineToFunc`
-> m () |

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

genClosure_DrawLineToFuncT :: MonadIO m => DrawLineToFuncT -> m (GClosure C_DrawLineToFuncT) Source #

Wrap the callback into a `GClosure`.

mk_DrawLineToFuncT :: C_DrawLineToFuncT -> IO (FunPtr C_DrawLineToFuncT) Source #

Generate a function pointer callable from C code, from a `C_DrawLineToFuncT`.

noDrawLineToFuncT :: Maybe DrawLineToFuncT Source #

A convenience synonym for ``Nothing` :: `Maybe` `DrawLineToFuncT``.

noDrawLineToFuncT_WithClosures :: Maybe DrawLineToFuncT_WithClosures Source #

A convenience synonym for ``Nothing` :: `Maybe` `DrawLineToFuncT_WithClosures``.

wrap_DrawLineToFuncT :: Maybe (Ptr (FunPtr C_DrawLineToFuncT)) -> DrawLineToFuncT_WithClosures -> C_DrawLineToFuncT Source #

Wrap a `DrawLineToFuncT` into a `C_DrawLineToFuncT`.

## DrawMoveToFuncT

type C_DrawMoveToFuncT = Ptr DrawFuncsT -> Ptr () -> Ptr DrawStateT -> CFloat -> CFloat -> Ptr () -> IO () Source #

Type for the callback on the (unwrapped) C side.

type DrawMoveToFuncT Source #

Arguments

= DrawFuncsT | `dfuncs`: draw functions object
-> Ptr () | `drawData`: The data accompanying the draw functions in `fontDrawGlyph`
-> DrawStateT | `st`: current draw state
-> Float | `toX`: X component of target point
-> Float | `toY`: Y component of target point
-> IO () |

A virtual method for the `DrawFuncsT` to perform a "move-to" draw operation.

Since: 4.0.0

type DrawMoveToFuncT_WithClosures Source #

Arguments

= DrawFuncsT | `dfuncs`: draw functions object
-> Ptr () | `drawData`: The data accompanying the draw functions in `fontDrawGlyph`
-> DrawStateT | `st`: current draw state
-> Float | `toX`: X component of target point
-> Float | `toY`: Y component of target point
-> Ptr () | `userData`: User data pointer passed to `drawFuncsSetMoveToFunc`
-> IO () |

A virtual method for the `DrawFuncsT` to perform a "move-to" draw operation.

Since: 4.0.0

drop_closures_DrawMoveToFuncT :: DrawMoveToFuncT -> DrawMoveToFuncT_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_DrawMoveToFuncT Source #

Arguments

:: (HasCallStack, MonadIO m) |
=> FunPtr C_DrawMoveToFuncT |
-> DrawFuncsT | `dfuncs`: draw functions object
-> Ptr () | `drawData`: The data accompanying the draw functions in `fontDrawGlyph`
-> DrawStateT | `st`: current draw state
-> Float | `toX`: X component of target point
-> Float | `toY`: Y component of target point
-> Ptr () | `userData`: User data pointer passed to `drawFuncsSetMoveToFunc`
-> m () |

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

genClosure_DrawMoveToFuncT :: MonadIO m => DrawMoveToFuncT -> m (GClosure C_DrawMoveToFuncT) Source #

Wrap the callback into a `GClosure`.

mk_DrawMoveToFuncT :: C_DrawMoveToFuncT -> IO (FunPtr C_DrawMoveToFuncT) Source #

Generate a function pointer callable from C code, from a `C_DrawMoveToFuncT`.

noDrawMoveToFuncT :: Maybe DrawMoveToFuncT Source #

A convenience synonym for ``Nothing` :: `Maybe` `DrawMoveToFuncT``.

noDrawMoveToFuncT_WithClosures :: Maybe DrawMoveToFuncT_WithClosures Source #

A convenience synonym for ``Nothing` :: `Maybe` `DrawMoveToFuncT_WithClosures``.

wrap_DrawMoveToFuncT :: Maybe (Ptr (FunPtr C_DrawMoveToFuncT)) -> DrawMoveToFuncT_WithClosures -> C_DrawMoveToFuncT Source #

Wrap a `DrawMoveToFuncT` into a `C_DrawMoveToFuncT`.

## DrawQuadraticToFuncT

type C_DrawQuadraticToFuncT = Ptr DrawFuncsT -> Ptr () -> Ptr DrawStateT -> CFloat -> CFloat -> CFloat -> CFloat -> Ptr () -> IO () Source #

Type for the callback on the (unwrapped) C side.

type DrawQuadraticToFuncT Source #

Arguments

= DrawFuncsT | `dfuncs`: draw functions object
-> Ptr () | `drawData`: The data accompanying the draw functions in `fontDrawGlyph`
-> DrawStateT | `st`: current draw state
-> Float | `controlX`: X component of control point
-> Float | `controlY`: Y component of control point
-> Float | `toX`: X component of target point
-> Float | `toY`: Y component of target point
-> IO () |

A virtual method for the `DrawFuncsT` to perform a "quadratic-to" draw operation.

Since: 4.0.0

type DrawQuadraticToFuncT_WithClosures Source #

Arguments

= DrawFuncsT | `dfuncs`: draw functions object
-> Ptr () | `drawData`: The data accompanying the draw functions in `fontDrawGlyph`
-> DrawStateT | `st`: current draw state
-> Float | `controlX`: X component of control point
-> Float | `controlY`: Y component of control point
-> Float | `toX`: X component of target point
-> Float | `toY`: Y component of target point
-> Ptr () | `userData`: User data pointer passed to `drawFuncsSetQuadraticToFunc`
-> IO () |

A virtual method for the `DrawFuncsT` to perform a "quadratic-to" draw operation.

Since: 4.0.0

drop_closures_DrawQuadraticToFuncT :: DrawQuadraticToFuncT -> DrawQuadraticToFuncT_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_DrawQuadraticToFuncT Source #

Arguments

:: (HasCallStack, MonadIO m) |
=> FunPtr C_DrawQuadraticToFuncT |
-> DrawFuncsT | `dfuncs`: draw functions object
-> Ptr () | `drawData`: The data accompanying the draw functions in `fontDrawGlyph`
-> DrawStateT | `st`: current draw state
-> Float | `controlX`: X component of control point
-> Float | `controlY`: Y component of control point
-> Float | `toX`: X component of target point
-> Float | `toY`: Y component of target point
-> Ptr () | `userData`: User data pointer passed to `drawFuncsSetQuadraticToFunc`
-> m () |

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

genClosure_DrawQuadraticToFuncT :: MonadIO m => DrawQuadraticToFuncT -> m (GClosure C_DrawQuadraticToFuncT) Source #

Wrap the callback into a `GClosure`.

mk_DrawQuadraticToFuncT :: C_DrawQuadraticToFuncT -> IO (FunPtr C_DrawQuadraticToFuncT) Source #

Generate a function pointer callable from C code, from a `C_DrawQuadraticToFuncT`.

noDrawQuadraticToFuncT :: Maybe DrawQuadraticToFuncT Source #

A convenience synonym for ``Nothing` :: `Maybe` `DrawQuadraticToFuncT``.

noDrawQuadraticToFuncT_WithClosures :: Maybe DrawQuadraticToFuncT_WithClosures Source #

A convenience synonym for ``Nothing` :: `Maybe` `DrawQuadraticToFuncT_WithClosures``.

wrap_DrawQuadraticToFuncT :: Maybe (Ptr (FunPtr C_DrawQuadraticToFuncT)) -> DrawQuadraticToFuncT_WithClosures -> C_DrawQuadraticToFuncT Source #

Wrap a `DrawQuadraticToFuncT` into a `C_DrawQuadraticToFuncT`.

## FontDrawGlyphFuncT

type C_FontDrawGlyphFuncT = Ptr FontT -> Ptr () -> Word32 -> Ptr DrawFuncsT -> Ptr () -> Ptr () -> IO () Source #

Type for the callback on the (unwrapped) C side.

type FontDrawGlyphFuncT Source #

Arguments

= FontT | `font`: `FontT` to work upon
-> Ptr () | `fontData`: `font` user data pointer
-> Word32 | `glyph`: The glyph ID to query
-> DrawFuncsT | `drawFuncs`: The draw functions to send the shape data to
-> Ptr () | `drawData`: The data accompanying the draw functions
-> IO () |

Deprecated: (Since version 11.2.0)Use hb_font_draw_glyph_func_or_fail_t instead.

A virtual method for the `FontFuncsT` of an `FontT` object.

Since: 7.0.0

type FontDrawGlyphFuncT_WithClosures Source #

Arguments

= FontT | `font`: `FontT` to work upon
-> Ptr () | `fontData`: `font` user data pointer
-> Word32 | `glyph`: The glyph ID to query
-> DrawFuncsT | `drawFuncs`: The draw functions to send the shape data to
-> Ptr () | `drawData`: The data accompanying the draw functions
-> Ptr () | `userData`: User data pointer passed by the caller
-> IO () |

A virtual method for the `FontFuncsT` of an `FontT` object.

Since: 7.0.0

drop_closures_FontDrawGlyphFuncT :: FontDrawGlyphFuncT -> FontDrawGlyphFuncT_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_FontDrawGlyphFuncT Source #

Arguments

:: (HasCallStack, MonadIO m) |
=> FunPtr C_FontDrawGlyphFuncT |
-> FontT | `font`: `FontT` to work upon
-> Ptr () | `fontData`: `font` user data pointer
-> Word32 | `glyph`: The glyph ID to query
-> DrawFuncsT | `drawFuncs`: The draw functions to send the shape data to
-> Ptr () | `drawData`: The data accompanying the draw functions
-> Ptr () | `userData`: User data pointer passed by the caller
-> m () |

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

genClosure_FontDrawGlyphFuncT :: MonadIO m => FontDrawGlyphFuncT -> m (GClosure C_FontDrawGlyphFuncT) Source #

Wrap the callback into a `GClosure`.

mk_FontDrawGlyphFuncT :: C_FontDrawGlyphFuncT -> IO (FunPtr C_FontDrawGlyphFuncT) Source #

Generate a function pointer callable from C code, from a `C_FontDrawGlyphFuncT`.

noFontDrawGlyphFuncT :: Maybe FontDrawGlyphFuncT Source #

A convenience synonym for ``Nothing` :: `Maybe` `FontDrawGlyphFuncT``.

noFontDrawGlyphFuncT_WithClosures :: Maybe FontDrawGlyphFuncT_WithClosures Source #

A convenience synonym for ``Nothing` :: `Maybe` `FontDrawGlyphFuncT_WithClosures``.

wrap_FontDrawGlyphFuncT :: Maybe (Ptr (FunPtr C_FontDrawGlyphFuncT)) -> FontDrawGlyphFuncT_WithClosures -> C_FontDrawGlyphFuncT Source #

Wrap a `FontDrawGlyphFuncT` into a `C_FontDrawGlyphFuncT`.

## FontDrawGlyphOrFailFuncT

type C_FontDrawGlyphOrFailFuncT = Ptr FontT -> Ptr () -> Word32 -> Ptr DrawFuncsT -> Ptr () -> Ptr () -> IO Int32 Source #

Type for the callback on the (unwrapped) C side.

type FontDrawGlyphOrFailFuncT Source #

Arguments

= FontT | `font`: `FontT` to work upon
-> Ptr () | `fontData`: `font` user data pointer
-> Word32 | `glyph`: The glyph ID to query
-> DrawFuncsT | `drawFuncs`: The draw functions to send the shape data to
-> Ptr () | `drawData`: The data accompanying the draw functions
-> IO Int32 | Returns: `true` if glyph was drawn, `false` otherwise

A virtual method for the `FontFuncsT` of an `FontT` object.

Since: 11.2.0

type FontDrawGlyphOrFailFuncT_WithClosures Source #

Arguments

= FontT | `font`: `FontT` to work upon
-> Ptr () | `fontData`: `font` user data pointer
-> Word32 | `glyph`: The glyph ID to query
-> DrawFuncsT | `drawFuncs`: The draw functions to send the shape data to
-> Ptr () | `drawData`: The data accompanying the draw functions
-> Ptr () | `userData`: User data pointer passed by the caller
-> IO Int32 | Returns: `true` if glyph was drawn, `false` otherwise

A virtual method for the `FontFuncsT` of an `FontT` object.

Since: 11.2.0

drop_closures_FontDrawGlyphOrFailFuncT :: FontDrawGlyphOrFailFuncT -> FontDrawGlyphOrFailFuncT_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_FontDrawGlyphOrFailFuncT Source #

Arguments

:: (HasCallStack, MonadIO m) |
=> FunPtr C_FontDrawGlyphOrFailFuncT |
-> FontT | `font`: `FontT` to work upon
-> Ptr () | `fontData`: `font` user data pointer
-> Word32 | `glyph`: The glyph ID to query
-> DrawFuncsT | `drawFuncs`: The draw functions to send the shape data to
-> Ptr () | `drawData`: The data accompanying the draw functions
-> Ptr () | `userData`: User data pointer passed by the caller
-> m Int32 | Returns: `true` if glyph was drawn, `false` otherwise

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

genClosure_FontDrawGlyphOrFailFuncT :: MonadIO m => FontDrawGlyphOrFailFuncT -> m (GClosure C_FontDrawGlyphOrFailFuncT) Source #

Wrap the callback into a `GClosure`.

mk_FontDrawGlyphOrFailFuncT :: C_FontDrawGlyphOrFailFuncT -> IO (FunPtr C_FontDrawGlyphOrFailFuncT) Source #

Generate a function pointer callable from C code, from a `C_FontDrawGlyphOrFailFuncT`.

noFontDrawGlyphOrFailFuncT :: Maybe FontDrawGlyphOrFailFuncT Source #

A convenience synonym for ``Nothing` :: `Maybe` `FontDrawGlyphOrFailFuncT``.

noFontDrawGlyphOrFailFuncT_WithClosures :: Maybe FontDrawGlyphOrFailFuncT_WithClosures Source #

A convenience synonym for ``Nothing` :: `Maybe` `FontDrawGlyphOrFailFuncT_WithClosures``.

wrap_FontDrawGlyphOrFailFuncT :: Maybe (Ptr (FunPtr C_FontDrawGlyphOrFailFuncT)) -> FontDrawGlyphOrFailFuncT_WithClosures -> C_FontDrawGlyphOrFailFuncT Source #

Wrap a `FontDrawGlyphOrFailFuncT` into a `C_FontDrawGlyphOrFailFuncT`.

## FontGetFontExtentsFuncT

type C_FontGetFontExtentsFuncT = Ptr FontT -> Ptr () -> Ptr FontExtentsT -> Ptr () -> IO Int32 Source #

Type for the callback on the (unwrapped) C side.

type FontGetFontExtentsFuncT Source #

Arguments

= FontT | `font`: `FontT` to work upon
-> Ptr () | `fontData`: `font` user data pointer
-> IO (Int32, FontExtentsT) |

This method should retrieve the extents for a font.

type FontGetFontExtentsFuncT_WithClosures Source #

Arguments

= FontT | `font`: `FontT` to work upon
-> Ptr () | `fontData`: `font` user data pointer
-> Ptr () | `userData`: User data pointer passed by the caller
-> IO (Int32, FontExtentsT) |

This method should retrieve the extents for a font.

drop_closures_FontGetFontExtentsFuncT :: FontGetFontExtentsFuncT -> FontGetFontExtentsFuncT_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_FontGetFontExtentsFuncT Source #

Arguments

:: (HasCallStack, MonadIO m) |
=> FunPtr C_FontGetFontExtentsFuncT |
-> FontT | `font`: `FontT` to work upon
-> Ptr () | `fontData`: `font` user data pointer
-> Ptr () | `userData`: User data pointer passed by the caller
-> m (Int32, FontExtentsT) |

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

genClosure_FontGetFontExtentsFuncT :: MonadIO m => FontGetFontExtentsFuncT -> m (GClosure C_FontGetFontExtentsFuncT) Source #

Wrap the callback into a `GClosure`.

mk_FontGetFontExtentsFuncT :: C_FontGetFontExtentsFuncT -> IO (FunPtr C_FontGetFontExtentsFuncT) Source #

Generate a function pointer callable from C code, from a `C_FontGetFontExtentsFuncT`.

noFontGetFontExtentsFuncT :: Maybe FontGetFontExtentsFuncT Source #

A convenience synonym for ``Nothing` :: `Maybe` `FontGetFontExtentsFuncT``.

noFontGetFontExtentsFuncT_WithClosures :: Maybe FontGetFontExtentsFuncT_WithClosures Source #

A convenience synonym for ``Nothing` :: `Maybe` `FontGetFontExtentsFuncT_WithClosures``.

wrap_FontGetFontExtentsFuncT :: Maybe (Ptr (FunPtr C_FontGetFontExtentsFuncT)) -> FontGetFontExtentsFuncT_WithClosures -> C_FontGetFontExtentsFuncT Source #

Wrap a `FontGetFontExtentsFuncT` into a `C_FontGetFontExtentsFuncT`.

## FontGetGlyphAdvanceFuncT

type C_FontGetGlyphAdvanceFuncT = Ptr FontT -> Ptr () -> Word32 -> Ptr () -> IO Int32 Source #

Type for the callback on the (unwrapped) C side.

type FontGetGlyphAdvanceFuncT Source #

Arguments

= FontT | `font`: `FontT` to work upon
-> Ptr () | `fontData`: `font` user data pointer
-> Word32 | `glyph`: The glyph ID to query
-> IO Int32 | Returns: The advance of `glyph` within `font`

A virtual method for the `FontFuncsT` of an `FontT` object.

This method should retrieve the advance for a specified glyph. The method must return an `hb_position_t`.

type FontGetGlyphAdvanceFuncT_WithClosures Source #

Arguments

= FontT | `font`: `FontT` to work upon
-> Ptr () | `fontData`: `font` user data pointer
-> Word32 | `glyph`: The glyph ID to query
-> Ptr () | `userData`: User data pointer passed by the caller
-> IO Int32 | Returns: The advance of `glyph` within `font`

A virtual method for the `FontFuncsT` of an `FontT` object.

This method should retrieve the advance for a specified glyph. The method must return an `hb_position_t`.

drop_closures_FontGetGlyphAdvanceFuncT :: FontGetGlyphAdvanceFuncT -> FontGetGlyphAdvanceFuncT_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_FontGetGlyphAdvanceFuncT Source #

Arguments

:: (HasCallStack, MonadIO m) |
=> FunPtr C_FontGetGlyphAdvanceFuncT |
-> FontT | `font`: `FontT` to work upon
-> Ptr () | `fontData`: `font` user data pointer
-> Word32 | `glyph`: The glyph ID to query
-> Ptr () | `userData`: User data pointer passed by the caller
-> m Int32 | Returns: The advance of `glyph` within `font`

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

genClosure_FontGetGlyphAdvanceFuncT :: MonadIO m => FontGetGlyphAdvanceFuncT -> m (GClosure C_FontGetGlyphAdvanceFuncT) Source #

Wrap the callback into a `GClosure`.

mk_FontGetGlyphAdvanceFuncT :: C_FontGetGlyphAdvanceFuncT -> IO (FunPtr C_FontGetGlyphAdvanceFuncT) Source #

Generate a function pointer callable from C code, from a `C_FontGetGlyphAdvanceFuncT`.

noFontGetGlyphAdvanceFuncT :: Maybe FontGetGlyphAdvanceFuncT Source #

A convenience synonym for ``Nothing` :: `Maybe` `FontGetGlyphAdvanceFuncT``.

noFontGetGlyphAdvanceFuncT_WithClosures :: Maybe FontGetGlyphAdvanceFuncT_WithClosures Source #

A convenience synonym for ``Nothing` :: `Maybe` `FontGetGlyphAdvanceFuncT_WithClosures``.

wrap_FontGetGlyphAdvanceFuncT :: Maybe (Ptr (FunPtr C_FontGetGlyphAdvanceFuncT)) -> FontGetGlyphAdvanceFuncT_WithClosures -> C_FontGetGlyphAdvanceFuncT Source #

Wrap a `FontGetGlyphAdvanceFuncT` into a `C_FontGetGlyphAdvanceFuncT`.

## FontGetGlyphAdvancesFuncT

type C_FontGetGlyphAdvancesFuncT = Ptr FontT -> Ptr () -> Word32 -> Word32 -> Word32 -> Ptr Int32 -> Word32 -> Ptr () -> IO () Source #

Type for the callback on the (unwrapped) C side.

type FontGetGlyphAdvancesFuncT Source #

Arguments

= FontT | `font`: `FontT` to work upon
-> Ptr () | `fontData`: `font` user data pointer
-> Word32 | `count`: The number of glyph IDs in the sequence queried
-> Word32 | `firstGlyph`: The first glyph ID to query
-> Word32 | `glyphStride`: The stride between successive glyph IDs
-> Word32 | `advanceStride`: The stride between successive advances
-> IO Int32 |

A virtual method for the `FontFuncsT` of an `FontT` object.

This method should retrieve the advances for a sequence of glyphs.

type FontGetGlyphAdvancesFuncT_WithClosures Source #

Arguments

= FontT | `font`: `FontT` to work upon
-> Ptr () | `fontData`: `font` user data pointer
-> Word32 | `count`: The number of glyph IDs in the sequence queried
-> Word32 | `firstGlyph`: The first glyph ID to query
-> Word32 | `glyphStride`: The stride between successive glyph IDs
-> Word32 | `advanceStride`: The stride between successive advances
-> Ptr () | `userData`: User data pointer passed by the caller
-> IO Int32 |

A virtual method for the `FontFuncsT` of an `FontT` object.

This method should retrieve the advances for a sequence of glyphs.

drop_closures_FontGetGlyphAdvancesFuncT :: FontGetGlyphAdvancesFuncT -> FontGetGlyphAdvancesFuncT_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_FontGetGlyphAdvancesFuncT Source #

Arguments

:: (HasCallStack, MonadIO m) |
=> FunPtr C_FontGetGlyphAdvancesFuncT |
-> FontT | `font`: `FontT` to work upon
-> Ptr () | `fontData`: `font` user data pointer
-> Word32 | `count`: The number of glyph IDs in the sequence queried
-> Word32 | `firstGlyph`: The first glyph ID to query
-> Word32 | `glyphStride`: The stride between successive glyph IDs
-> Word32 | `advanceStride`: The stride between successive advances
-> Ptr () | `userData`: User data pointer passed by the caller
-> m Int32 |

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

genClosure_FontGetGlyphAdvancesFuncT :: MonadIO m => FontGetGlyphAdvancesFuncT -> m (GClosure C_FontGetGlyphAdvancesFuncT) Source #

Wrap the callback into a `GClosure`.

mk_FontGetGlyphAdvancesFuncT :: C_FontGetGlyphAdvancesFuncT -> IO (FunPtr C_FontGetGlyphAdvancesFuncT) Source #

Generate a function pointer callable from C code, from a `C_FontGetGlyphAdvancesFuncT`.

noFontGetGlyphAdvancesFuncT :: Maybe FontGetGlyphAdvancesFuncT Source #

A convenience synonym for ``Nothing` :: `Maybe` `FontGetGlyphAdvancesFuncT``.

noFontGetGlyphAdvancesFuncT_WithClosures :: Maybe FontGetGlyphAdvancesFuncT_WithClosures Source #

A convenience synonym for ``Nothing` :: `Maybe` `FontGetGlyphAdvancesFuncT_WithClosures``.

wrap_FontGetGlyphAdvancesFuncT :: Maybe (Ptr (FunPtr C_FontGetGlyphAdvancesFuncT)) -> FontGetGlyphAdvancesFuncT_WithClosures -> C_FontGetGlyphAdvancesFuncT Source #

Wrap a `FontGetGlyphAdvancesFuncT` into a `C_FontGetGlyphAdvancesFuncT`.

## FontGetGlyphContourPointFuncT

type C_FontGetGlyphContourPointFuncT = Ptr FontT -> Ptr () -> Word32 -> Word32 -> Ptr Int32 -> Ptr Int32 -> Ptr () -> IO Int32 Source #

Type for the callback on the (unwrapped) C side.

type FontGetGlyphContourPointFuncT Source #

Arguments

= FontT | `font`: `FontT` to work upon
-> Ptr () | `fontData`: `font` user data pointer
-> Word32 | `glyph`: The glyph ID to query
-> Word32 | `pointIndex`: The contour-point index to query
-> IO (Int32, Int32, Int32) | Returns: `true` if data found, `false` otherwise

A virtual method for the `FontFuncsT` of an `FontT` object.

This method should retrieve the (X,Y) coordinates (in scaled units) for a specified contour point in a glyph. Each coordinate must be returned as an `hb_position_t` output parameter.

type FontGetGlyphContourPointFuncT_WithClosures Source #

Arguments

= FontT | `font`: `FontT` to work upon
-> Ptr () | `fontData`: `font` user data pointer
-> Word32 | `glyph`: The glyph ID to query
-> Word32 | `pointIndex`: The contour-point index to query
-> Ptr () | `userData`: User data pointer passed by the caller
-> IO (Int32, Int32, Int32) | Returns: `true` if data found, `false` otherwise

A virtual method for the `FontFuncsT` of an `FontT` object.

This method should retrieve the (X,Y) coordinates (in scaled units) for a specified contour point in a glyph. Each coordinate must be returned as an `hb_position_t` output parameter.

drop_closures_FontGetGlyphContourPointFuncT :: FontGetGlyphContourPointFuncT -> FontGetGlyphContourPointFuncT_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_FontGetGlyphContourPointFuncT Source #

Arguments

:: (HasCallStack, MonadIO m) |
=> FunPtr C_FontGetGlyphContourPointFuncT |
-> FontT | `font`: `FontT` to work upon
-> Ptr () | `fontData`: `font` user data pointer
-> Word32 | `glyph`: The glyph ID to query
-> Word32 | `pointIndex`: The contour-point index to query
-> Ptr () | `userData`: User data pointer passed by the caller
-> m (Int32, Int32, Int32) | Returns: `true` if data found, `false` otherwise

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

genClosure_FontGetGlyphContourPointFuncT :: MonadIO m => FontGetGlyphContourPointFuncT -> m (GClosure C_FontGetGlyphContourPointFuncT) Source #

Wrap the callback into a `GClosure`.

mk_FontGetGlyphContourPointFuncT :: C_FontGetGlyphContourPointFuncT -> IO (FunPtr C_FontGetGlyphContourPointFuncT) Source #

Generate a function pointer callable from C code, from a `C_FontGetGlyphContourPointFuncT`.

noFontGetGlyphContourPointFuncT :: Maybe FontGetGlyphContourPointFuncT Source #

A convenience synonym for ``Nothing` :: `Maybe` `FontGetGlyphContourPointFuncT``.

noFontGetGlyphContourPointFuncT_WithClosures :: Maybe FontGetGlyphContourPointFuncT_WithClosures Source #

A convenience synonym for ``Nothing` :: `Maybe` `FontGetGlyphContourPointFuncT_WithClosures``.

wrap_FontGetGlyphContourPointFuncT :: Maybe (Ptr (FunPtr C_FontGetGlyphContourPointFuncT)) -> FontGetGlyphContourPointFuncT_WithClosures -> C_FontGetGlyphContourPointFuncT Source #

Wrap a `FontGetGlyphContourPointFuncT` into a `C_FontGetGlyphContourPointFuncT`.

## FontGetGlyphExtentsFuncT

type C_FontGetGlyphExtentsFuncT = Ptr FontT -> Ptr () -> Word32 -> Ptr GlyphExtentsT -> Ptr () -> IO Int32 Source #

Type for the callback on the (unwrapped) C side.

type FontGetGlyphExtentsFuncT Source #

Arguments

= FontT | `font`: `FontT` to work upon
-> Ptr () | `fontData`: `font` user data pointer
-> Word32 | `glyph`: The glyph ID to query
-> IO (Int32, GlyphExtentsT) | Returns: `true` if data found, `false` otherwise

A virtual method for the `FontFuncsT` of an `FontT` object.

This method should retrieve the extents for a specified glyph. Extents must be returned in an `hb_glyph_extents` output parameter.

type FontGetGlyphExtentsFuncT_WithClosures Source #

Arguments

= FontT | `font`: `FontT` to work upon
-> Ptr () | `fontData`: `font` user data pointer
-> Word32 | `glyph`: The glyph ID to query
-> Ptr () | `userData`: User data pointer passed by the caller
-> IO (Int32, GlyphExtentsT) | Returns: `true` if data found, `false` otherwise

A virtual method for the `FontFuncsT` of an `FontT` object.

This method should retrieve the extents for a specified glyph. Extents must be returned in an `hb_glyph_extents` output parameter.

drop_closures_FontGetGlyphExtentsFuncT :: FontGetGlyphExtentsFuncT -> FontGetGlyphExtentsFuncT_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_FontGetGlyphExtentsFuncT Source #

Arguments

:: (HasCallStack, MonadIO m) |
=> FunPtr C_FontGetGlyphExtentsFuncT |
-> FontT | `font`: `FontT` to work upon
-> Ptr () | `fontData`: `font` user data pointer
-> Word32 | `glyph`: The glyph ID to query
-> Ptr () | `userData`: User data pointer passed by the caller
-> m (Int32, GlyphExtentsT) | Returns: `true` if data found, `false` otherwise

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

genClosure_FontGetGlyphExtentsFuncT :: MonadIO m => FontGetGlyphExtentsFuncT -> m (GClosure C_FontGetGlyphExtentsFuncT) Source #

Wrap the callback into a `GClosure`.

mk_FontGetGlyphExtentsFuncT :: C_FontGetGlyphExtentsFuncT -> IO (FunPtr C_FontGetGlyphExtentsFuncT) Source #

Generate a function pointer callable from C code, from a `C_FontGetGlyphExtentsFuncT`.

noFontGetGlyphExtentsFuncT :: Maybe FontGetGlyphExtentsFuncT Source #

A convenience synonym for ``Nothing` :: `Maybe` `FontGetGlyphExtentsFuncT``.

noFontGetGlyphExtentsFuncT_WithClosures :: Maybe FontGetGlyphExtentsFuncT_WithClosures Source #

A convenience synonym for ``Nothing` :: `Maybe` `FontGetGlyphExtentsFuncT_WithClosures``.

wrap_FontGetGlyphExtentsFuncT :: Maybe (Ptr (FunPtr C_FontGetGlyphExtentsFuncT)) -> FontGetGlyphExtentsFuncT_WithClosures -> C_FontGetGlyphExtentsFuncT Source #

Wrap a `FontGetGlyphExtentsFuncT` into a `C_FontGetGlyphExtentsFuncT`.

## FontGetGlyphFromNameFuncT

type C_FontGetGlyphFromNameFuncT = Ptr FontT -> Ptr () -> Ptr CString -> Int32 -> Ptr Word32 -> Ptr () -> IO Int32 Source #

Type for the callback on the (unwrapped) C side.

type FontGetGlyphFromNameFuncT Source #

Arguments

= FontT | `font`: `FontT` to work upon
-> Ptr () | `fontData`: `font` user data pointer
-> [Text] | `name`: The name string to query
-> IO (Int32, Word32) | Returns: `true` if data found, `false` otherwise

A virtual method for the `FontFuncsT` of an `FontT` object.

This method should retrieve the glyph ID that corresponds to a glyph-name string.

type FontGetGlyphFromNameFuncT_WithClosures Source #

Arguments

= FontT | `font`: `FontT` to work upon
-> Ptr () | `fontData`: `font` user data pointer
-> [Text] | `name`: The name string to query
-> Ptr () | `userData`: User data pointer passed by the caller
-> IO (Int32, Word32) | Returns: `true` if data found, `false` otherwise

A virtual method for the `FontFuncsT` of an `FontT` object.

This method should retrieve the glyph ID that corresponds to a glyph-name string.

drop_closures_FontGetGlyphFromNameFuncT :: FontGetGlyphFromNameFuncT -> FontGetGlyphFromNameFuncT_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_FontGetGlyphFromNameFuncT Source #

Arguments

:: (HasCallStack, MonadIO m) |
=> FunPtr C_FontGetGlyphFromNameFuncT |
-> FontT | `font`: `FontT` to work upon
-> Ptr () | `fontData`: `font` user data pointer
-> [Text] | `name`: The name string to query
-> Ptr () | `userData`: User data pointer passed by the caller
-> m (Int32, Word32) | Returns: `true` if data found, `false` otherwise

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

genClosure_FontGetGlyphFromNameFuncT :: MonadIO m => FontGetGlyphFromNameFuncT -> m (GClosure C_FontGetGlyphFromNameFuncT) Source #

Wrap the callback into a `GClosure`.

mk_FontGetGlyphFromNameFuncT :: C_FontGetGlyphFromNameFuncT -> IO (FunPtr C_FontGetGlyphFromNameFuncT) Source #

Generate a function pointer callable from C code, from a `C_FontGetGlyphFromNameFuncT`.

noFontGetGlyphFromNameFuncT :: Maybe FontGetGlyphFromNameFuncT Source #

A convenience synonym for ``Nothing` :: `Maybe` `FontGetGlyphFromNameFuncT``.

noFontGetGlyphFromNameFuncT_WithClosures :: Maybe FontGetGlyphFromNameFuncT_WithClosures Source #

A convenience synonym for ``Nothing` :: `Maybe` `FontGetGlyphFromNameFuncT_WithClosures``.

wrap_FontGetGlyphFromNameFuncT :: Maybe (Ptr (FunPtr C_FontGetGlyphFromNameFuncT)) -> FontGetGlyphFromNameFuncT_WithClosures -> C_FontGetGlyphFromNameFuncT Source #

Wrap a `FontGetGlyphFromNameFuncT` into a `C_FontGetGlyphFromNameFuncT`.

## FontGetGlyphFuncT

type C_FontGetGlyphFuncT = Ptr FontT -> Ptr () -> Word32 -> Word32 -> Ptr Word32 -> Ptr () -> IO Int32 Source #

Type for the callback on the (unwrapped) C side.

type FontGetGlyphFuncT Source #

Arguments

= FontT | `font`: `FontT` to work upon
-> Ptr () | `fontData`: `font` user data pointer
-> Word32 | `unicode`: The Unicode code point to query
-> Word32 | `variationSelector`: The variation-selector code point to query
-> IO (Int32, Word32) | Returns: `true` if data found, `false` otherwise

Deprecated: (Since version 1.2.3)

A virtual method for the `FontFuncsT` of an `FontT` object.

This method should retrieve the glyph ID for a specified Unicode code point font, with an optional variation selector.

type FontGetGlyphFuncT_WithClosures Source #

Arguments

= FontT | `font`: `FontT` to work upon
-> Ptr () | `fontData`: `font` user data pointer
-> Word32 | `unicode`: The Unicode code point to query
-> Word32 | `variationSelector`: The variation-selector code point to query
-> Ptr () | `userData`: User data pointer passed by the caller
-> IO (Int32, Word32) | Returns: `true` if data found, `false` otherwise

A virtual method for the `FontFuncsT` of an `FontT` object.

This method should retrieve the glyph ID for a specified Unicode code point font, with an optional variation selector.

drop_closures_FontGetGlyphFuncT :: FontGetGlyphFuncT -> FontGetGlyphFuncT_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_FontGetGlyphFuncT Source #

Arguments

:: (HasCallStack, MonadIO m) |
=> FunPtr C_FontGetGlyphFuncT |
-> FontT | `font`: `FontT` to work upon
-> Ptr () | `fontData`: `font` user data pointer
-> Word32 | `unicode`: The Unicode code point to query
-> Word32 | `variationSelector`: The variation-selector code point to query
-> Ptr () | `userData`: User data pointer passed by the caller
-> m (Int32, Word32) | Returns: `true` if data found, `false` otherwise

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

genClosure_FontGetGlyphFuncT :: MonadIO m => FontGetGlyphFuncT -> m (GClosure C_FontGetGlyphFuncT) Source #

Wrap the callback into a `GClosure`.

mk_FontGetGlyphFuncT :: C_FontGetGlyphFuncT -> IO (FunPtr C_FontGetGlyphFuncT) Source #

Generate a function pointer callable from C code, from a `C_FontGetGlyphFuncT`.

noFontGetGlyphFuncT :: Maybe FontGetGlyphFuncT Source #

A convenience synonym for ``Nothing` :: `Maybe` `FontGetGlyphFuncT``.

noFontGetGlyphFuncT_WithClosures :: Maybe FontGetGlyphFuncT_WithClosures Source #

A convenience synonym for ``Nothing` :: `Maybe` `FontGetGlyphFuncT_WithClosures``.

wrap_FontGetGlyphFuncT :: Maybe (Ptr (FunPtr C_FontGetGlyphFuncT)) -> FontGetGlyphFuncT_WithClosures -> C_FontGetGlyphFuncT Source #

Wrap a `FontGetGlyphFuncT` into a `C_FontGetGlyphFuncT`.

## FontGetGlyphKerningFuncT

type C_FontGetGlyphKerningFuncT = Ptr FontT -> Ptr () -> Word32 -> Word32 -> Ptr () -> IO Int32 Source #

Type for the callback on the (unwrapped) C side.

type FontGetGlyphKerningFuncT Source #

Arguments

= FontT | `font`: `FontT` to work upon
-> Ptr () | `fontData`: `font` user data pointer
-> Word32 | `firstGlyph`: The glyph ID of the first glyph in the glyph pair
-> Word32 | `secondGlyph`: The glyph ID of the second glyph in the glyph pair
-> IO Int32 |

This method should retrieve the kerning-adjustment value for a glyph-pair in the specified font, for horizontal text segments.

type FontGetGlyphKerningFuncT_WithClosures Source #

Arguments

= FontT | `font`: `FontT` to work upon
-> Ptr () | `fontData`: `font` user data pointer
-> Word32 | `firstGlyph`: The glyph ID of the first glyph in the glyph pair
-> Word32 | `secondGlyph`: The glyph ID of the second glyph in the glyph pair
-> Ptr () | `userData`: User data pointer passed by the caller
-> IO Int32 |

This method should retrieve the kerning-adjustment value for a glyph-pair in the specified font, for horizontal text segments.

drop_closures_FontGetGlyphKerningFuncT :: FontGetGlyphKerningFuncT -> FontGetGlyphKerningFuncT_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_FontGetGlyphKerningFuncT Source #

Arguments

:: (HasCallStack, MonadIO m) |
=> FunPtr C_FontGetGlyphKerningFuncT |
-> FontT | `font`: `FontT` to work upon
-> Ptr () | `fontData`: `font` user data pointer
-> Word32 | `firstGlyph`: The glyph ID of the first glyph in the glyph pair
-> Word32 | `secondGlyph`: The glyph ID of the second glyph in the glyph pair
-> Ptr () | `userData`: User data pointer passed by the caller
-> m Int32 |

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

genClosure_FontGetGlyphKerningFuncT :: MonadIO m => FontGetGlyphKerningFuncT -> m (GClosure C_FontGetGlyphKerningFuncT) Source #

Wrap the callback into a `GClosure`.

mk_FontGetGlyphKerningFuncT :: C_FontGetGlyphKerningFuncT -> IO (FunPtr C_FontGetGlyphKerningFuncT) Source #

Generate a function pointer callable from C code, from a `C_FontGetGlyphKerningFuncT`.

noFontGetGlyphKerningFuncT :: Maybe FontGetGlyphKerningFuncT Source #

A convenience synonym for ``Nothing` :: `Maybe` `FontGetGlyphKerningFuncT``.

noFontGetGlyphKerningFuncT_WithClosures :: Maybe FontGetGlyphKerningFuncT_WithClosures Source #

A convenience synonym for ``Nothing` :: `Maybe` `FontGetGlyphKerningFuncT_WithClosures``.

wrap_FontGetGlyphKerningFuncT :: Maybe (Ptr (FunPtr C_FontGetGlyphKerningFuncT)) -> FontGetGlyphKerningFuncT_WithClosures -> C_FontGetGlyphKerningFuncT Source #

Wrap a `FontGetGlyphKerningFuncT` into a `C_FontGetGlyphKerningFuncT`.

## FontGetGlyphNameFuncT

type C_FontGetGlyphNameFuncT = Ptr FontT -> Ptr () -> Word32 -> Ptr (Ptr CString) -> Ptr Word32 -> Ptr () -> IO Int32 Source #

Type for the callback on the (unwrapped) C side.

type FontGetGlyphNameFuncT Source #

Arguments

= FontT | `font`: `FontT` to work upon
-> Ptr () | `fontData`: `font` user data pointer
-> Word32 | `glyph`: The glyph ID to query
-> IO (Int32, [Text]) | Returns: `true` if data found, `false` otherwise

A virtual method for the `FontFuncsT` of an `FontT` object.

This method should retrieve the glyph name that corresponds to a glyph ID. The name should be returned in a string output parameter.

type FontGetGlyphNameFuncT_WithClosures Source #

Arguments

= FontT | `font`: `FontT` to work upon
-> Ptr () | `fontData`: `font` user data pointer
-> Word32 | `glyph`: The glyph ID to query
-> Ptr () | `userData`: User data pointer passed by the caller
-> IO (Int32, [Text]) | Returns: `true` if data found, `false` otherwise

A virtual method for the `FontFuncsT` of an `FontT` object.

This method should retrieve the glyph name that corresponds to a glyph ID. The name should be returned in a string output parameter.

drop_closures_FontGetGlyphNameFuncT :: FontGetGlyphNameFuncT -> FontGetGlyphNameFuncT_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_FontGetGlyphNameFuncT Source #

Arguments

:: (HasCallStack, MonadIO m) |
=> FunPtr C_FontGetGlyphNameFuncT |
-> FontT | `font`: `FontT` to work upon
-> Ptr () | `fontData`: `font` user data pointer
-> Word32 | `glyph`: The glyph ID to query
-> Ptr () | `userData`: User data pointer passed by the caller
-> m (Int32, [Text]) | Returns: `true` if data found, `false` otherwise

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

genClosure_FontGetGlyphNameFuncT :: MonadIO m => FontGetGlyphNameFuncT -> m (GClosure C_FontGetGlyphNameFuncT) Source #

Wrap the callback into a `GClosure`.

mk_FontGetGlyphNameFuncT :: C_FontGetGlyphNameFuncT -> IO (FunPtr C_FontGetGlyphNameFuncT) Source #

Generate a function pointer callable from C code, from a `C_FontGetGlyphNameFuncT`.

noFontGetGlyphNameFuncT :: Maybe FontGetGlyphNameFuncT Source #

A convenience synonym for ``Nothing` :: `Maybe` `FontGetGlyphNameFuncT``.

noFontGetGlyphNameFuncT_WithClosures :: Maybe FontGetGlyphNameFuncT_WithClosures Source #

A convenience synonym for ``Nothing` :: `Maybe` `FontGetGlyphNameFuncT_WithClosures``.

wrap_FontGetGlyphNameFuncT :: Maybe (Ptr (FunPtr C_FontGetGlyphNameFuncT)) -> FontGetGlyphNameFuncT_WithClosures -> C_FontGetGlyphNameFuncT Source #

Wrap a `FontGetGlyphNameFuncT` into a `C_FontGetGlyphNameFuncT`.

## FontGetGlyphOriginFuncT

type C_FontGetGlyphOriginFuncT = Ptr FontT -> Ptr () -> Word32 -> Ptr Int32 -> Ptr Int32 -> Ptr () -> IO Int32 Source #

Type for the callback on the (unwrapped) C side.

type FontGetGlyphOriginFuncT Source #

Arguments

= FontT | `font`: `FontT` to work upon
-> Ptr () | `fontData`: `font` user data pointer
-> Word32 | `glyph`: The glyph ID to query
-> IO (Int32, Int32, Int32) | Returns: `true` if data found, `false` otherwise

A virtual method for the `FontFuncsT` of an `FontT` object.

This method should retrieve the (X,Y) coordinates (in scaled units) of the origin for a glyph. Each coordinate must be returned in an `hb_position_t` output parameter.

type FontGetGlyphOriginFuncT_WithClosures Source #

Arguments

= FontT | `font`: `FontT` to work upon
-> Ptr () | `fontData`: `font` user data pointer
-> Word32 | `glyph`: The glyph ID to query
-> Ptr () | `userData`: User data pointer passed by the caller
-> IO (Int32, Int32, Int32) | Returns: `true` if data found, `false` otherwise

A virtual method for the `FontFuncsT` of an `FontT` object.

This method should retrieve the (X,Y) coordinates (in scaled units) of the origin for a glyph. Each coordinate must be returned in an `hb_position_t` output parameter.

drop_closures_FontGetGlyphOriginFuncT :: FontGetGlyphOriginFuncT -> FontGetGlyphOriginFuncT_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_FontGetGlyphOriginFuncT Source #

Arguments

:: (HasCallStack, MonadIO m) |
=> FunPtr C_FontGetGlyphOriginFuncT |
-> FontT | `font`: `FontT` to work upon
-> Ptr () | `fontData`: `font` user data pointer
-> Word32 | `glyph`: The glyph ID to query
-> Ptr () | `userData`: User data pointer passed by the caller
-> m (Int32, Int32, Int32) | Returns: `true` if data found, `false` otherwise

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

genClosure_FontGetGlyphOriginFuncT :: MonadIO m => FontGetGlyphOriginFuncT -> m (GClosure C_FontGetGlyphOriginFuncT) Source #

Wrap the callback into a `GClosure`.

mk_FontGetGlyphOriginFuncT :: C_FontGetGlyphOriginFuncT -> IO (FunPtr C_FontGetGlyphOriginFuncT) Source #

Generate a function pointer callable from C code, from a `C_FontGetGlyphOriginFuncT`.

noFontGetGlyphOriginFuncT :: Maybe FontGetGlyphOriginFuncT Source #

A convenience synonym for ``Nothing` :: `Maybe` `FontGetGlyphOriginFuncT``.

noFontGetGlyphOriginFuncT_WithClosures :: Maybe FontGetGlyphOriginFuncT_WithClosures Source #

A convenience synonym for ``Nothing` :: `Maybe` `FontGetGlyphOriginFuncT_WithClosures``.

wrap_FontGetGlyphOriginFuncT :: Maybe (Ptr (FunPtr C_FontGetGlyphOriginFuncT)) -> FontGetGlyphOriginFuncT_WithClosures -> C_FontGetGlyphOriginFuncT Source #

Wrap a `FontGetGlyphOriginFuncT` into a `C_FontGetGlyphOriginFuncT`.

## FontGetGlyphOriginsFuncT

type C_FontGetGlyphOriginsFuncT = Ptr FontT -> Ptr () -> Word32 -> Word32 -> Word32 -> Ptr Int32 -> Word32 -> Ptr Int32 -> Word32 -> Ptr () -> IO Int32 Source #

Type for the callback on the (unwrapped) C side.

type FontGetGlyphOriginsFuncT Source #

Arguments

= FontT | `font`: `FontT` to work upon
-> Ptr () | `fontData`: `font` user data pointer
-> Word32 | `count`: number of glyphs to query
-> Word32 | `firstGlyph`: The first glyph ID to query
-> Word32 | `glyphStride`: The stride between successive glyph IDs
-> Word32 | `xStride`: The stride between successive origin X coordinates
-> Word32 | `yStride`: The stride between successive origin Y coordinates
-> IO (Int32, Int32, Int32) | Returns: `true` if data found, `false` otherwise

A virtual method for the `FontFuncsT` of an `FontT` object.

This method should retrieve the (X,Y) coordinates (in scaled units) of the origin for each requested glyph. Each coordinate value must be returned in an `hb_position_t` in the two output parameters.

Since: 11.3.0

type FontGetGlyphOriginsFuncT_WithClosures Source #

Arguments

= FontT | `font`: `FontT` to work upon
-> Ptr () | `fontData`: `font` user data pointer
-> Word32 | `count`: number of glyphs to query
-> Word32 | `firstGlyph`: The first glyph ID to query
-> Word32 | `glyphStride`: The stride between successive glyph IDs
-> Word32 | `xStride`: The stride between successive origin X coordinates
-> Word32 | `yStride`: The stride between successive origin Y coordinates
-> Ptr () | `userData`: User data pointer passed by the caller
-> IO (Int32, Int32, Int32) | Returns: `true` if data found, `false` otherwise

A virtual method for the `FontFuncsT` of an `FontT` object.

This method should retrieve the (X,Y) coordinates (in scaled units) of the origin for each requested glyph. Each coordinate value must be returned in an `hb_position_t` in the two output parameters.

Since: 11.3.0

drop_closures_FontGetGlyphOriginsFuncT :: FontGetGlyphOriginsFuncT -> FontGetGlyphOriginsFuncT_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_FontGetGlyphOriginsFuncT Source #

Arguments

:: (HasCallStack, MonadIO m) |
=> FunPtr C_FontGetGlyphOriginsFuncT |
-> FontT | `font`: `FontT` to work upon
-> Ptr () | `fontData`: `font` user data pointer
-> Word32 | `count`: number of glyphs to query
-> Word32 | `firstGlyph`: The first glyph ID to query
-> Word32 | `glyphStride`: The stride between successive glyph IDs
-> Word32 | `xStride`: The stride between successive origin X coordinates
-> Word32 | `yStride`: The stride between successive origin Y coordinates
-> Ptr () | `userData`: User data pointer passed by the caller
-> m (Int32, Int32, Int32) | Returns: `true` if data found, `false` otherwise

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

genClosure_FontGetGlyphOriginsFuncT :: MonadIO m => FontGetGlyphOriginsFuncT -> m (GClosure C_FontGetGlyphOriginsFuncT) Source #

Wrap the callback into a `GClosure`.

mk_FontGetGlyphOriginsFuncT :: C_FontGetGlyphOriginsFuncT -> IO (FunPtr C_FontGetGlyphOriginsFuncT) Source #

Generate a function pointer callable from C code, from a `C_FontGetGlyphOriginsFuncT`.

noFontGetGlyphOriginsFuncT :: Maybe FontGetGlyphOriginsFuncT Source #

A convenience synonym for ``Nothing` :: `Maybe` `FontGetGlyphOriginsFuncT``.

noFontGetGlyphOriginsFuncT_WithClosures :: Maybe FontGetGlyphOriginsFuncT_WithClosures Source #

A convenience synonym for ``Nothing` :: `Maybe` `FontGetGlyphOriginsFuncT_WithClosures``.

wrap_FontGetGlyphOriginsFuncT :: Maybe (Ptr (FunPtr C_FontGetGlyphOriginsFuncT)) -> FontGetGlyphOriginsFuncT_WithClosures -> C_FontGetGlyphOriginsFuncT Source #

Wrap a `FontGetGlyphOriginsFuncT` into a `C_FontGetGlyphOriginsFuncT`.

## FontGetGlyphShapeFuncT

type C_FontGetGlyphShapeFuncT = Ptr FontT -> Ptr () -> Word32 -> Ptr DrawFuncsT -> Ptr () -> Ptr () -> IO () Source #

Type for the callback on the (unwrapped) C side.

type FontGetGlyphShapeFuncT Source #

Arguments

= FontT | `font`: `FontT` to work upon
-> Ptr () | `fontData`: `font` user data pointer
-> Word32 | `glyph`: The glyph ID to query
-> DrawFuncsT | `drawFuncs`: The draw functions to send the shape data to
-> Ptr () | `drawData`: The data accompanying the draw functions
-> IO () |

Deprecated: (Since version 7.0.0)Use `FontDrawGlyphFuncT` instead

A virtual method for the `FontFuncsT` of an `FontT` object.

Since: 4.0.0

type FontGetGlyphShapeFuncT_WithClosures Source #

Arguments

= FontT | `font`: `FontT` to work upon
-> Ptr () | `fontData`: `font` user data pointer
-> Word32 | `glyph`: The glyph ID to query
-> DrawFuncsT | `drawFuncs`: The draw functions to send the shape data to
-> Ptr () | `drawData`: The data accompanying the draw functions
-> Ptr () | `userData`: User data pointer passed by the caller
-> IO () |

A virtual method for the `FontFuncsT` of an `FontT` object.

Since: 4.0.0

drop_closures_FontGetGlyphShapeFuncT :: FontGetGlyphShapeFuncT -> FontGetGlyphShapeFuncT_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_FontGetGlyphShapeFuncT Source #

Arguments

:: (HasCallStack, MonadIO m) |
=> FunPtr C_FontGetGlyphShapeFuncT |
-> FontT | `font`: `FontT` to work upon
-> Ptr () | `fontData`: `font` user data pointer
-> Word32 | `glyph`: The glyph ID to query
-> DrawFuncsT | `drawFuncs`: The draw functions to send the shape data to
-> Ptr () | `drawData`: The data accompanying the draw functions
-> Ptr () | `userData`: User data pointer passed by the caller
-> m () |

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

genClosure_FontGetGlyphShapeFuncT :: MonadIO m => FontGetGlyphShapeFuncT -> m (GClosure C_FontGetGlyphShapeFuncT) Source #

Wrap the callback into a `GClosure`.

mk_FontGetGlyphShapeFuncT :: C_FontGetGlyphShapeFuncT -> IO (FunPtr C_FontGetGlyphShapeFuncT) Source #

Generate a function pointer callable from C code, from a `C_FontGetGlyphShapeFuncT`.

noFontGetGlyphShapeFuncT :: Maybe FontGetGlyphShapeFuncT Source #

A convenience synonym for ``Nothing` :: `Maybe` `FontGetGlyphShapeFuncT``.

noFontGetGlyphShapeFuncT_WithClosures :: Maybe FontGetGlyphShapeFuncT_WithClosures Source #

A convenience synonym for ``Nothing` :: `Maybe` `FontGetGlyphShapeFuncT_WithClosures``.

wrap_FontGetGlyphShapeFuncT :: Maybe (Ptr (FunPtr C_FontGetGlyphShapeFuncT)) -> FontGetGlyphShapeFuncT_WithClosures -> C_FontGetGlyphShapeFuncT Source #

Wrap a `FontGetGlyphShapeFuncT` into a `C_FontGetGlyphShapeFuncT`.

## FontGetNominalGlyphFuncT

type C_FontGetNominalGlyphFuncT = Ptr FontT -> Ptr () -> Word32 -> Ptr Word32 -> Ptr () -> IO Int32 Source #

Type for the callback on the (unwrapped) C side.

type FontGetNominalGlyphFuncT Source #

Arguments

= FontT | `font`: `FontT` to work upon
-> Ptr () | `fontData`: `font` user data pointer
-> Word32 | `unicode`: The Unicode code point to query
-> IO (Int32, Word32) | Returns: `true` if data found, `false` otherwise

A virtual method for the `FontFuncsT` of an `FontT` object.

This method should retrieve the nominal glyph ID for a specified Unicode code point. Glyph IDs must be returned in a `hb_codepoint_t` output parameter.

type FontGetNominalGlyphFuncT_WithClosures Source #

Arguments

= FontT | `font`: `FontT` to work upon
-> Ptr () | `fontData`: `font` user data pointer
-> Word32 | `unicode`: The Unicode code point to query
-> Ptr () | `userData`: User data pointer passed by the caller
-> IO (Int32, Word32) | Returns: `true` if data found, `false` otherwise

A virtual method for the `FontFuncsT` of an `FontT` object.

This method should retrieve the nominal glyph ID for a specified Unicode code point. Glyph IDs must be returned in a `hb_codepoint_t` output parameter.

drop_closures_FontGetNominalGlyphFuncT :: FontGetNominalGlyphFuncT -> FontGetNominalGlyphFuncT_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_FontGetNominalGlyphFuncT Source #

Arguments

:: (HasCallStack, MonadIO m) |
=> FunPtr C_FontGetNominalGlyphFuncT |
-> FontT | `font`: `FontT` to work upon
-> Ptr () | `fontData`: `font` user data pointer
-> Word32 | `unicode`: The Unicode code point to query
-> Ptr () | `userData`: User data pointer passed by the caller
-> m (Int32, Word32) | Returns: `true` if data found, `false` otherwise

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

genClosure_FontGetNominalGlyphFuncT :: MonadIO m => FontGetNominalGlyphFuncT -> m (GClosure C_FontGetNominalGlyphFuncT) Source #

Wrap the callback into a `GClosure`.

mk_FontGetNominalGlyphFuncT :: C_FontGetNominalGlyphFuncT -> IO (FunPtr C_FontGetNominalGlyphFuncT) Source #

Generate a function pointer callable from C code, from a `C_FontGetNominalGlyphFuncT`.

noFontGetNominalGlyphFuncT :: Maybe FontGetNominalGlyphFuncT Source #

A convenience synonym for ``Nothing` :: `Maybe` `FontGetNominalGlyphFuncT``.

noFontGetNominalGlyphFuncT_WithClosures :: Maybe FontGetNominalGlyphFuncT_WithClosures Source #

A convenience synonym for ``Nothing` :: `Maybe` `FontGetNominalGlyphFuncT_WithClosures``.

wrap_FontGetNominalGlyphFuncT :: Maybe (Ptr (FunPtr C_FontGetNominalGlyphFuncT)) -> FontGetNominalGlyphFuncT_WithClosures -> C_FontGetNominalGlyphFuncT Source #

Wrap a `FontGetNominalGlyphFuncT` into a `C_FontGetNominalGlyphFuncT`.

## FontGetNominalGlyphsFuncT

type C_FontGetNominalGlyphsFuncT = Ptr FontT -> Ptr () -> Word32 -> Word32 -> Word32 -> Ptr Word32 -> Word32 -> Ptr () -> IO Word32 Source #

Type for the callback on the (unwrapped) C side.

type FontGetNominalGlyphsFuncT Source #

Arguments

= FontT | `font`: `FontT` to work upon
-> Ptr () | `fontData`: `font` user data pointer
-> Word32 | `count`: number of code points to query
-> Word32 | `firstUnicode`: The first Unicode code point to query
-> Word32 | `unicodeStride`: The stride between successive code points
-> Word32 | `glyphStride`: The stride between successive glyph IDs
-> IO (Word32, Word32) | Returns: the number of code points processed

A virtual method for the `FontFuncsT` of an `FontT` object.

This method should retrieve the nominal glyph IDs for a sequence of Unicode code points. Glyph IDs must be returned in a `hb_codepoint_t` output parameter.

type FontGetNominalGlyphsFuncT_WithClosures Source #

Arguments

= FontT | `font`: `FontT` to work upon
-> Ptr () | `fontData`: `font` user data pointer
-> Word32 | `count`: number of code points to query
-> Word32 | `firstUnicode`: The first Unicode code point to query
-> Word32 | `unicodeStride`: The stride between successive code points
-> Word32 | `glyphStride`: The stride between successive glyph IDs
-> Ptr () | `userData`: User data pointer passed by the caller
-> IO (Word32, Word32) | Returns: the number of code points processed

A virtual method for the `FontFuncsT` of an `FontT` object.

This method should retrieve the nominal glyph IDs for a sequence of Unicode code points. Glyph IDs must be returned in a `hb_codepoint_t` output parameter.

drop_closures_FontGetNominalGlyphsFuncT :: FontGetNominalGlyphsFuncT -> FontGetNominalGlyphsFuncT_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_FontGetNominalGlyphsFuncT Source #

Arguments

:: (HasCallStack, MonadIO m) |
=> FunPtr C_FontGetNominalGlyphsFuncT |
-> FontT | `font`: `FontT` to work upon
-> Ptr () | `fontData`: `font` user data pointer
-> Word32 | `count`: number of code points to query
-> Word32 | `firstUnicode`: The first Unicode code point to query
-> Word32 | `unicodeStride`: The stride between successive code points
-> Word32 | `glyphStride`: The stride between successive glyph IDs
-> Ptr () | `userData`: User data pointer passed by the caller
-> m (Word32, Word32) | Returns: the number of code points processed

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

genClosure_FontGetNominalGlyphsFuncT :: MonadIO m => FontGetNominalGlyphsFuncT -> m (GClosure C_FontGetNominalGlyphsFuncT) Source #

Wrap the callback into a `GClosure`.

mk_FontGetNominalGlyphsFuncT :: C_FontGetNominalGlyphsFuncT -> IO (FunPtr C_FontGetNominalGlyphsFuncT) Source #

Generate a function pointer callable from C code, from a `C_FontGetNominalGlyphsFuncT`.

noFontGetNominalGlyphsFuncT :: Maybe FontGetNominalGlyphsFuncT Source #

A convenience synonym for ``Nothing` :: `Maybe` `FontGetNominalGlyphsFuncT``.

noFontGetNominalGlyphsFuncT_WithClosures :: Maybe FontGetNominalGlyphsFuncT_WithClosures Source #

A convenience synonym for ``Nothing` :: `Maybe` `FontGetNominalGlyphsFuncT_WithClosures``.

wrap_FontGetNominalGlyphsFuncT :: Maybe (Ptr (FunPtr C_FontGetNominalGlyphsFuncT)) -> FontGetNominalGlyphsFuncT_WithClosures -> C_FontGetNominalGlyphsFuncT Source #

Wrap a `FontGetNominalGlyphsFuncT` into a `C_FontGetNominalGlyphsFuncT`.

## FontGetVariationGlyphFuncT

type C_FontGetVariationGlyphFuncT = Ptr FontT -> Ptr () -> Word32 -> Word32 -> Ptr Word32 -> Ptr () -> IO Int32 Source #

Type for the callback on the (unwrapped) C side.

type FontGetVariationGlyphFuncT Source #

Arguments

= FontT | `font`: `FontT` to work upon
-> Ptr () | `fontData`: `font` user data pointer
-> Word32 | `unicode`: The Unicode code point to query
-> Word32 | `variationSelector`: The variation-selector code point to query
-> IO (Int32, Word32) | Returns: `true` if data found, `false` otherwise

A virtual method for the `FontFuncsT` of an `FontT` object.

This method should retrieve the glyph ID for a specified Unicode code point followed by a specified Variation Selector code point. Glyph IDs must be returned in a `hb_codepoint_t` output parameter.

type FontGetVariationGlyphFuncT_WithClosures Source #

Arguments

= FontT | `font`: `FontT` to work upon
-> Ptr () | `fontData`: `font` user data pointer
-> Word32 | `unicode`: The Unicode code point to query
-> Word32 | `variationSelector`: The variation-selector code point to query
-> Ptr () | `userData`: User data pointer passed by the caller
-> IO (Int32, Word32) | Returns: `true` if data found, `false` otherwise

A virtual method for the `FontFuncsT` of an `FontT` object.

This method should retrieve the glyph ID for a specified Unicode code point followed by a specified Variation Selector code point. Glyph IDs must be returned in a `hb_codepoint_t` output parameter.

drop_closures_FontGetVariationGlyphFuncT :: FontGetVariationGlyphFuncT -> FontGetVariationGlyphFuncT_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_FontGetVariationGlyphFuncT Source #

Arguments

:: (HasCallStack, MonadIO m) |
=> FunPtr C_FontGetVariationGlyphFuncT |
-> FontT | `font`: `FontT` to work upon
-> Ptr () | `fontData`: `font` user data pointer
-> Word32 | `unicode`: The Unicode code point to query
-> Word32 | `variationSelector`: The variation-selector code point to query
-> Ptr () | `userData`: User data pointer passed by the caller
-> m (Int32, Word32) | Returns: `true` if data found, `false` otherwise

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

genClosure_FontGetVariationGlyphFuncT :: MonadIO m => FontGetVariationGlyphFuncT -> m (GClosure C_FontGetVariationGlyphFuncT) Source #

Wrap the callback into a `GClosure`.

mk_FontGetVariationGlyphFuncT :: C_FontGetVariationGlyphFuncT -> IO (FunPtr C_FontGetVariationGlyphFuncT) Source #

Generate a function pointer callable from C code, from a `C_FontGetVariationGlyphFuncT`.

noFontGetVariationGlyphFuncT :: Maybe FontGetVariationGlyphFuncT Source #

A convenience synonym for ``Nothing` :: `Maybe` `FontGetVariationGlyphFuncT``.

noFontGetVariationGlyphFuncT_WithClosures :: Maybe FontGetVariationGlyphFuncT_WithClosures Source #

A convenience synonym for ``Nothing` :: `Maybe` `FontGetVariationGlyphFuncT_WithClosures``.

wrap_FontGetVariationGlyphFuncT :: Maybe (Ptr (FunPtr C_FontGetVariationGlyphFuncT)) -> FontGetVariationGlyphFuncT_WithClosures -> C_FontGetVariationGlyphFuncT Source #

Wrap a `FontGetVariationGlyphFuncT` into a `C_FontGetVariationGlyphFuncT`.

## FontPaintGlyphFuncT

type C_FontPaintGlyphFuncT = Ptr FontT -> Ptr () -> Word32 -> Ptr PaintFuncsT -> Ptr () -> Word32 -> Word32 -> Ptr () -> IO Int32 Source #

Type for the callback on the (unwrapped) C side.

type FontPaintGlyphFuncT Source #

Arguments

= FontT | `font`: `FontT` to work upon
-> Ptr () | `fontData`: `font` user data pointer
-> Word32 | `glyph`: The glyph ID to query
-> PaintFuncsT | `paintFuncs`: The paint functions to use
-> Ptr () | `paintData`: The data accompanying the paint functions
-> Word32 | `paletteIndex`: The color palette to use
-> Word32 | `foreground`: The foreground color
-> IO Int32 |

Deprecated: (Since version 11.2.0)Use hb_font_paint_glyph_or_fail_func_t instead.

A virtual method for the `FontFuncsT` of an `FontT` object.

Since: 7.0.0

type FontPaintGlyphFuncT_WithClosures Source #

Arguments

= FontT | `font`: `FontT` to work upon
-> Ptr () | `fontData`: `font` user data pointer
-> Word32 | `glyph`: The glyph ID to query
-> PaintFuncsT | `paintFuncs`: The paint functions to use
-> Ptr () | `paintData`: The data accompanying the paint functions
-> Word32 | `paletteIndex`: The color palette to use
-> Word32 | `foreground`: The foreground color
-> Ptr () | `userData`: User data pointer passed by the caller
-> IO Int32 |

A virtual method for the `FontFuncsT` of an `FontT` object.

Since: 7.0.0

drop_closures_FontPaintGlyphFuncT :: FontPaintGlyphFuncT -> FontPaintGlyphFuncT_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_FontPaintGlyphFuncT Source #

Arguments

:: (HasCallStack, MonadIO m) |
=> FunPtr C_FontPaintGlyphFuncT |
-> FontT | `font`: `FontT` to work upon
-> Ptr () | `fontData`: `font` user data pointer
-> Word32 | `glyph`: The glyph ID to query
-> PaintFuncsT | `paintFuncs`: The paint functions to use
-> Ptr () | `paintData`: The data accompanying the paint functions
-> Word32 | `paletteIndex`: The color palette to use
-> Word32 | `foreground`: The foreground color
-> Ptr () | `userData`: User data pointer passed by the caller
-> m Int32 |

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

genClosure_FontPaintGlyphFuncT :: MonadIO m => FontPaintGlyphFuncT -> m (GClosure C_FontPaintGlyphFuncT) Source #

Wrap the callback into a `GClosure`.

mk_FontPaintGlyphFuncT :: C_FontPaintGlyphFuncT -> IO (FunPtr C_FontPaintGlyphFuncT) Source #

Generate a function pointer callable from C code, from a `C_FontPaintGlyphFuncT`.

noFontPaintGlyphFuncT :: Maybe FontPaintGlyphFuncT Source #

A convenience synonym for ``Nothing` :: `Maybe` `FontPaintGlyphFuncT``.

noFontPaintGlyphFuncT_WithClosures :: Maybe FontPaintGlyphFuncT_WithClosures Source #

A convenience synonym for ``Nothing` :: `Maybe` `FontPaintGlyphFuncT_WithClosures``.

wrap_FontPaintGlyphFuncT :: Maybe (Ptr (FunPtr C_FontPaintGlyphFuncT)) -> FontPaintGlyphFuncT_WithClosures -> C_FontPaintGlyphFuncT Source #

Wrap a `FontPaintGlyphFuncT` into a `C_FontPaintGlyphFuncT`.

## FontPaintGlyphOrFailFuncT

type C_FontPaintGlyphOrFailFuncT = Ptr FontT -> Ptr () -> Word32 -> Ptr PaintFuncsT -> Ptr () -> Word32 -> Word32 -> Ptr () -> IO Int32 Source #

Type for the callback on the (unwrapped) C side.

type FontPaintGlyphOrFailFuncT Source #

Arguments

= FontT | `font`: `FontT` to work upon
-> Ptr () | `fontData`: `font` user data pointer
-> Word32 | `glyph`: The glyph ID to query
-> PaintFuncsT | `paintFuncs`: The paint functions to use
-> Ptr () | `paintData`: The data accompanying the paint functions
-> Word32 | `paletteIndex`: The color palette to use
-> Word32 | `foreground`: The foreground color
-> IO Int32 | Returns: `true` if glyph was painted, `false` otherwise

A virtual method for the `FontFuncsT` of an `FontT` object.

Since: 11.2.0

type FontPaintGlyphOrFailFuncT_WithClosures Source #

Arguments

= FontT | `font`: `FontT` to work upon
-> Ptr () | `fontData`: `font` user data pointer
-> Word32 | `glyph`: The glyph ID to query
-> PaintFuncsT | `paintFuncs`: The paint functions to use
-> Ptr () | `paintData`: The data accompanying the paint functions
-> Word32 | `paletteIndex`: The color palette to use
-> Word32 | `foreground`: The foreground color
-> Ptr () | `userData`: User data pointer passed by the caller
-> IO Int32 | Returns: `true` if glyph was painted, `false` otherwise

A virtual method for the `FontFuncsT` of an `FontT` object.

Since: 11.2.0

drop_closures_FontPaintGlyphOrFailFuncT :: FontPaintGlyphOrFailFuncT -> FontPaintGlyphOrFailFuncT_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_FontPaintGlyphOrFailFuncT Source #

Arguments

:: (HasCallStack, MonadIO m) |
=> FunPtr C_FontPaintGlyphOrFailFuncT |
-> FontT | `font`: `FontT` to work upon
-> Ptr () | `fontData`: `font` user data pointer
-> Word32 | `glyph`: The glyph ID to query
-> PaintFuncsT | `paintFuncs`: The paint functions to use
-> Ptr () | `paintData`: The data accompanying the paint functions
-> Word32 | `paletteIndex`: The color palette to use
-> Word32 | `foreground`: The foreground color
-> Ptr () | `userData`: User data pointer passed by the caller
-> m Int32 | Returns: `true` if glyph was painted, `false` otherwise

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

genClosure_FontPaintGlyphOrFailFuncT :: MonadIO m => FontPaintGlyphOrFailFuncT -> m (GClosure C_FontPaintGlyphOrFailFuncT) Source #

Wrap the callback into a `GClosure`.

mk_FontPaintGlyphOrFailFuncT :: C_FontPaintGlyphOrFailFuncT -> IO (FunPtr C_FontPaintGlyphOrFailFuncT) Source #

Generate a function pointer callable from C code, from a `C_FontPaintGlyphOrFailFuncT`.

noFontPaintGlyphOrFailFuncT :: Maybe FontPaintGlyphOrFailFuncT Source #

A convenience synonym for ``Nothing` :: `Maybe` `FontPaintGlyphOrFailFuncT``.

noFontPaintGlyphOrFailFuncT_WithClosures :: Maybe FontPaintGlyphOrFailFuncT_WithClosures Source #

A convenience synonym for ``Nothing` :: `Maybe` `FontPaintGlyphOrFailFuncT_WithClosures``.

wrap_FontPaintGlyphOrFailFuncT :: Maybe (Ptr (FunPtr C_FontPaintGlyphOrFailFuncT)) -> FontPaintGlyphOrFailFuncT_WithClosures -> C_FontPaintGlyphOrFailFuncT Source #

Wrap a `FontPaintGlyphOrFailFuncT` into a `C_FontPaintGlyphOrFailFuncT`.

## GetTableTagsFuncT

type C_GetTableTagsFuncT = Ptr FaceT -> Word32 -> Ptr Word32 -> Ptr (Ptr Word32) -> Ptr () -> IO Word32 Source #

Type for the callback on the (unwrapped) C side.

type GetTableTagsFuncT Source #

Arguments

= FaceT | `face`: A face object
-> Word32 | `startOffset`: The index of first table tag to retrieve
-> IO (Word32, [Word32]) | Returns: Total number of tables, or zero if it is not possible to list

Callback function for `faceGetTableTags`.

Since: 10.0.0

type GetTableTagsFuncT_WithClosures Source #

Arguments

= FaceT | `face`: A face object
-> Word32 | `startOffset`: The index of first table tag to retrieve
-> Ptr () | `userData`: User data pointer passed by the caller
-> IO (Word32, [Word32]) | Returns: Total number of tables, or zero if it is not possible to list

Callback function for `faceGetTableTags`.

Since: 10.0.0

drop_closures_GetTableTagsFuncT :: GetTableTagsFuncT -> GetTableTagsFuncT_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_GetTableTagsFuncT Source #

Arguments

:: (HasCallStack, MonadIO m) |
=> FunPtr C_GetTableTagsFuncT |
-> FaceT | `face`: A face object
-> Word32 | `startOffset`: The index of first table tag to retrieve
-> Ptr () | `userData`: User data pointer passed by the caller
-> m (Word32, [Word32]) | Returns: Total number of tables, or zero if it is not possible to list

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

genClosure_GetTableTagsFuncT :: MonadIO m => GetTableTagsFuncT -> m (GClosure C_GetTableTagsFuncT) Source #

Wrap the callback into a `GClosure`.

mk_GetTableTagsFuncT :: C_GetTableTagsFuncT -> IO (FunPtr C_GetTableTagsFuncT) Source #

Generate a function pointer callable from C code, from a `C_GetTableTagsFuncT`.

noGetTableTagsFuncT :: Maybe GetTableTagsFuncT Source #

A convenience synonym for ``Nothing` :: `Maybe` `GetTableTagsFuncT``.

noGetTableTagsFuncT_WithClosures :: Maybe GetTableTagsFuncT_WithClosures Source #

A convenience synonym for ``Nothing` :: `Maybe` `GetTableTagsFuncT_WithClosures``.

wrap_GetTableTagsFuncT :: Maybe (Ptr (FunPtr C_GetTableTagsFuncT)) -> GetTableTagsFuncT_WithClosures -> C_GetTableTagsFuncT Source #

Wrap a `GetTableTagsFuncT` into a `C_GetTableTagsFuncT`.

## PaintColorFuncT

type C_PaintColorFuncT = Ptr PaintFuncsT -> Ptr () -> Int32 -> Word32 -> Ptr () -> IO () Source #

Type for the callback on the (unwrapped) C side.

type PaintColorFuncT Source #

Arguments

= PaintFuncsT | `funcs`: paint functions object
-> Ptr () | `paintData`: The data accompanying the paint functions in `fontPaintGlyph`
-> Int32 | `isForeground`: whether the color is the foreground
-> Word32 | `color`: The color to use, unpremultiplied
-> IO () |

A virtual method for the `PaintFuncsT` to paint a color everywhere within the current clip.

Since: 7.0.0

type PaintColorFuncT_WithClosures Source #

Arguments

= PaintFuncsT | `funcs`: paint functions object
-> Ptr () | `paintData`: The data accompanying the paint functions in `fontPaintGlyph`
-> Int32 | `isForeground`: whether the color is the foreground
-> Word32 | `color`: The color to use, unpremultiplied
-> Ptr () | `userData`: User data pointer passed to `paintFuncsSetColorFunc`
-> IO () |

A virtual method for the `PaintFuncsT` to paint a color everywhere within the current clip.

Since: 7.0.0

drop_closures_PaintColorFuncT :: PaintColorFuncT -> PaintColorFuncT_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_PaintColorFuncT Source #

Arguments

:: (HasCallStack, MonadIO m) |
=> FunPtr C_PaintColorFuncT |
-> PaintFuncsT | `funcs`: paint functions object
-> Ptr () | `paintData`: The data accompanying the paint functions in `fontPaintGlyph`
-> Int32 | `isForeground`: whether the color is the foreground
-> Word32 | `color`: The color to use, unpremultiplied
-> Ptr () | `userData`: User data pointer passed to `paintFuncsSetColorFunc`
-> m () |

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

genClosure_PaintColorFuncT :: MonadIO m => PaintColorFuncT -> m (GClosure C_PaintColorFuncT) Source #

Wrap the callback into a `GClosure`.

mk_PaintColorFuncT :: C_PaintColorFuncT -> IO (FunPtr C_PaintColorFuncT) Source #

Generate a function pointer callable from C code, from a `C_PaintColorFuncT`.

noPaintColorFuncT :: Maybe PaintColorFuncT Source #

A convenience synonym for ``Nothing` :: `Maybe` `PaintColorFuncT``.

noPaintColorFuncT_WithClosures :: Maybe PaintColorFuncT_WithClosures Source #

A convenience synonym for ``Nothing` :: `Maybe` `PaintColorFuncT_WithClosures``.

wrap_PaintColorFuncT :: Maybe (Ptr (FunPtr C_PaintColorFuncT)) -> PaintColorFuncT_WithClosures -> C_PaintColorFuncT Source #

Wrap a `PaintColorFuncT` into a `C_PaintColorFuncT`.

## PaintColorGlyphFuncT

type C_PaintColorGlyphFuncT = Ptr PaintFuncsT -> Ptr () -> Word32 -> Ptr FontT -> Ptr () -> IO Int32 Source #

Type for the callback on the (unwrapped) C side.

type PaintColorGlyphFuncT Source #

Arguments

= PaintFuncsT | `funcs`: paint functions object
-> Ptr () | `paintData`: The data accompanying the paint functions in `fontPaintGlyph`
-> Word32 | `glyph`: the glyph ID
-> FontT | `font`: the font
-> IO Int32 | Returns: `true` if the glyph was painted, `false` otherwise.

A virtual method for the `PaintFuncsT` to render a color glyph by glyph index.

Since: 8.2.0

type PaintColorGlyphFuncT_WithClosures Source #

Arguments

= PaintFuncsT | `funcs`: paint functions object
-> Ptr () | `paintData`: The data accompanying the paint functions in `fontPaintGlyph`
-> Word32 | `glyph`: the glyph ID
-> FontT | `font`: the font
-> Ptr () | `userData`: User data pointer passed to `paintFuncsSetColorGlyphFunc`
-> IO Int32 | Returns: `true` if the glyph was painted, `false` otherwise.

A virtual method for the `PaintFuncsT` to render a color glyph by glyph index.

Since: 8.2.0

drop_closures_PaintColorGlyphFuncT :: PaintColorGlyphFuncT -> PaintColorGlyphFuncT_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_PaintColorGlyphFuncT Source #

Arguments

:: (HasCallStack, MonadIO m) |
=> FunPtr C_PaintColorGlyphFuncT |
-> PaintFuncsT | `funcs`: paint functions object
-> Ptr () | `paintData`: The data accompanying the paint functions in `fontPaintGlyph`
-> Word32 | `glyph`: the glyph ID
-> FontT | `font`: the font
-> Ptr () | `userData`: User data pointer passed to `paintFuncsSetColorGlyphFunc`
-> m Int32 | Returns: `true` if the glyph was painted, `false` otherwise.

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

genClosure_PaintColorGlyphFuncT :: MonadIO m => PaintColorGlyphFuncT -> m (GClosure C_PaintColorGlyphFuncT) Source #

Wrap the callback into a `GClosure`.

mk_PaintColorGlyphFuncT :: C_PaintColorGlyphFuncT -> IO (FunPtr C_PaintColorGlyphFuncT) Source #

Generate a function pointer callable from C code, from a `C_PaintColorGlyphFuncT`.

noPaintColorGlyphFuncT :: Maybe PaintColorGlyphFuncT Source #

A convenience synonym for ``Nothing` :: `Maybe` `PaintColorGlyphFuncT``.

noPaintColorGlyphFuncT_WithClosures :: Maybe PaintColorGlyphFuncT_WithClosures Source #

A convenience synonym for ``Nothing` :: `Maybe` `PaintColorGlyphFuncT_WithClosures``.

wrap_PaintColorGlyphFuncT :: Maybe (Ptr (FunPtr C_PaintColorGlyphFuncT)) -> PaintColorGlyphFuncT_WithClosures -> C_PaintColorGlyphFuncT Source #

Wrap a `PaintColorGlyphFuncT` into a `C_PaintColorGlyphFuncT`.

## PaintCustomPaletteColorFuncT

type C_PaintCustomPaletteColorFuncT = Ptr PaintFuncsT -> Ptr () -> Word32 -> Ptr Word32 -> Ptr () -> IO Int32 Source #

Type for the callback on the (unwrapped) C side.

type PaintCustomPaletteColorFuncT Source #

Arguments

= PaintFuncsT | `funcs`: paint functions object
-> Ptr () | `paintData`: The data accompanying the paint functions in `fontPaintGlyph`
-> Word32 | `colorIndex`: the color index
-> IO (Int32, Word32) | Returns: `true` if found, `false` otherwise

A virtual method for the `PaintFuncsT` to fetch a color from the custom color palette.

Custom palette colors override the colors from the fonts selected color palette. It is not necessary to override all palette entries; for entries that should be taken from the font palette, return `false`.

This function might get called multiple times, but the custom palette is expected to remain unchanged for duration of a `fontPaintGlyph` call.

Since: 7.0.0

type PaintCustomPaletteColorFuncT_WithClosures Source #

Arguments

= PaintFuncsT | `funcs`: paint functions object
-> Ptr () | `paintData`: The data accompanying the paint functions in `fontPaintGlyph`
-> Word32 | `colorIndex`: the color index
-> Ptr () | `userData`: User data pointer passed to `paintFuncsSetPopGroupFunc`
-> IO (Int32, Word32) | Returns: `true` if found, `false` otherwise

A virtual method for the `PaintFuncsT` to fetch a color from the custom color palette.

Custom palette colors override the colors from the fonts selected color palette. It is not necessary to override all palette entries; for entries that should be taken from the font palette, return `false`.

This function might get called multiple times, but the custom palette is expected to remain unchanged for duration of a `fontPaintGlyph` call.

Since: 7.0.0

drop_closures_PaintCustomPaletteColorFuncT :: PaintCustomPaletteColorFuncT -> PaintCustomPaletteColorFuncT_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_PaintCustomPaletteColorFuncT Source #

Arguments

:: (HasCallStack, MonadIO m) |
=> FunPtr C_PaintCustomPaletteColorFuncT |
-> PaintFuncsT | `funcs`: paint functions object
-> Ptr () | `paintData`: The data accompanying the paint functions in `fontPaintGlyph`
-> Word32 | `colorIndex`: the color index
-> Ptr () | `userData`: User data pointer passed to `paintFuncsSetPopGroupFunc`
-> m (Int32, Word32) | Returns: `true` if found, `false` otherwise

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

genClosure_PaintCustomPaletteColorFuncT :: MonadIO m => PaintCustomPaletteColorFuncT -> m (GClosure C_PaintCustomPaletteColorFuncT) Source #

Wrap the callback into a `GClosure`.

mk_PaintCustomPaletteColorFuncT :: C_PaintCustomPaletteColorFuncT -> IO (FunPtr C_PaintCustomPaletteColorFuncT) Source #

Generate a function pointer callable from C code, from a `C_PaintCustomPaletteColorFuncT`.

noPaintCustomPaletteColorFuncT :: Maybe PaintCustomPaletteColorFuncT Source #

A convenience synonym for ``Nothing` :: `Maybe` `PaintCustomPaletteColorFuncT``.

noPaintCustomPaletteColorFuncT_WithClosures :: Maybe PaintCustomPaletteColorFuncT_WithClosures Source #

A convenience synonym for ``Nothing` :: `Maybe` `PaintCustomPaletteColorFuncT_WithClosures``.

wrap_PaintCustomPaletteColorFuncT :: Maybe (Ptr (FunPtr C_PaintCustomPaletteColorFuncT)) -> PaintCustomPaletteColorFuncT_WithClosures -> C_PaintCustomPaletteColorFuncT Source #

Wrap a `PaintCustomPaletteColorFuncT` into a `C_PaintCustomPaletteColorFuncT`.

## PaintImageFuncT

type C_PaintImageFuncT = Ptr PaintFuncsT -> Ptr () -> Ptr BlobT -> Word32 -> Word32 -> Word32 -> CFloat -> Ptr GlyphExtentsT -> Ptr () -> IO Int32 Source #

Type for the callback on the (unwrapped) C side.

type PaintImageFuncT Source #

Arguments

= PaintFuncsT | `funcs`: paint functions object
-> Ptr () | `paintData`: The data accompanying the paint functions in `fontPaintGlyph`
-> BlobT | `image`: the image data
-> Word32 | `width`: width of the raster image in pixels, or 0
-> Word32 | `height`: height of the raster image in pixels, or 0
-> Word32 | `format`: the image format as a tag
-> Float | `slant`: Deprecated. Always set to 0.0.
-> Maybe GlyphExtentsT | `extents`: glyph extents for desired rendering
-> IO Int32 | Returns: Whether the operation was successful.

A virtual method for the `PaintFuncsT` to paint a glyph image.

This method is called for glyphs with image blobs in the CBDT, sbix or SVG tables. The `format` identifies the kind of data that is contained in `image`. Possible values include `HB_PAINT_IMAGE_FORMAT_PNG`, `HB_PAINT_IMAGE_FORMAT_SVG` and `HB_PAINT_IMAGE_FORMAT_BGRA`.

The image dimensions and glyph extents are provided if available, and should be used to size and position the image.

Since: 7.0.0

type PaintImageFuncT_WithClosures Source #

Arguments

= PaintFuncsT | `funcs`: paint functions object
-> Ptr () | `paintData`: The data accompanying the paint functions in `fontPaintGlyph`
-> BlobT | `image`: the image data
-> Word32 | `width`: width of the raster image in pixels, or 0
-> Word32 | `height`: height of the raster image in pixels, or 0
-> Word32 | `format`: the image format as a tag
-> Float | `slant`: Deprecated. Always set to 0.0.
-> Maybe GlyphExtentsT | `extents`: glyph extents for desired rendering
-> Ptr () | `userData`: User data pointer passed to `paintFuncsSetImageFunc`
-> IO Int32 | Returns: Whether the operation was successful.

A virtual method for the `PaintFuncsT` to paint a glyph image.

This method is called for glyphs with image blobs in the CBDT, sbix or SVG tables. The `format` identifies the kind of data that is contained in `image`. Possible values include `HB_PAINT_IMAGE_FORMAT_PNG`, `HB_PAINT_IMAGE_FORMAT_SVG` and `HB_PAINT_IMAGE_FORMAT_BGRA`.

The image dimensions and glyph extents are provided if available, and should be used to size and position the image.

Since: 7.0.0

drop_closures_PaintImageFuncT :: PaintImageFuncT -> PaintImageFuncT_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_PaintImageFuncT Source #

Arguments

:: (HasCallStack, MonadIO m) |
=> FunPtr C_PaintImageFuncT |
-> PaintFuncsT | `funcs`: paint functions object
-> Ptr () | `paintData`: The data accompanying the paint functions in `fontPaintGlyph`
-> BlobT | `image`: the image data
-> Word32 | `width`: width of the raster image in pixels, or 0
-> Word32 | `height`: height of the raster image in pixels, or 0
-> Word32 | `format`: the image format as a tag
-> Float | `slant`: Deprecated. Always set to 0.0.
-> Maybe GlyphExtentsT | `extents`: glyph extents for desired rendering
-> Ptr () | `userData`: User data pointer passed to `paintFuncsSetImageFunc`
-> m Int32 | Returns: Whether the operation was successful.

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

genClosure_PaintImageFuncT :: MonadIO m => PaintImageFuncT -> m (GClosure C_PaintImageFuncT) Source #

Wrap the callback into a `GClosure`.

mk_PaintImageFuncT :: C_PaintImageFuncT -> IO (FunPtr C_PaintImageFuncT) Source #

Generate a function pointer callable from C code, from a `C_PaintImageFuncT`.

noPaintImageFuncT :: Maybe PaintImageFuncT Source #

A convenience synonym for ``Nothing` :: `Maybe` `PaintImageFuncT``.

noPaintImageFuncT_WithClosures :: Maybe PaintImageFuncT_WithClosures Source #

A convenience synonym for ``Nothing` :: `Maybe` `PaintImageFuncT_WithClosures``.

wrap_PaintImageFuncT :: Maybe (Ptr (FunPtr C_PaintImageFuncT)) -> PaintImageFuncT_WithClosures -> C_PaintImageFuncT Source #

Wrap a `PaintImageFuncT` into a `C_PaintImageFuncT`.

## PaintLinearGradientFuncT

type C_PaintLinearGradientFuncT = Ptr PaintFuncsT -> Ptr () -> Ptr ColorLineT -> CFloat -> CFloat -> CFloat -> CFloat -> CFloat -> CFloat -> Ptr () -> IO () Source #

Type for the callback on the (unwrapped) C side.

type PaintLinearGradientFuncT Source #

Arguments

= PaintFuncsT | `funcs`: paint functions object
-> Ptr () | `paintData`: The data accompanying the paint functions in `fontPaintGlyph`
-> ColorLineT | `colorLine`: Color information for the gradient
-> Float | `x0`: X coordinate of the first point
-> Float | `y0`: Y coordinate of the first point
-> Float | `x1`: X coordinate of the second point
-> Float | `y1`: Y coordinate of the second point
-> Float | `x2`: X coordinate of the third point
-> Float | `y2`: Y coordinate of the third point
-> IO () |

A virtual method for the `PaintFuncsT` to paint a linear gradient everywhere within the current clip.

The `colorLine` object contains information about the colors of the gradients. It is only valid for the duration of the callback, you cannot keep it around.

The coordinates of the points are interpreted according to the current transform.

See the OpenType spec COLR section for details on how the points define the direction of the gradient, and how to interpret the `colorLine`.

Since: 7.0.0

type PaintLinearGradientFuncT_WithClosures Source #

Arguments

= PaintFuncsT | `funcs`: paint functions object
-> Ptr () | `paintData`: The data accompanying the paint functions in `fontPaintGlyph`
-> ColorLineT | `colorLine`: Color information for the gradient
-> Float | `x0`: X coordinate of the first point
-> Float | `y0`: Y coordinate of the first point
-> Float | `x1`: X coordinate of the second point
-> Float | `y1`: Y coordinate of the second point
-> Float | `x2`: X coordinate of the third point
-> Float | `y2`: Y coordinate of the third point
-> Ptr () | `userData`: User data pointer passed to `paintFuncsSetLinearGradientFunc`
-> IO () |

A virtual method for the `PaintFuncsT` to paint a linear gradient everywhere within the current clip.

The `colorLine` object contains information about the colors of the gradients. It is only valid for the duration of the callback, you cannot keep it around.

The coordinates of the points are interpreted according to the current transform.

See the OpenType spec COLR section for details on how the points define the direction of the gradient, and how to interpret the `colorLine`.

Since: 7.0.0

drop_closures_PaintLinearGradientFuncT :: PaintLinearGradientFuncT -> PaintLinearGradientFuncT_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_PaintLinearGradientFuncT Source #

Arguments

:: (HasCallStack, MonadIO m) |
=> FunPtr C_PaintLinearGradientFuncT |
-> PaintFuncsT | `funcs`: paint functions object
-> Ptr () | `paintData`: The data accompanying the paint functions in `fontPaintGlyph`
-> ColorLineT | `colorLine`: Color information for the gradient
-> Float | `x0`: X coordinate of the first point
-> Float | `y0`: Y coordinate of the first point
-> Float | `x1`: X coordinate of the second point
-> Float | `y1`: Y coordinate of the second point
-> Float | `x2`: X coordinate of the third point
-> Float | `y2`: Y coordinate of the third point
-> Ptr () | `userData`: User data pointer passed to `paintFuncsSetLinearGradientFunc`
-> m () |

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

genClosure_PaintLinearGradientFuncT :: MonadIO m => PaintLinearGradientFuncT -> m (GClosure C_PaintLinearGradientFuncT) Source #

Wrap the callback into a `GClosure`.

mk_PaintLinearGradientFuncT :: C_PaintLinearGradientFuncT -> IO (FunPtr C_PaintLinearGradientFuncT) Source #

Generate a function pointer callable from C code, from a `C_PaintLinearGradientFuncT`.

noPaintLinearGradientFuncT :: Maybe PaintLinearGradientFuncT Source #

A convenience synonym for ``Nothing` :: `Maybe` `PaintLinearGradientFuncT``.

noPaintLinearGradientFuncT_WithClosures :: Maybe PaintLinearGradientFuncT_WithClosures Source #

A convenience synonym for ``Nothing` :: `Maybe` `PaintLinearGradientFuncT_WithClosures``.

wrap_PaintLinearGradientFuncT :: Maybe (Ptr (FunPtr C_PaintLinearGradientFuncT)) -> PaintLinearGradientFuncT_WithClosures -> C_PaintLinearGradientFuncT Source #

Wrap a `PaintLinearGradientFuncT` into a `C_PaintLinearGradientFuncT`.

## PaintPopClipFuncT

type C_PaintPopClipFuncT = Ptr PaintFuncsT -> Ptr () -> Ptr () -> IO () Source #

Type for the callback on the (unwrapped) C side.

type PaintPopClipFuncT Source #

Arguments

= PaintFuncsT | `funcs`: paint functions object
-> Ptr () | `paintData`: The data accompanying the paint functions in `fontPaintGlyph`
-> IO () |

A virtual method for the `PaintFuncsT` to undo the effect of a prior call to the `hb_paint_funcs_push_clip_glyph_func_t` or `hb_paint_funcs_push_clip_rectangle_func_t` vfuncs.

Since: 7.0.0

type PaintPopClipFuncT_WithClosures Source #

Arguments

= PaintFuncsT | `funcs`: paint functions object
-> Ptr () | `paintData`: The data accompanying the paint functions in `fontPaintGlyph`
-> Ptr () | `userData`: User data pointer passed to `paintFuncsSetPopClipFunc`
-> IO () |

A virtual method for the `PaintFuncsT` to undo the effect of a prior call to the `hb_paint_funcs_push_clip_glyph_func_t` or `hb_paint_funcs_push_clip_rectangle_func_t` vfuncs.

Since: 7.0.0

drop_closures_PaintPopClipFuncT :: PaintPopClipFuncT -> PaintPopClipFuncT_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_PaintPopClipFuncT Source #

Arguments

:: (HasCallStack, MonadIO m) |
=> FunPtr C_PaintPopClipFuncT |
-> PaintFuncsT | `funcs`: paint functions object
-> Ptr () | `paintData`: The data accompanying the paint functions in `fontPaintGlyph`
-> Ptr () | `userData`: User data pointer passed to `paintFuncsSetPopClipFunc`
-> m () |

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

genClosure_PaintPopClipFuncT :: MonadIO m => PaintPopClipFuncT -> m (GClosure C_PaintPopClipFuncT) Source #

Wrap the callback into a `GClosure`.

mk_PaintPopClipFuncT :: C_PaintPopClipFuncT -> IO (FunPtr C_PaintPopClipFuncT) Source #

Generate a function pointer callable from C code, from a `C_PaintPopClipFuncT`.

noPaintPopClipFuncT :: Maybe PaintPopClipFuncT Source #

A convenience synonym for ``Nothing` :: `Maybe` `PaintPopClipFuncT``.

noPaintPopClipFuncT_WithClosures :: Maybe PaintPopClipFuncT_WithClosures Source #

A convenience synonym for ``Nothing` :: `Maybe` `PaintPopClipFuncT_WithClosures``.

wrap_PaintPopClipFuncT :: Maybe (Ptr (FunPtr C_PaintPopClipFuncT)) -> PaintPopClipFuncT_WithClosures -> C_PaintPopClipFuncT Source #

Wrap a `PaintPopClipFuncT` into a `C_PaintPopClipFuncT`.

## PaintPopGroupFuncT

type C_PaintPopGroupFuncT = Ptr PaintFuncsT -> Ptr () -> CUInt -> Ptr () -> IO () Source #

Type for the callback on the (unwrapped) C side.

type PaintPopGroupFuncT Source #

Arguments

= PaintFuncsT | `funcs`: paint functions object
-> Ptr () | `paintData`: The data accompanying the paint functions in `fontPaintGlyph`
-> PaintCompositeModeT | `mode`: the compositing mode to use
-> IO () |

A virtual method for the `PaintFuncsT` to undo the effect of a prior call to the `hb_paint_funcs_push_group_func_t` vfunc.

This call stops the redirection to the intermediate surface, and then composites it on the previous surface, using the compositing mode passed to this call.

Since: 7.0.0

type PaintPopGroupFuncT_WithClosures Source #

Arguments

= PaintFuncsT | `funcs`: paint functions object
-> Ptr () | `paintData`: The data accompanying the paint functions in `fontPaintGlyph`
-> PaintCompositeModeT | `mode`: the compositing mode to use
-> Ptr () | `userData`: User data pointer passed to `paintFuncsSetPopGroupFunc`
-> IO () |

A virtual method for the `PaintFuncsT` to undo the effect of a prior call to the `hb_paint_funcs_push_group_func_t` vfunc.

This call stops the redirection to the intermediate surface, and then composites it on the previous surface, using the compositing mode passed to this call.

Since: 7.0.0

drop_closures_PaintPopGroupFuncT :: PaintPopGroupFuncT -> PaintPopGroupFuncT_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_PaintPopGroupFuncT Source #

Arguments

:: (HasCallStack, MonadIO m) |
=> FunPtr C_PaintPopGroupFuncT |
-> PaintFuncsT | `funcs`: paint functions object
-> Ptr () | `paintData`: The data accompanying the paint functions in `fontPaintGlyph`
-> PaintCompositeModeT | `mode`: the compositing mode to use
-> Ptr () | `userData`: User data pointer passed to `paintFuncsSetPopGroupFunc`
-> m () |

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

genClosure_PaintPopGroupFuncT :: MonadIO m => PaintPopGroupFuncT -> m (GClosure C_PaintPopGroupFuncT) Source #

Wrap the callback into a `GClosure`.

mk_PaintPopGroupFuncT :: C_PaintPopGroupFuncT -> IO (FunPtr C_PaintPopGroupFuncT) Source #

Generate a function pointer callable from C code, from a `C_PaintPopGroupFuncT`.

noPaintPopGroupFuncT :: Maybe PaintPopGroupFuncT Source #

A convenience synonym for ``Nothing` :: `Maybe` `PaintPopGroupFuncT``.

noPaintPopGroupFuncT_WithClosures :: Maybe PaintPopGroupFuncT_WithClosures Source #

A convenience synonym for ``Nothing` :: `Maybe` `PaintPopGroupFuncT_WithClosures``.

wrap_PaintPopGroupFuncT :: Maybe (Ptr (FunPtr C_PaintPopGroupFuncT)) -> PaintPopGroupFuncT_WithClosures -> C_PaintPopGroupFuncT Source #

Wrap a `PaintPopGroupFuncT` into a `C_PaintPopGroupFuncT`.

## PaintPopTransformFuncT

type C_PaintPopTransformFuncT = Ptr PaintFuncsT -> Ptr () -> Ptr () -> IO () Source #

Type for the callback on the (unwrapped) C side.

type PaintPopTransformFuncT Source #

Arguments

= PaintFuncsT | `funcs`: paint functions object
-> Ptr () | `paintData`: The data accompanying the paint functions in `fontPaintGlyph`
-> IO () |

A virtual method for the `PaintFuncsT` to undo the effect of a prior call to the `hb_paint_funcs_push_transform_func_t` vfunc.

Since: 7.0.0

type PaintPopTransformFuncT_WithClosures Source #

Arguments

= PaintFuncsT | `funcs`: paint functions object
-> Ptr () | `paintData`: The data accompanying the paint functions in `fontPaintGlyph`
-> Ptr () | `userData`: User data pointer passed to `paintFuncsSetPopTransformFunc`
-> IO () |

A virtual method for the `PaintFuncsT` to undo the effect of a prior call to the `hb_paint_funcs_push_transform_func_t` vfunc.

Since: 7.0.0

drop_closures_PaintPopTransformFuncT :: PaintPopTransformFuncT -> PaintPopTransformFuncT_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_PaintPopTransformFuncT Source #

Arguments

:: (HasCallStack, MonadIO m) |
=> FunPtr C_PaintPopTransformFuncT |
-> PaintFuncsT | `funcs`: paint functions object
-> Ptr () | `paintData`: The data accompanying the paint functions in `fontPaintGlyph`
-> Ptr () | `userData`: User data pointer passed to `paintFuncsSetPopTransformFunc`
-> m () |

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

genClosure_PaintPopTransformFuncT :: MonadIO m => PaintPopTransformFuncT -> m (GClosure C_PaintPopTransformFuncT) Source #

Wrap the callback into a `GClosure`.

mk_PaintPopTransformFuncT :: C_PaintPopTransformFuncT -> IO (FunPtr C_PaintPopTransformFuncT) Source #

Generate a function pointer callable from C code, from a `C_PaintPopTransformFuncT`.

noPaintPopTransformFuncT :: Maybe PaintPopTransformFuncT Source #

A convenience synonym for ``Nothing` :: `Maybe` `PaintPopTransformFuncT``.

noPaintPopTransformFuncT_WithClosures :: Maybe PaintPopTransformFuncT_WithClosures Source #

A convenience synonym for ``Nothing` :: `Maybe` `PaintPopTransformFuncT_WithClosures``.

wrap_PaintPopTransformFuncT :: Maybe (Ptr (FunPtr C_PaintPopTransformFuncT)) -> PaintPopTransformFuncT_WithClosures -> C_PaintPopTransformFuncT Source #

Wrap a `PaintPopTransformFuncT` into a `C_PaintPopTransformFuncT`.

## PaintPushClipGlyphFuncT

type C_PaintPushClipGlyphFuncT = Ptr PaintFuncsT -> Ptr () -> Word32 -> Ptr FontT -> Ptr () -> IO () Source #

Type for the callback on the (unwrapped) C side.

type PaintPushClipGlyphFuncT Source #

Arguments

= PaintFuncsT | `funcs`: paint functions object
-> Ptr () | `paintData`: The data accompanying the paint functions in `fontPaintGlyph`
-> Word32 | `glyph`: the glyph ID
-> FontT | `font`: the font
-> IO () |

A virtual method for the `PaintFuncsT` to clip subsequent paint calls to the outline of a glyph.

The coordinates of the glyph outline are expected in the current `font` scale (ie. the results of calling `fontDrawGlyph` with `font`). The outline is transformed by the current transform.

This clip is applied in addition to the current clip, and remains in effect until a matching call to the `hb_paint_funcs_pop_clip_func_t` vfunc.

Since: 7.0.0

type PaintPushClipGlyphFuncT_WithClosures Source #

Arguments

= PaintFuncsT | `funcs`: paint functions object
-> Ptr () | `paintData`: The data accompanying the paint functions in `fontPaintGlyph`
-> Word32 | `glyph`: the glyph ID
-> FontT | `font`: the font
-> Ptr () | `userData`: User data pointer passed to `paintFuncsSetPushClipGlyphFunc`
-> IO () |

A virtual method for the `PaintFuncsT` to clip subsequent paint calls to the outline of a glyph.

The coordinates of the glyph outline are expected in the current `font` scale (ie. the results of calling `fontDrawGlyph` with `font`). The outline is transformed by the current transform.

This clip is applied in addition to the current clip, and remains in effect until a matching call to the `hb_paint_funcs_pop_clip_func_t` vfunc.

Since: 7.0.0

drop_closures_PaintPushClipGlyphFuncT :: PaintPushClipGlyphFuncT -> PaintPushClipGlyphFuncT_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_PaintPushClipGlyphFuncT Source #

Arguments

:: (HasCallStack, MonadIO m) |
=> FunPtr C_PaintPushClipGlyphFuncT |
-> PaintFuncsT | `funcs`: paint functions object
-> Ptr () | `paintData`: The data accompanying the paint functions in `fontPaintGlyph`
-> Word32 | `glyph`: the glyph ID
-> FontT | `font`: the font
-> Ptr () | `userData`: User data pointer passed to `paintFuncsSetPushClipGlyphFunc`
-> m () |

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

genClosure_PaintPushClipGlyphFuncT :: MonadIO m => PaintPushClipGlyphFuncT -> m (GClosure C_PaintPushClipGlyphFuncT) Source #

Wrap the callback into a `GClosure`.

mk_PaintPushClipGlyphFuncT :: C_PaintPushClipGlyphFuncT -> IO (FunPtr C_PaintPushClipGlyphFuncT) Source #

Generate a function pointer callable from C code, from a `C_PaintPushClipGlyphFuncT`.

noPaintPushClipGlyphFuncT :: Maybe PaintPushClipGlyphFuncT Source #

A convenience synonym for ``Nothing` :: `Maybe` `PaintPushClipGlyphFuncT``.

noPaintPushClipGlyphFuncT_WithClosures :: Maybe PaintPushClipGlyphFuncT_WithClosures Source #

A convenience synonym for ``Nothing` :: `Maybe` `PaintPushClipGlyphFuncT_WithClosures``.

wrap_PaintPushClipGlyphFuncT :: Maybe (Ptr (FunPtr C_PaintPushClipGlyphFuncT)) -> PaintPushClipGlyphFuncT_WithClosures -> C_PaintPushClipGlyphFuncT Source #

Wrap a `PaintPushClipGlyphFuncT` into a `C_PaintPushClipGlyphFuncT`.

## PaintPushClipRectangleFuncT

type C_PaintPushClipRectangleFuncT = Ptr PaintFuncsT -> Ptr () -> CFloat -> CFloat -> CFloat -> CFloat -> Ptr () -> IO () Source #

Type for the callback on the (unwrapped) C side.

type PaintPushClipRectangleFuncT Source #

Arguments

= PaintFuncsT | `funcs`: paint functions object
-> Ptr () | `paintData`: The data accompanying the paint functions in `fontPaintGlyph`
-> Float | `xmin`: min X for the rectangle
-> Float | `ymin`: min Y for the rectangle
-> Float | `xmax`: max X for the rectangle
-> Float | `ymax`: max Y for the rectangle
-> IO () |

A virtual method for the `PaintFuncsT` to clip subsequent paint calls to a rectangle.

The coordinates of the rectangle are interpreted according to the current transform.

This clip is applied in addition to the current clip, and remains in effect until a matching call to the `hb_paint_funcs_pop_clip_func_t` vfunc.

Since: 7.0.0

type PaintPushClipRectangleFuncT_WithClosures Source #

Arguments

= PaintFuncsT | `funcs`: paint functions object
-> Ptr () | `paintData`: The data accompanying the paint functions in `fontPaintGlyph`
-> Float | `xmin`: min X for the rectangle
-> Float | `ymin`: min Y for the rectangle
-> Float | `xmax`: max X for the rectangle
-> Float | `ymax`: max Y for the rectangle
-> Ptr () | `userData`: User data pointer passed to `paintFuncsSetPushClipRectangleFunc`
-> IO () |

A virtual method for the `PaintFuncsT` to clip subsequent paint calls to a rectangle.

The coordinates of the rectangle are interpreted according to the current transform.

This clip is applied in addition to the current clip, and remains in effect until a matching call to the `hb_paint_funcs_pop_clip_func_t` vfunc.

Since: 7.0.0

drop_closures_PaintPushClipRectangleFuncT :: PaintPushClipRectangleFuncT -> PaintPushClipRectangleFuncT_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_PaintPushClipRectangleFuncT Source #

Arguments

:: (HasCallStack, MonadIO m) |
=> FunPtr C_PaintPushClipRectangleFuncT |
-> PaintFuncsT | `funcs`: paint functions object
-> Ptr () | `paintData`: The data accompanying the paint functions in `fontPaintGlyph`
-> Float | `xmin`: min X for the rectangle
-> Float | `ymin`: min Y for the rectangle
-> Float | `xmax`: max X for the rectangle
-> Float | `ymax`: max Y for the rectangle
-> Ptr () | `userData`: User data pointer passed to `paintFuncsSetPushClipRectangleFunc`
-> m () |

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

genClosure_PaintPushClipRectangleFuncT :: MonadIO m => PaintPushClipRectangleFuncT -> m (GClosure C_PaintPushClipRectangleFuncT) Source #

Wrap the callback into a `GClosure`.

mk_PaintPushClipRectangleFuncT :: C_PaintPushClipRectangleFuncT -> IO (FunPtr C_PaintPushClipRectangleFuncT) Source #

Generate a function pointer callable from C code, from a `C_PaintPushClipRectangleFuncT`.

noPaintPushClipRectangleFuncT :: Maybe PaintPushClipRectangleFuncT Source #

A convenience synonym for ``Nothing` :: `Maybe` `PaintPushClipRectangleFuncT``.

noPaintPushClipRectangleFuncT_WithClosures :: Maybe PaintPushClipRectangleFuncT_WithClosures Source #

A convenience synonym for ``Nothing` :: `Maybe` `PaintPushClipRectangleFuncT_WithClosures``.

wrap_PaintPushClipRectangleFuncT :: Maybe (Ptr (FunPtr C_PaintPushClipRectangleFuncT)) -> PaintPushClipRectangleFuncT_WithClosures -> C_PaintPushClipRectangleFuncT Source #

Wrap a `PaintPushClipRectangleFuncT` into a `C_PaintPushClipRectangleFuncT`.

## PaintPushGroupFuncT

type C_PaintPushGroupFuncT = Ptr PaintFuncsT -> Ptr () -> Ptr () -> IO () Source #

Type for the callback on the (unwrapped) C side.

type PaintPushGroupFuncT Source #

Arguments

= PaintFuncsT | `funcs`: paint functions object
-> Ptr () | `paintData`: The data accompanying the paint functions in `fontPaintGlyph`
-> IO () |

A virtual method for the `PaintFuncsT` to use an intermediate surface for subsequent paint calls.

The drawing will be redirected to an intermediate surface until a matching call to the `hb_paint_funcs_pop_group_func_t` vfunc.

Since: 7.0.0

type PaintPushGroupFuncT_WithClosures Source #

Arguments

= PaintFuncsT | `funcs`: paint functions object
-> Ptr () | `paintData`: The data accompanying the paint functions in `fontPaintGlyph`
-> Ptr () | `userData`: User data pointer passed to `paintFuncsSetPushGroupFunc`
-> IO () |

A virtual method for the `PaintFuncsT` to use an intermediate surface for subsequent paint calls.

The drawing will be redirected to an intermediate surface until a matching call to the `hb_paint_funcs_pop_group_func_t` vfunc.

Since: 7.0.0

drop_closures_PaintPushGroupFuncT :: PaintPushGroupFuncT -> PaintPushGroupFuncT_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_PaintPushGroupFuncT Source #

Arguments

:: (HasCallStack, MonadIO m) |
=> FunPtr C_PaintPushGroupFuncT |
-> PaintFuncsT | `funcs`: paint functions object
-> Ptr () | `paintData`: The data accompanying the paint functions in `fontPaintGlyph`
-> Ptr () | `userData`: User data pointer passed to `paintFuncsSetPushGroupFunc`
-> m () |

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

genClosure_PaintPushGroupFuncT :: MonadIO m => PaintPushGroupFuncT -> m (GClosure C_PaintPushGroupFuncT) Source #

Wrap the callback into a `GClosure`.

mk_PaintPushGroupFuncT :: C_PaintPushGroupFuncT -> IO (FunPtr C_PaintPushGroupFuncT) Source #

Generate a function pointer callable from C code, from a `C_PaintPushGroupFuncT`.

noPaintPushGroupFuncT :: Maybe PaintPushGroupFuncT Source #

A convenience synonym for ``Nothing` :: `Maybe` `PaintPushGroupFuncT``.

noPaintPushGroupFuncT_WithClosures :: Maybe PaintPushGroupFuncT_WithClosures Source #

A convenience synonym for ``Nothing` :: `Maybe` `PaintPushGroupFuncT_WithClosures``.

wrap_PaintPushGroupFuncT :: Maybe (Ptr (FunPtr C_PaintPushGroupFuncT)) -> PaintPushGroupFuncT_WithClosures -> C_PaintPushGroupFuncT Source #

Wrap a `PaintPushGroupFuncT` into a `C_PaintPushGroupFuncT`.

## PaintPushTransformFuncT

type C_PaintPushTransformFuncT = Ptr PaintFuncsT -> Ptr () -> CFloat -> CFloat -> CFloat -> CFloat -> CFloat -> CFloat -> Ptr () -> IO () Source #

Type for the callback on the (unwrapped) C side.

type PaintPushTransformFuncT Source #

Arguments

= PaintFuncsT | `funcs`: paint functions object
-> Ptr () | `paintData`: The data accompanying the paint functions in `fontPaintGlyph`
-> Float | `xx`: xx component of the transform matrix
-> Float | `yx`: yx component of the transform matrix
-> Float | `xy`: xy component of the transform matrix
-> Float | `yy`: yy component of the transform matrix
-> Float | `dx`: dx component of the transform matrix
-> Float | `dy`: dy component of the transform matrix
-> IO () |

A virtual method for the `PaintFuncsT` to apply a transform to subsequent paint calls.

This transform is applied after the current transform, and remains in effect until a matching call to the `hb_paint_funcs_pop_transform_func_t` vfunc.

Since: 7.0.0

type PaintPushTransformFuncT_WithClosures Source #

Arguments

= PaintFuncsT | `funcs`: paint functions object
-> Ptr () | `paintData`: The data accompanying the paint functions in `fontPaintGlyph`
-> Float | `xx`: xx component of the transform matrix
-> Float | `yx`: yx component of the transform matrix
-> Float | `xy`: xy component of the transform matrix
-> Float | `yy`: yy component of the transform matrix
-> Float | `dx`: dx component of the transform matrix
-> Float | `dy`: dy component of the transform matrix
-> Ptr () | `userData`: User data pointer passed to `paintFuncsSetPushTransformFunc`
-> IO () |

A virtual method for the `PaintFuncsT` to apply a transform to subsequent paint calls.

This transform is applied after the current transform, and remains in effect until a matching call to the `hb_paint_funcs_pop_transform_func_t` vfunc.

Since: 7.0.0

drop_closures_PaintPushTransformFuncT :: PaintPushTransformFuncT -> PaintPushTransformFuncT_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_PaintPushTransformFuncT Source #

Arguments

:: (HasCallStack, MonadIO m) |
=> FunPtr C_PaintPushTransformFuncT |
-> PaintFuncsT | `funcs`: paint functions object
-> Ptr () | `paintData`: The data accompanying the paint functions in `fontPaintGlyph`
-> Float | `xx`: xx component of the transform matrix
-> Float | `yx`: yx component of the transform matrix
-> Float | `xy`: xy component of the transform matrix
-> Float | `yy`: yy component of the transform matrix
-> Float | `dx`: dx component of the transform matrix
-> Float | `dy`: dy component of the transform matrix
-> Ptr () | `userData`: User data pointer passed to `paintFuncsSetPushTransformFunc`
-> m () |

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

genClosure_PaintPushTransformFuncT :: MonadIO m => PaintPushTransformFuncT -> m (GClosure C_PaintPushTransformFuncT) Source #

Wrap the callback into a `GClosure`.

mk_PaintPushTransformFuncT :: C_PaintPushTransformFuncT -> IO (FunPtr C_PaintPushTransformFuncT) Source #

Generate a function pointer callable from C code, from a `C_PaintPushTransformFuncT`.

noPaintPushTransformFuncT :: Maybe PaintPushTransformFuncT Source #

A convenience synonym for ``Nothing` :: `Maybe` `PaintPushTransformFuncT``.

noPaintPushTransformFuncT_WithClosures :: Maybe PaintPushTransformFuncT_WithClosures Source #

A convenience synonym for ``Nothing` :: `Maybe` `PaintPushTransformFuncT_WithClosures``.

wrap_PaintPushTransformFuncT :: Maybe (Ptr (FunPtr C_PaintPushTransformFuncT)) -> PaintPushTransformFuncT_WithClosures -> C_PaintPushTransformFuncT Source #

Wrap a `PaintPushTransformFuncT` into a `C_PaintPushTransformFuncT`.

## PaintRadialGradientFuncT

type C_PaintRadialGradientFuncT = Ptr PaintFuncsT -> Ptr () -> Ptr ColorLineT -> CFloat -> CFloat -> CFloat -> CFloat -> CFloat -> CFloat -> Ptr () -> IO () Source #

Type for the callback on the (unwrapped) C side.

type PaintRadialGradientFuncT Source #

Arguments

= PaintFuncsT | `funcs`: paint functions object
-> Ptr () | `paintData`: The data accompanying the paint functions in `fontPaintGlyph`
-> ColorLineT | `colorLine`: Color information for the gradient
-> Float | `x0`: X coordinate of the first circle's center
-> Float | `y0`: Y coordinate of the first circle's center
-> Float | `r0`: radius of the first circle
-> Float | `x1`: X coordinate of the second circle's center
-> Float | `y1`: Y coordinate of the second circle's center
-> Float | `r1`: radius of the second circle
-> IO () |

A virtual method for the `PaintFuncsT` to paint a radial gradient everywhere within the current clip.

The `colorLine` object contains information about the colors of the gradients. It is only valid for the duration of the callback, you cannot keep it around.

The coordinates of the points are interpreted according to the current transform.

See the OpenType spec COLR section for details on how the points define the direction of the gradient, and how to interpret the `colorLine`.

Since: 7.0.0

type PaintRadialGradientFuncT_WithClosures Source #

Arguments

= PaintFuncsT | `funcs`: paint functions object
-> Ptr () | `paintData`: The data accompanying the paint functions in `fontPaintGlyph`
-> ColorLineT | `colorLine`: Color information for the gradient
-> Float | `x0`: X coordinate of the first circle's center
-> Float | `y0`: Y coordinate of the first circle's center
-> Float | `r0`: radius of the first circle
-> Float | `x1`: X coordinate of the second circle's center
-> Float | `y1`: Y coordinate of the second circle's center
-> Float | `r1`: radius of the second circle
-> Ptr () | `userData`: User data pointer passed to `paintFuncsSetRadialGradientFunc`
-> IO () |

A virtual method for the `PaintFuncsT` to paint a radial gradient everywhere within the current clip.

The `colorLine` object contains information about the colors of the gradients. It is only valid for the duration of the callback, you cannot keep it around.

The coordinates of the points are interpreted according to the current transform.

See the OpenType spec COLR section for details on how the points define the direction of the gradient, and how to interpret the `colorLine`.

Since: 7.0.0

drop_closures_PaintRadialGradientFuncT :: PaintRadialGradientFuncT -> PaintRadialGradientFuncT_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_PaintRadialGradientFuncT Source #

Arguments

:: (HasCallStack, MonadIO m) |
=> FunPtr C_PaintRadialGradientFuncT |
-> PaintFuncsT | `funcs`: paint functions object
-> Ptr () | `paintData`: The data accompanying the paint functions in `fontPaintGlyph`
-> ColorLineT | `colorLine`: Color information for the gradient
-> Float | `x0`: X coordinate of the first circle's center
-> Float | `y0`: Y coordinate of the first circle's center
-> Float | `r0`: radius of the first circle
-> Float | `x1`: X coordinate of the second circle's center
-> Float | `y1`: Y coordinate of the second circle's center
-> Float | `r1`: radius of the second circle
-> Ptr () | `userData`: User data pointer passed to `paintFuncsSetRadialGradientFunc`
-> m () |

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

genClosure_PaintRadialGradientFuncT :: MonadIO m => PaintRadialGradientFuncT -> m (GClosure C_PaintRadialGradientFuncT) Source #

Wrap the callback into a `GClosure`.

mk_PaintRadialGradientFuncT :: C_PaintRadialGradientFuncT -> IO (FunPtr C_PaintRadialGradientFuncT) Source #

Generate a function pointer callable from C code, from a `C_PaintRadialGradientFuncT`.

noPaintRadialGradientFuncT :: Maybe PaintRadialGradientFuncT Source #

A convenience synonym for ``Nothing` :: `Maybe` `PaintRadialGradientFuncT``.

noPaintRadialGradientFuncT_WithClosures :: Maybe PaintRadialGradientFuncT_WithClosures Source #

A convenience synonym for ``Nothing` :: `Maybe` `PaintRadialGradientFuncT_WithClosures``.

wrap_PaintRadialGradientFuncT :: Maybe (Ptr (FunPtr C_PaintRadialGradientFuncT)) -> PaintRadialGradientFuncT_WithClosures -> C_PaintRadialGradientFuncT Source #

Wrap a `PaintRadialGradientFuncT` into a `C_PaintRadialGradientFuncT`.

## PaintSweepGradientFuncT

type C_PaintSweepGradientFuncT = Ptr PaintFuncsT -> Ptr () -> Ptr ColorLineT -> CFloat -> CFloat -> CFloat -> CFloat -> Ptr () -> IO () Source #

Type for the callback on the (unwrapped) C side.

type PaintSweepGradientFuncT Source #

Arguments

= PaintFuncsT | `funcs`: paint functions object
-> Ptr () | `paintData`: The data accompanying the paint functions in `fontPaintGlyph`
-> ColorLineT | `colorLine`: Color information for the gradient
-> Float | `x0`: X coordinate of the circle's center
-> Float | `y0`: Y coordinate of the circle's center
-> Float | `startAngle`: the start angle, in radians
-> Float | `endAngle`: the end angle, in radians
-> IO () |

A virtual method for the `PaintFuncsT` to paint a sweep gradient everywhere within the current clip.

The `colorLine` object contains information about the colors of the gradients. It is only valid for the duration of the callback, you cannot keep it around.

The coordinates of the points are interpreted according to the current transform.

See the OpenType spec COLR section for details on how the points define the direction of the gradient, and how to interpret the `colorLine`.

Since: 7.0.0

type PaintSweepGradientFuncT_WithClosures Source #

Arguments

= PaintFuncsT | `funcs`: paint functions object
-> Ptr () | `paintData`: The data accompanying the paint functions in `fontPaintGlyph`
-> ColorLineT | `colorLine`: Color information for the gradient
-> Float | `x0`: X coordinate of the circle's center
-> Float | `y0`: Y coordinate of the circle's center
-> Float | `startAngle`: the start angle, in radians
-> Float | `endAngle`: the end angle, in radians
-> Ptr () | `userData`: User data pointer passed to `paintFuncsSetSweepGradientFunc`
-> IO () |

A virtual method for the `PaintFuncsT` to paint a sweep gradient everywhere within the current clip.

The `colorLine` object contains information about the colors of the gradients. It is only valid for the duration of the callback, you cannot keep it around.

The coordinates of the points are interpreted according to the current transform.

See the OpenType spec COLR section for details on how the points define the direction of the gradient, and how to interpret the `colorLine`.

Since: 7.0.0

drop_closures_PaintSweepGradientFuncT :: PaintSweepGradientFuncT -> PaintSweepGradientFuncT_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_PaintSweepGradientFuncT Source #

Arguments

:: (HasCallStack, MonadIO m) |
=> FunPtr C_PaintSweepGradientFuncT |
-> PaintFuncsT | `funcs`: paint functions object
-> Ptr () | `paintData`: The data accompanying the paint functions in `fontPaintGlyph`
-> ColorLineT | `colorLine`: Color information for the gradient
-> Float | `x0`: X coordinate of the circle's center
-> Float | `y0`: Y coordinate of the circle's center
-> Float | `startAngle`: the start angle, in radians
-> Float | `endAngle`: the end angle, in radians
-> Ptr () | `userData`: User data pointer passed to `paintFuncsSetSweepGradientFunc`
-> m () |

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

genClosure_PaintSweepGradientFuncT :: MonadIO m => PaintSweepGradientFuncT -> m (GClosure C_PaintSweepGradientFuncT) Source #

Wrap the callback into a `GClosure`.

mk_PaintSweepGradientFuncT :: C_PaintSweepGradientFuncT -> IO (FunPtr C_PaintSweepGradientFuncT) Source #

Generate a function pointer callable from C code, from a `C_PaintSweepGradientFuncT`.

noPaintSweepGradientFuncT :: Maybe PaintSweepGradientFuncT Source #

A convenience synonym for ``Nothing` :: `Maybe` `PaintSweepGradientFuncT``.

noPaintSweepGradientFuncT_WithClosures :: Maybe PaintSweepGradientFuncT_WithClosures Source #

A convenience synonym for ``Nothing` :: `Maybe` `PaintSweepGradientFuncT_WithClosures``.

wrap_PaintSweepGradientFuncT :: Maybe (Ptr (FunPtr C_PaintSweepGradientFuncT)) -> PaintSweepGradientFuncT_WithClosures -> C_PaintSweepGradientFuncT Source #

Wrap a `PaintSweepGradientFuncT` into a `C_PaintSweepGradientFuncT`.

## ReferenceTableFuncT

type C_ReferenceTableFuncT = Ptr FaceT -> Word32 -> Ptr () -> IO (Ptr BlobT) Source #

Type for the callback on the (unwrapped) C side.

type ReferenceTableFuncT Source #

Arguments

= FaceT | `face`: an `FaceT` to reference table for
-> Word32 | `tag`: the tag of the table to reference
-> IO BlobT | Returns: A pointer to the `tag` table within `face` or `NULL` if the table is not found or cannot be referenced.

Callback function for `faceCreateForTables`. The `tag` is the tag of the table to reference, and the special tag `HB_TAG_NONE` is used to reference the blob of the face itself. If referencing the face blob is not possible, it is recommended to set hb_get_table_tags_func_t on the `face` to allow `faceReferenceBlob` to create a face blob out of individual table blobs.

Since: 0.9.2

type ReferenceTableFuncT_WithClosures Source #

Arguments

= FaceT | `face`: an `FaceT` to reference table for
-> Word32 | `tag`: the tag of the table to reference
-> Ptr () | `userData`: User data pointer passed by the caller
-> IO BlobT | Returns: A pointer to the `tag` table within `face` or `NULL` if the table is not found or cannot be referenced.

Callback function for `faceCreateForTables`. The `tag` is the tag of the table to reference, and the special tag `HB_TAG_NONE` is used to reference the blob of the face itself. If referencing the face blob is not possible, it is recommended to set hb_get_table_tags_func_t on the `face` to allow `faceReferenceBlob` to create a face blob out of individual table blobs.

Since: 0.9.2

drop_closures_ReferenceTableFuncT :: ReferenceTableFuncT -> ReferenceTableFuncT_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_ReferenceTableFuncT Source #

Arguments

:: (HasCallStack, MonadIO m) |
=> FunPtr C_ReferenceTableFuncT |
-> FaceT | `face`: an `FaceT` to reference table for
-> Word32 | `tag`: the tag of the table to reference
-> Ptr () | `userData`: User data pointer passed by the caller
-> m BlobT | Returns: A pointer to the `tag` table within `face` or `NULL` if the table is not found or cannot be referenced.

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

genClosure_ReferenceTableFuncT :: MonadIO m => ReferenceTableFuncT -> m (GClosure C_ReferenceTableFuncT) Source #

Wrap the callback into a `GClosure`.

mk_ReferenceTableFuncT :: C_ReferenceTableFuncT -> IO (FunPtr C_ReferenceTableFuncT) Source #

Generate a function pointer callable from C code, from a `C_ReferenceTableFuncT`.

noReferenceTableFuncT :: Maybe ReferenceTableFuncT Source #

A convenience synonym for ``Nothing` :: `Maybe` `ReferenceTableFuncT``.

noReferenceTableFuncT_WithClosures :: Maybe ReferenceTableFuncT_WithClosures Source #

A convenience synonym for ``Nothing` :: `Maybe` `ReferenceTableFuncT_WithClosures``.

wrap_ReferenceTableFuncT :: Maybe (Ptr (FunPtr C_ReferenceTableFuncT)) -> ReferenceTableFuncT_WithClosures -> C_ReferenceTableFuncT Source #

Wrap a `ReferenceTableFuncT` into a `C_ReferenceTableFuncT`.

## UnicodeCombiningClassFuncT

type C_UnicodeCombiningClassFuncT = Ptr UnicodeFuncsT -> Word32 -> Ptr () -> IO CUInt Source #

Type for the callback on the (unwrapped) C side.

type UnicodeCombiningClassFuncT Source #

Arguments

= UnicodeFuncsT | `ufuncs`: A Unicode-functions structure
-> Word32 | `unicode`: The code point to query
-> IO UnicodeCombiningClassT | Returns: The `UnicodeCombiningClassT` of `unicode`

A virtual method for the `UnicodeFuncsT` structure.

This method should retrieve the Canonical Combining Class (ccc) property for a specified Unicode code point.

type UnicodeCombiningClassFuncT_WithClosures Source #

Arguments

= UnicodeFuncsT | `ufuncs`: A Unicode-functions structure
-> Word32 | `unicode`: The code point to query
-> Ptr () | `userData`: User data pointer passed by the caller
-> IO UnicodeCombiningClassT | Returns: The `UnicodeCombiningClassT` of `unicode`

A virtual method for the `UnicodeFuncsT` structure.

This method should retrieve the Canonical Combining Class (ccc) property for a specified Unicode code point.

drop_closures_UnicodeCombiningClassFuncT :: UnicodeCombiningClassFuncT -> UnicodeCombiningClassFuncT_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_UnicodeCombiningClassFuncT Source #

Arguments

:: (HasCallStack, MonadIO m) |
=> FunPtr C_UnicodeCombiningClassFuncT |
-> UnicodeFuncsT | `ufuncs`: A Unicode-functions structure
-> Word32 | `unicode`: The code point to query
-> Ptr () | `userData`: User data pointer passed by the caller
-> m UnicodeCombiningClassT | Returns: The `UnicodeCombiningClassT` of `unicode`

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

genClosure_UnicodeCombiningClassFuncT :: MonadIO m => UnicodeCombiningClassFuncT -> m (GClosure C_UnicodeCombiningClassFuncT) Source #

Wrap the callback into a `GClosure`.

mk_UnicodeCombiningClassFuncT :: C_UnicodeCombiningClassFuncT -> IO (FunPtr C_UnicodeCombiningClassFuncT) Source #

Generate a function pointer callable from C code, from a `C_UnicodeCombiningClassFuncT`.

noUnicodeCombiningClassFuncT :: Maybe UnicodeCombiningClassFuncT Source #

A convenience synonym for ``Nothing` :: `Maybe` `UnicodeCombiningClassFuncT``.

noUnicodeCombiningClassFuncT_WithClosures :: Maybe UnicodeCombiningClassFuncT_WithClosures Source #

A convenience synonym for ``Nothing` :: `Maybe` `UnicodeCombiningClassFuncT_WithClosures``.

wrap_UnicodeCombiningClassFuncT :: Maybe (Ptr (FunPtr C_UnicodeCombiningClassFuncT)) -> UnicodeCombiningClassFuncT_WithClosures -> C_UnicodeCombiningClassFuncT Source #

Wrap a `UnicodeCombiningClassFuncT` into a `C_UnicodeCombiningClassFuncT`.

## UnicodeComposeFuncT

type C_UnicodeComposeFuncT = Ptr UnicodeFuncsT -> Word32 -> Word32 -> Ptr Word32 -> Ptr () -> IO Int32 Source #

Type for the callback on the (unwrapped) C side.

type UnicodeComposeFuncT Source #

Arguments

= UnicodeFuncsT | `ufuncs`: A Unicode-functions structure
-> Word32 | `a`: The first code point to compose
-> Word32 | `b`: The second code point to compose
-> IO (Int32, Word32) | Returns: `true` is `a`,`b` composed, `false` otherwise

A virtual method for the `UnicodeFuncsT` structure.

This method should compose a sequence of two input Unicode code points by canonical equivalence, returning the composed code point in a `hb_codepoint_t` output parameter (if successful). The method must return an `hb_bool_t` indicating the success of the composition.

type UnicodeComposeFuncT_WithClosures Source #

Arguments

= UnicodeFuncsT | `ufuncs`: A Unicode-functions structure
-> Word32 | `a`: The first code point to compose
-> Word32 | `b`: The second code point to compose
-> Ptr () | `userData`: user data pointer passed by the caller
-> IO (Int32, Word32) | Returns: `true` is `a`,`b` composed, `false` otherwise

A virtual method for the `UnicodeFuncsT` structure.

This method should compose a sequence of two input Unicode code points by canonical equivalence, returning the composed code point in a `hb_codepoint_t` output parameter (if successful). The method must return an `hb_bool_t` indicating the success of the composition.

drop_closures_UnicodeComposeFuncT :: UnicodeComposeFuncT -> UnicodeComposeFuncT_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_UnicodeComposeFuncT Source #

Arguments

:: (HasCallStack, MonadIO m) |
=> FunPtr C_UnicodeComposeFuncT |
-> UnicodeFuncsT | `ufuncs`: A Unicode-functions structure
-> Word32 | `a`: The first code point to compose
-> Word32 | `b`: The second code point to compose
-> Ptr () | `userData`: user data pointer passed by the caller
-> m (Int32, Word32) | Returns: `true` is `a`,`b` composed, `false` otherwise

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

genClosure_UnicodeComposeFuncT :: MonadIO m => UnicodeComposeFuncT -> m (GClosure C_UnicodeComposeFuncT) Source #

Wrap the callback into a `GClosure`.

mk_UnicodeComposeFuncT :: C_UnicodeComposeFuncT -> IO (FunPtr C_UnicodeComposeFuncT) Source #

Generate a function pointer callable from C code, from a `C_UnicodeComposeFuncT`.

noUnicodeComposeFuncT :: Maybe UnicodeComposeFuncT Source #

A convenience synonym for ``Nothing` :: `Maybe` `UnicodeComposeFuncT``.

noUnicodeComposeFuncT_WithClosures :: Maybe UnicodeComposeFuncT_WithClosures Source #

A convenience synonym for ``Nothing` :: `Maybe` `UnicodeComposeFuncT_WithClosures``.

wrap_UnicodeComposeFuncT :: Maybe (Ptr (FunPtr C_UnicodeComposeFuncT)) -> UnicodeComposeFuncT_WithClosures -> C_UnicodeComposeFuncT Source #

Wrap a `UnicodeComposeFuncT` into a `C_UnicodeComposeFuncT`.

## UnicodeDecomposeCompatibilityFuncT

type C_UnicodeDecomposeCompatibilityFuncT = Ptr UnicodeFuncsT -> Word32 -> Word32 -> Ptr () -> IO Word32 Source #

Type for the callback on the (unwrapped) C side.

type UnicodeDecomposeCompatibilityFuncT Source #

Arguments

= UnicodeFuncsT | `ufuncs`: a Unicode function structure
-> Word32 | `u`: codepoint to decompose
-> Word32 | `decomposed`: address of codepoint array (of length `UNICODE_MAX_DECOMPOSITION_LEN`) to write decomposition into
-> IO Word32 | Returns: number of codepoints in the full compatibility decomposition of `u`, or 0 if no decomposition available.

Deprecated: (Since version 2.0.0)

Fully decompose `u` to its Unicode compatibility decomposition. The codepoints of the decomposition will be written to `decomposed`. The complete length of the decomposition will be returned.

If `u` has no compatibility decomposition, zero should be returned.

The Unicode standard guarantees that a buffer of length `UNICODE_MAX_DECOMPOSITION_LEN` codepoints will always be sufficient for any compatibility decomposition plus an terminating value of 0. Consequently, `decompose` must be allocated by the caller to be at least this length. Implementations of this function type must ensure that they do not write past the provided array.

type UnicodeDecomposeCompatibilityFuncT_WithClosures Source #

Arguments

= UnicodeFuncsT | `ufuncs`: a Unicode function structure
-> Word32 | `u`: codepoint to decompose
-> Word32 | `decomposed`: address of codepoint array (of length `UNICODE_MAX_DECOMPOSITION_LEN`) to write decomposition into
-> Ptr () | `userData`: user data pointer as passed to `unicodeFuncsSetDecomposeCompatibilityFunc`
-> IO Word32 | Returns: number of codepoints in the full compatibility decomposition of `u`, or 0 if no decomposition available.

Fully decompose `u` to its Unicode compatibility decomposition. The codepoints of the decomposition will be written to `decomposed`. The complete length of the decomposition will be returned.

If `u` has no compatibility decomposition, zero should be returned.

The Unicode standard guarantees that a buffer of length `UNICODE_MAX_DECOMPOSITION_LEN` codepoints will always be sufficient for any compatibility decomposition plus an terminating value of 0. Consequently, `decompose` must be allocated by the caller to be at least this length. Implementations of this function type must ensure that they do not write past the provided array.

drop_closures_UnicodeDecomposeCompatibilityFuncT :: UnicodeDecomposeCompatibilityFuncT -> UnicodeDecomposeCompatibilityFuncT_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_UnicodeDecomposeCompatibilityFuncT Source #

Arguments

:: (HasCallStack, MonadIO m) |
=> FunPtr C_UnicodeDecomposeCompatibilityFuncT |
-> UnicodeFuncsT | `ufuncs`: a Unicode function structure
-> Word32 | `u`: codepoint to decompose
-> Word32 | `decomposed`: address of codepoint array (of length `UNICODE_MAX_DECOMPOSITION_LEN`) to write decomposition into
-> Ptr () | `userData`: user data pointer as passed to `unicodeFuncsSetDecomposeCompatibilityFunc`
-> m Word32 | Returns: number of codepoints in the full compatibility decomposition of `u`, or 0 if no decomposition available.

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

genClosure_UnicodeDecomposeCompatibilityFuncT :: MonadIO m => UnicodeDecomposeCompatibilityFuncT -> m (GClosure C_UnicodeDecomposeCompatibilityFuncT) Source #

Wrap the callback into a `GClosure`.

mk_UnicodeDecomposeCompatibilityFuncT :: C_UnicodeDecomposeCompatibilityFuncT -> IO (FunPtr C_UnicodeDecomposeCompatibilityFuncT) Source #

Generate a function pointer callable from C code, from a `C_UnicodeDecomposeCompatibilityFuncT`.

noUnicodeDecomposeCompatibilityFuncT :: Maybe UnicodeDecomposeCompatibilityFuncT Source #

A convenience synonym for ``Nothing` :: `Maybe` `UnicodeDecomposeCompatibilityFuncT``.

noUnicodeDecomposeCompatibilityFuncT_WithClosures :: Maybe UnicodeDecomposeCompatibilityFuncT_WithClosures Source #

A convenience synonym for ``Nothing` :: `Maybe` `UnicodeDecomposeCompatibilityFuncT_WithClosures``.

wrap_UnicodeDecomposeCompatibilityFuncT :: Maybe (Ptr (FunPtr C_UnicodeDecomposeCompatibilityFuncT)) -> UnicodeDecomposeCompatibilityFuncT_WithClosures -> C_UnicodeDecomposeCompatibilityFuncT Source #

Wrap a `UnicodeDecomposeCompatibilityFuncT` into a `C_UnicodeDecomposeCompatibilityFuncT`.

## UnicodeDecomposeFuncT

type C_UnicodeDecomposeFuncT = Ptr UnicodeFuncsT -> Word32 -> Ptr Word32 -> Ptr Word32 -> Ptr () -> IO Int32 Source #

Type for the callback on the (unwrapped) C side.

type UnicodeDecomposeFuncT Source #

Arguments

= UnicodeFuncsT | `ufuncs`: A Unicode-functions structure
-> Word32 | `ab`: The code point to decompose
-> IO (Int32, Word32, Word32) | Returns: `true` if `ab` decomposed, `false` otherwise

A virtual method for the `UnicodeFuncsT` structure.

This method should decompose an input Unicode code point, returning the two decomposed code points in `hb_codepoint_t` output parameters (if successful). The method must return an `hb_bool_t` indicating the success of the composition.

type UnicodeDecomposeFuncT_WithClosures Source #

Arguments

= UnicodeFuncsT | `ufuncs`: A Unicode-functions structure
-> Word32 | `ab`: The code point to decompose
-> Ptr () | `userData`: user data pointer passed by the caller
-> IO (Int32, Word32, Word32) | Returns: `true` if `ab` decomposed, `false` otherwise

A virtual method for the `UnicodeFuncsT` structure.

This method should decompose an input Unicode code point, returning the two decomposed code points in `hb_codepoint_t` output parameters (if successful). The method must return an `hb_bool_t` indicating the success of the composition.

drop_closures_UnicodeDecomposeFuncT :: UnicodeDecomposeFuncT -> UnicodeDecomposeFuncT_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_UnicodeDecomposeFuncT Source #

Arguments

:: (HasCallStack, MonadIO m) |
=> FunPtr C_UnicodeDecomposeFuncT |
-> UnicodeFuncsT | `ufuncs`: A Unicode-functions structure
-> Word32 | `ab`: The code point to decompose
-> Ptr () | `userData`: user data pointer passed by the caller
-> m (Int32, Word32, Word32) | Returns: `true` if `ab` decomposed, `false` otherwise

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

genClosure_UnicodeDecomposeFuncT :: MonadIO m => UnicodeDecomposeFuncT -> m (GClosure C_UnicodeDecomposeFuncT) Source #

Wrap the callback into a `GClosure`.

mk_UnicodeDecomposeFuncT :: C_UnicodeDecomposeFuncT -> IO (FunPtr C_UnicodeDecomposeFuncT) Source #

Generate a function pointer callable from C code, from a `C_UnicodeDecomposeFuncT`.

noUnicodeDecomposeFuncT :: Maybe UnicodeDecomposeFuncT Source #

A convenience synonym for ``Nothing` :: `Maybe` `UnicodeDecomposeFuncT``.

noUnicodeDecomposeFuncT_WithClosures :: Maybe UnicodeDecomposeFuncT_WithClosures Source #

A convenience synonym for ``Nothing` :: `Maybe` `UnicodeDecomposeFuncT_WithClosures``.

wrap_UnicodeDecomposeFuncT :: Maybe (Ptr (FunPtr C_UnicodeDecomposeFuncT)) -> UnicodeDecomposeFuncT_WithClosures -> C_UnicodeDecomposeFuncT Source #

Wrap a `UnicodeDecomposeFuncT` into a `C_UnicodeDecomposeFuncT`.

## UnicodeEastasianWidthFuncT

type C_UnicodeEastasianWidthFuncT = Ptr UnicodeFuncsT -> Word32 -> Ptr () -> IO Word32 Source #

Type for the callback on the (unwrapped) C side.

type UnicodeEastasianWidthFuncT Source #

Arguments

= UnicodeFuncsT | `ufuncs`: A Unicode-functions structure
-> Word32 | `unicode`: The code point to query
-> IO Word32 |

Deprecated: (Since version 2.0.0)

A virtual method for the `UnicodeFuncsT` structure.

type UnicodeEastasianWidthFuncT_WithClosures Source #

Arguments

= UnicodeFuncsT | `ufuncs`: A Unicode-functions structure
-> Word32 | `unicode`: The code point to query
-> Ptr () | `userData`: User data pointer passed by the caller
-> IO Word32 |

A virtual method for the `UnicodeFuncsT` structure.

drop_closures_UnicodeEastasianWidthFuncT :: UnicodeEastasianWidthFuncT -> UnicodeEastasianWidthFuncT_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_UnicodeEastasianWidthFuncT Source #

Arguments

:: (HasCallStack, MonadIO m) |
=> FunPtr C_UnicodeEastasianWidthFuncT |
-> UnicodeFuncsT | `ufuncs`: A Unicode-functions structure
-> Word32 | `unicode`: The code point to query
-> Ptr () | `userData`: User data pointer passed by the caller
-> m Word32 |

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

genClosure_UnicodeEastasianWidthFuncT :: MonadIO m => UnicodeEastasianWidthFuncT -> m (GClosure C_UnicodeEastasianWidthFuncT) Source #

Wrap the callback into a `GClosure`.

mk_UnicodeEastasianWidthFuncT :: C_UnicodeEastasianWidthFuncT -> IO (FunPtr C_UnicodeEastasianWidthFuncT) Source #

Generate a function pointer callable from C code, from a `C_UnicodeEastasianWidthFuncT`.

noUnicodeEastasianWidthFuncT :: Maybe UnicodeEastasianWidthFuncT Source #

A convenience synonym for ``Nothing` :: `Maybe` `UnicodeEastasianWidthFuncT``.

noUnicodeEastasianWidthFuncT_WithClosures :: Maybe UnicodeEastasianWidthFuncT_WithClosures Source #

A convenience synonym for ``Nothing` :: `Maybe` `UnicodeEastasianWidthFuncT_WithClosures``.

wrap_UnicodeEastasianWidthFuncT :: Maybe (Ptr (FunPtr C_UnicodeEastasianWidthFuncT)) -> UnicodeEastasianWidthFuncT_WithClosures -> C_UnicodeEastasianWidthFuncT Source #

Wrap a `UnicodeEastasianWidthFuncT` into a `C_UnicodeEastasianWidthFuncT`.

## UnicodeGeneralCategoryFuncT

type C_UnicodeGeneralCategoryFuncT = Ptr UnicodeFuncsT -> Word32 -> Ptr () -> IO CUInt Source #

Type for the callback on the (unwrapped) C side.

type UnicodeGeneralCategoryFuncT Source #

Arguments

= UnicodeFuncsT | `ufuncs`: A Unicode-functions structure
-> Word32 | `unicode`: The code point to query
-> IO UnicodeGeneralCategoryT | Returns: The `UnicodeGeneralCategoryT` of `unicode`

A virtual method for the `UnicodeFuncsT` structure.

This method should retrieve the General Category property for a specified Unicode code point.

type UnicodeGeneralCategoryFuncT_WithClosures Source #

Arguments

= UnicodeFuncsT | `ufuncs`: A Unicode-functions structure
-> Word32 | `unicode`: The code point to query
-> Ptr () | `userData`: User data pointer passed by the caller
-> IO UnicodeGeneralCategoryT | Returns: The `UnicodeGeneralCategoryT` of `unicode`

A virtual method for the `UnicodeFuncsT` structure.

This method should retrieve the General Category property for a specified Unicode code point.

drop_closures_UnicodeGeneralCategoryFuncT :: UnicodeGeneralCategoryFuncT -> UnicodeGeneralCategoryFuncT_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_UnicodeGeneralCategoryFuncT Source #

Arguments

:: (HasCallStack, MonadIO m) |
=> FunPtr C_UnicodeGeneralCategoryFuncT |
-> UnicodeFuncsT | `ufuncs`: A Unicode-functions structure
-> Word32 | `unicode`: The code point to query
-> Ptr () | `userData`: User data pointer passed by the caller
-> m UnicodeGeneralCategoryT | Returns: The `UnicodeGeneralCategoryT` of `unicode`

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

genClosure_UnicodeGeneralCategoryFuncT :: MonadIO m => UnicodeGeneralCategoryFuncT -> m (GClosure C_UnicodeGeneralCategoryFuncT) Source #

Wrap the callback into a `GClosure`.

mk_UnicodeGeneralCategoryFuncT :: C_UnicodeGeneralCategoryFuncT -> IO (FunPtr C_UnicodeGeneralCategoryFuncT) Source #

Generate a function pointer callable from C code, from a `C_UnicodeGeneralCategoryFuncT`.

noUnicodeGeneralCategoryFuncT :: Maybe UnicodeGeneralCategoryFuncT Source #

A convenience synonym for ``Nothing` :: `Maybe` `UnicodeGeneralCategoryFuncT``.

noUnicodeGeneralCategoryFuncT_WithClosures :: Maybe UnicodeGeneralCategoryFuncT_WithClosures Source #

A convenience synonym for ``Nothing` :: `Maybe` `UnicodeGeneralCategoryFuncT_WithClosures``.

wrap_UnicodeGeneralCategoryFuncT :: Maybe (Ptr (FunPtr C_UnicodeGeneralCategoryFuncT)) -> UnicodeGeneralCategoryFuncT_WithClosures -> C_UnicodeGeneralCategoryFuncT Source #

Wrap a `UnicodeGeneralCategoryFuncT` into a `C_UnicodeGeneralCategoryFuncT`.

## UnicodeMirroringFuncT

type C_UnicodeMirroringFuncT = Ptr UnicodeFuncsT -> Word32 -> Ptr () -> IO Word32 Source #

Type for the callback on the (unwrapped) C side.

type UnicodeMirroringFuncT Source #

Arguments

= UnicodeFuncsT | `ufuncs`: A Unicode-functions structure
-> Word32 | `unicode`: The code point to query
-> IO Word32 | Returns: The `hb_codepoint_t` of the Mirroring Glyph for `unicode`

A virtual method for the `UnicodeFuncsT` structure.

This method should retrieve the Bi-Directional Mirroring Glyph code point for a specified Unicode code point.

<note>Note: If a code point does not have a specified Bi-Directional Mirroring Glyph defined, the method should return the original code point.</note>

type UnicodeMirroringFuncT_WithClosures Source #

Arguments

= UnicodeFuncsT | `ufuncs`: A Unicode-functions structure
-> Word32 | `unicode`: The code point to query
-> Ptr () | `userData`: User data pointer passed by the caller
-> IO Word32 | Returns: The `hb_codepoint_t` of the Mirroring Glyph for `unicode`

A virtual method for the `UnicodeFuncsT` structure.

This method should retrieve the Bi-Directional Mirroring Glyph code point for a specified Unicode code point.

<note>Note: If a code point does not have a specified Bi-Directional Mirroring Glyph defined, the method should return the original code point.</note>

drop_closures_UnicodeMirroringFuncT :: UnicodeMirroringFuncT -> UnicodeMirroringFuncT_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_UnicodeMirroringFuncT Source #

Arguments

:: (HasCallStack, MonadIO m) |
=> FunPtr C_UnicodeMirroringFuncT |
-> UnicodeFuncsT | `ufuncs`: A Unicode-functions structure
-> Word32 | `unicode`: The code point to query
-> Ptr () | `userData`: User data pointer passed by the caller
-> m Word32 | Returns: The `hb_codepoint_t` of the Mirroring Glyph for `unicode`

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

genClosure_UnicodeMirroringFuncT :: MonadIO m => UnicodeMirroringFuncT -> m (GClosure C_UnicodeMirroringFuncT) Source #

Wrap the callback into a `GClosure`.

mk_UnicodeMirroringFuncT :: C_UnicodeMirroringFuncT -> IO (FunPtr C_UnicodeMirroringFuncT) Source #

Generate a function pointer callable from C code, from a `C_UnicodeMirroringFuncT`.

noUnicodeMirroringFuncT :: Maybe UnicodeMirroringFuncT Source #

A convenience synonym for ``Nothing` :: `Maybe` `UnicodeMirroringFuncT``.

noUnicodeMirroringFuncT_WithClosures :: Maybe UnicodeMirroringFuncT_WithClosures Source #

A convenience synonym for ``Nothing` :: `Maybe` `UnicodeMirroringFuncT_WithClosures``.

wrap_UnicodeMirroringFuncT :: Maybe (Ptr (FunPtr C_UnicodeMirroringFuncT)) -> UnicodeMirroringFuncT_WithClosures -> C_UnicodeMirroringFuncT Source #

Wrap a `UnicodeMirroringFuncT` into a `C_UnicodeMirroringFuncT`.

## UnicodeScriptFuncT

type C_UnicodeScriptFuncT = Ptr UnicodeFuncsT -> Word32 -> Ptr () -> IO CUInt Source #

Type for the callback on the (unwrapped) C side.

type UnicodeScriptFuncT Source #

Arguments

= UnicodeFuncsT | `ufuncs`: A Unicode-functions structure
-> Word32 | `unicode`: The code point to query
-> IO ScriptT | Returns: The `ScriptT` of `unicode`

A virtual method for the `UnicodeFuncsT` structure.

This method should retrieve the Script property for a specified Unicode code point.

type UnicodeScriptFuncT_WithClosures Source #

Arguments

= UnicodeFuncsT | `ufuncs`: A Unicode-functions structure
-> Word32 | `unicode`: The code point to query
-> Ptr () | `userData`: User data pointer passed by the caller
-> IO ScriptT | Returns: The `ScriptT` of `unicode`

A virtual method for the `UnicodeFuncsT` structure.

This method should retrieve the Script property for a specified Unicode code point.

drop_closures_UnicodeScriptFuncT :: UnicodeScriptFuncT -> UnicodeScriptFuncT_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_UnicodeScriptFuncT Source #

Arguments

:: (HasCallStack, MonadIO m) |
=> FunPtr C_UnicodeScriptFuncT |
-> UnicodeFuncsT | `ufuncs`: A Unicode-functions structure
-> Word32 | `unicode`: The code point to query
-> Ptr () | `userData`: User data pointer passed by the caller
-> m ScriptT | Returns: The `ScriptT` of `unicode`

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

genClosure_UnicodeScriptFuncT :: MonadIO m => UnicodeScriptFuncT -> m (GClosure C_UnicodeScriptFuncT) Source #

Wrap the callback into a `GClosure`.

mk_UnicodeScriptFuncT :: C_UnicodeScriptFuncT -> IO (FunPtr C_UnicodeScriptFuncT) Source #

Generate a function pointer callable from C code, from a `C_UnicodeScriptFuncT`.

noUnicodeScriptFuncT :: Maybe UnicodeScriptFuncT Source #

A convenience synonym for ``Nothing` :: `Maybe` `UnicodeScriptFuncT``.

noUnicodeScriptFuncT_WithClosures :: Maybe UnicodeScriptFuncT_WithClosures Source #

A convenience synonym for ``Nothing` :: `Maybe` `UnicodeScriptFuncT_WithClosures``.

wrap_UnicodeScriptFuncT :: Maybe (Ptr (FunPtr C_UnicodeScriptFuncT)) -> UnicodeScriptFuncT_WithClosures -> C_UnicodeScriptFuncT Source #

Wrap a `UnicodeScriptFuncT` into a `C_UnicodeScriptFuncT`.