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 -> ClassNameSource
type ClassStyle = UINTSource
type WNDCLASS = (ClassStyle, HINSTANCE, Maybe HICON, Maybe HCURSOR, Maybe HBRUSH, Maybe LPCTSTR, ClassName)Source
unregisterClass :: ClassName -> HINSTANCE -> IO ()Source
type WindowStyle = DWORDSource
type WindowStyleEx = DWORDSource
type WindowClosure = HWND -> WindowMessage -> WPARAM -> LPARAM -> IO LRESULTSource
setWindowClosure :: HWND -> WindowClosure -> IO ()Source
createWindow :: ClassName -> String -> WindowStyle -> Maybe Pos -> Maybe Pos -> Maybe Pos -> Maybe Pos -> Maybe HWND -> Maybe HMENU -> HINSTANCE -> WindowClosure -> IO HWNDSource
createWindowEx :: WindowStyle -> ClassName -> String -> WindowStyle -> Maybe Pos -> Maybe Pos -> Maybe Pos -> Maybe Pos -> Maybe HWND -> Maybe HMENU -> HINSTANCE -> WindowClosure -> IO HWNDSource
c_CreateWindowEx :: WindowStyle -> ClassName -> LPCTSTR -> WindowStyle -> Pos -> Pos -> Pos -> Pos -> HWND -> HMENU -> HINSTANCE -> LPVOID -> IO HWNDSource
defWindowProc :: Maybe HWND -> WindowMessage -> WPARAM -> LPARAM -> IO LRESULTSource
c_DefWindowProc :: HWND -> WindowMessage -> WPARAM -> LPARAM -> IO LRESULTSource
getClientRect :: HWND -> IO RECTSource
getWindowRect :: HWND -> IO RECTSource
setWindowText :: HWND -> String -> IO ()Source
type PAINTSTRUCT = (HDC, Bool, RECT)Source
type LPPAINTSTRUCT = AddrSource
allocaPAINTSTRUCT :: (LPPAINTSTRUCT -> IO a) -> IO aSource
beginPaint :: HWND -> LPPAINTSTRUCT -> IO HDCSource
c_BeginPaint :: HWND -> LPPAINTSTRUCT -> IO HDCSource
endPaint :: HWND -> LPPAINTSTRUCT -> IO ()Source
type ShowWindowControl = DWORDSource
showWindow :: HWND -> ShowWindowControl -> IO BoolSource
adjustWindowRect :: RECT -> WindowStyle -> Bool -> IO RECTSource
c_AdjustWindowRect :: Ptr RECT -> WindowStyle -> Bool -> IO BoolSource
adjustWindowRectEx :: RECT -> WindowStyle -> Bool -> WindowStyleEx -> IO RECTSource
c_AdjustWindowRectEx :: Ptr RECT -> WindowStyle -> Bool -> WindowStyleEx -> IO BoolSource
arrangeIconicWindows :: HWND -> IO ()Source
beginDeferWindowPos :: Int -> IO HDWPSource
c_BeginDeferWindowPos :: Int -> IO HDWPSource
bringWindowToTop :: HWND -> IO ()Source
c_BringWindowToTop :: HWND -> IO BoolSource
closeWindow :: HWND -> IO ()Source
deferWindowPos :: HDWP -> HWND -> HWND -> Int -> Int -> Int -> Int -> SetWindowPosFlags -> IO HDWPSource
c_DeferWindowPos :: HDWP -> HWND -> HWND -> Int -> Int -> Int -> Int -> SetWindowPosFlags -> IO HDWPSource
destroyWindow :: HWND -> IO ()Source
c_DestroyWindow :: HWND -> IO BoolSource
endDeferWindowPos :: HDWP -> IO ()Source
c_EndDeferWindowPos :: HDWP -> IO BoolSource
c_GetParent :: HWND -> IO HWNDSource
getTopWindow :: HWND -> IO HWNDSource
c_GetTopWindow :: HWND -> IO HWNDSource
type SetWindowPosFlags = UINTSource
type GetDCExFlags = DWORDSource
c_GetWindowDC :: HWND -> IO HDCSource
getDCOrgEx :: HDC -> IO POINTSource
c_HideCaret :: HWND -> IO BoolSource
c_ShowCaret :: HWND -> IO BoolSource
destroyCaret :: IO ()Source
setCaretPos :: POINT -> IO ()Source
allocaMessage :: (LPMSG -> IO a) -> IO aSource
translateMessage :: LPMSG -> IO BOOLSource
updateWindow :: HWND -> IO ()Source
c_UpdateWindow :: HWND -> IO BoolSource
dispatchMessage :: LPMSG -> IO LONGSource
sendMessage :: HWND -> WindowMessage -> WPARAM -> LPARAM -> IO LRESULTSource