Win32-2.6.1.0: A binding to part of the Win32 library

Copyright(c) Alastair Reid 1997-2003
LicenseBSD-style (see the file libraries/base/LICENSE)
MaintainerEsa Ilari Vuokko <ei@vuokko.info>
Stabilityprovisional
Portabilityportable
Safe HaskellTrustworthy
LanguageHaskell2010

Graphics.Win32.GDI.Types

Description

A collection of FFI declarations for interfacing with Win32.

Documentation

type POINT = (LONG, LONG) #

allocaPOINT :: (Ptr POINT -> IO a) -> IO a #

pokePOINT :: Ptr POINT -> POINT -> IO () #

withPOINT :: POINT -> (Ptr POINT -> IO a) -> IO a #

type RECT = (LONG, LONG, LONG, LONG) #

allocaRECT :: (Ptr RECT -> IO a) -> IO a #

pokeRECT :: Ptr RECT -> RECT -> IO () #

type SIZE = (LONG, LONG) #

allocaSIZE :: (Ptr SIZE -> IO a) -> IO a #

pokeSIZE :: Ptr SIZE -> SIZE -> IO () #

withPOINTArray :: [POINT] -> (Ptr POINT -> Int -> IO a) -> IO a #

setPOINT :: Ptr POINT -> Int -> POINT -> IO () #

type LPRECT = Ptr RECT #

withRECT :: RECT -> (Ptr RECT -> IO a) -> IO a #

type HFONT = HANDLE #

type HCURSOR = HICON #

type HICON = HANDLE #

type PRGN = HANDLE #

type HBRUSH = HANDLE #

type HPEN = HANDLE #

type HACCEL = HANDLE #

type HDC = HANDLE #

type MbHDC = Maybe HDC #

type HDWP = HANDLE #

type HWND = HANDLE #

type HMENU = HANDLE #

rgb :: BYTE -> BYTE -> BYTE -> COLORREF #

gDI_ERROR :: Num a => a #