Copyright | (c) Alastair Reid, 1997-2003 |
---|---|
License | BSD-style (see the file libraries/base/LICENSE) |
Maintainer | Esa Ilari Vuokko <ei@vuokko.info> |
Stability | provisional |
Portability | portable |
Safe Haskell | Trustworthy |
Language | Haskell98 |
A collection of FFI declarations for interfacing with Win32.
Documentation
mkClassName :: String -> ClassName Source
type ClassStyle = UINT Source
type WNDCLASS = (ClassStyle, HINSTANCE, Maybe HICON, Maybe HCURSOR, Maybe HBRUSH, Maybe LPCTSTR, ClassName) Source
unregisterClass :: ClassName -> HINSTANCE -> IO () Source
type WindowStyle = DWORD Source
type WindowStyleEx = DWORD Source
type WindowClosure = HWND -> WindowMessage -> WPARAM -> LPARAM -> IO LRESULT Source
setWindowClosure :: HWND -> WindowClosure -> IO () Source
createWindow :: ClassName -> String -> WindowStyle -> Maybe Pos -> Maybe Pos -> Maybe Pos -> Maybe Pos -> Maybe HWND -> Maybe HMENU -> HINSTANCE -> WindowClosure -> IO HWND Source
createWindowEx :: WindowStyle -> ClassName -> String -> WindowStyle -> Maybe Pos -> Maybe Pos -> Maybe Pos -> Maybe Pos -> Maybe HWND -> Maybe HMENU -> HINSTANCE -> WindowClosure -> IO HWND Source
c_CreateWindowEx :: WindowStyle -> ClassName -> LPCTSTR -> WindowStyle -> Pos -> Pos -> Pos -> Pos -> HWND -> HMENU -> HINSTANCE -> LPVOID -> IO HWND Source
defWindowProc :: Maybe HWND -> WindowMessage -> WPARAM -> LPARAM -> IO LRESULT Source
c_DefWindowProc :: HWND -> WindowMessage -> WPARAM -> LPARAM -> IO LRESULT Source
getClientRect :: HWND -> IO RECT Source
getWindowRect :: HWND -> IO RECT Source
setWindowText :: HWND -> String -> IO () Source
type PAINTSTRUCT = (HDC, Bool, RECT) Source
type LPPAINTSTRUCT = Addr Source
allocaPAINTSTRUCT :: (LPPAINTSTRUCT -> IO a) -> IO a Source
beginPaint :: HWND -> LPPAINTSTRUCT -> IO HDC Source
c_BeginPaint :: HWND -> LPPAINTSTRUCT -> IO HDC Source
endPaint :: HWND -> LPPAINTSTRUCT -> IO () Source
type ShowWindowControl = DWORD Source
showWindow :: HWND -> ShowWindowControl -> IO Bool Source
adjustWindowRect :: RECT -> WindowStyle -> Bool -> IO RECT Source
c_AdjustWindowRect :: Ptr RECT -> WindowStyle -> Bool -> IO Bool Source
adjustWindowRectEx :: RECT -> WindowStyle -> Bool -> WindowStyleEx -> IO RECT Source
c_AdjustWindowRectEx :: Ptr RECT -> WindowStyle -> Bool -> WindowStyleEx -> IO Bool Source
arrangeIconicWindows :: HWND -> IO () Source
c_ArrangeIconicWindows :: HWND -> IO Bool Source
beginDeferWindowPos :: Int -> IO HDWP Source
c_BeginDeferWindowPos :: Int -> IO HDWP Source
bringWindowToTop :: HWND -> IO () Source
c_BringWindowToTop :: HWND -> IO Bool Source
closeWindow :: HWND -> IO () Source
deferWindowPos :: HDWP -> HWND -> HWND -> Int -> Int -> Int -> Int -> SetWindowPosFlags -> IO HDWP Source
c_DeferWindowPos :: HDWP -> HWND -> HWND -> Int -> Int -> Int -> Int -> SetWindowPosFlags -> IO HDWP Source
destroyWindow :: HWND -> IO () Source
c_DestroyWindow :: HWND -> IO Bool Source
endDeferWindowPos :: HDWP -> IO () Source
c_EndDeferWindowPos :: HDWP -> IO Bool Source
c_GetParent :: HWND -> IO HWND Source
getTopWindow :: HWND -> IO HWND Source
c_GetTopWindow :: HWND -> IO HWND Source
type SetWindowPosFlags = UINT Source
type GetDCExFlags = DWORD Source
c_GetWindowDC :: HWND -> IO HDC Source
getDCOrgEx :: HDC -> IO POINT Source
c_HideCaret :: HWND -> IO Bool Source
c_ShowCaret :: HWND -> IO Bool Source
destroyCaret :: IO () Source
getCaretPos :: IO POINT Source
setCaretPos :: POINT -> IO () Source
allocaMessage :: (LPMSG -> IO a) -> IO a Source
translateMessage :: LPMSG -> IO BOOL Source
updateWindow :: HWND -> IO () Source
c_UpdateWindow :: HWND -> IO Bool Source
dispatchMessage :: LPMSG -> IO LONG Source
sendMessage :: HWND -> WindowMessage -> WPARAM -> LPARAM -> IO LRESULT Source