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 #
type WindowStyle = DWORD Source #
type WindowStyleEx = DWORD Source #
cW_USEDEFAULT :: Pos Source #
type WindowClosure = HWND -> WindowMessage -> WPARAM -> LPARAM -> IO LRESULT Source #
mkWindowClosure :: WindowClosure -> IO (FunPtr WindowClosure) 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 #
type LPPAINTSTRUCT = Addr Source #
allocaPAINTSTRUCT :: (LPPAINTSTRUCT -> IO a) -> IO a Source #
beginPaint :: HWND -> LPPAINTSTRUCT -> IO HDC Source #
c_BeginPaint :: HWND -> LPPAINTSTRUCT -> IO HDC 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 #
bringWindowToTop :: HWND -> IO () 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 #
endDeferWindowPos :: HDWP -> IO () Source #
type SetWindowPosFlags = UINT Source #
type GetDCExFlags = DWORD Source #
destroyCaret :: IO () Source #
c_DestroyCaret :: IO Bool Source #
getCaretPos :: IO POINT Source #
setCaretPos :: POINT -> IO () Source #
updateWindow :: HWND -> IO () Source #
sendMessage :: HWND -> WindowMessage -> WPARAM -> LPARAM -> IO LRESULT Source #