fltkhs-0.8.0.3: FLTK bindings
Safe HaskellNone
LanguageHaskell2010

Graphics.UI.FLTK.LowLevel.Utils

Documentation

mkFinalizer :: (Ptr a -> IO ()) -> IO (FinalizerPtr a) Source #

mkFinalizerEnv :: (Ptr env -> Ptr a -> IO ()) -> IO (FinalizerEnvPtr env a) Source #

toCallbackPrim :: (Ref a -> IO ()) -> IO (FunPtr (Ptr () -> IO ())) Source #

toCallbackPrimWithUserData :: (Ref a -> IO ()) -> IO (FunPtr (Ptr () -> Ptr () -> IO ())) Source #

cFromEnum :: (Enum a, Integral b) => a -> b Source #

cToEnum :: (Integral b, Enum a) => b -> a Source #

cToBool :: (Eq a, Num a, Ord a) => a -> Bool Source #

cFromBool :: (Eq a, Num a) => Bool -> a Source #

toFunPtr :: (a -> FunPtr a) -> a -> FunPtr a Source #

extract :: Enum a => [a] -> CInt -> [a] Source #

combine :: (Enum a, Ord a) => [a] -> Int Source #

orNullFunPtr :: (a -> IO (FunPtr b)) -> Maybe a -> IO (FunPtr b) Source #

arrayToRefs :: Ptr (Ptr ()) -> Int -> IO [Ref a] Source #

refOrError :: String -> Ptr () -> IO (Ref b) Source #

toRef :: Ptr () -> IO (Ref a) Source #

toMaybeRef :: Ptr () -> IO (Maybe (Ref a)) Source #

foldl1WithDefault :: a -> (a -> a -> a) -> [a] -> a Source #

withPixmap :: PixmapHs -> (Ptr (Ptr CChar) -> IO a) -> IO a Source #

withBitmap :: BitmapHs -> (Ptr CChar -> Int -> Int -> IO a) -> IO a Source #

withStrings :: [Text] -> (Ptr (Ptr CChar) -> IO a) -> IO a Source #

withText :: Text -> (CString -> IO a) -> IO a Source #