Win32-2.2.0.0: A binding to part of the Win32 librarySource codeContentsIndex
Graphics.Win32.Window
Portabilityportable
Stabilityprovisional
MaintainerEsa Ilari Vuokko <ei@vuokko.info>
Description
A collection of FFI declarations for interfacing with Win32.
Documentation
type ClassName = LPCTSTRSource
mkClassName :: String -> ClassNameSource
type ClassStyle = UINTSource
cS_VREDRAW :: ClassStyleSource
cS_HREDRAW :: ClassStyleSource
cS_OWNDC :: ClassStyleSource
cS_CLASSDC :: ClassStyleSource
cS_PARENTDC :: ClassStyleSource
cS_SAVEBITS :: ClassStyleSource
cS_DBLCLKS :: ClassStyleSource
cS_BYTEALIGNCLIENT :: ClassStyleSource
type WNDCLASS = (ClassStyle, HINSTANCE, Maybe HICON, Maybe HCURSOR, Maybe HBRUSH, Maybe LPCTSTR, ClassName)Source
cS_BYTEALIGNWINDOW :: ClassStyleSource
cS_NOCLOSE :: ClassStyleSource
cS_GLOBALCLASS :: ClassStyleSource
withWNDCLASS :: WNDCLASS -> (Ptr WNDCLASS -> IO a) -> IO aSource
genericWndProc_p :: FunPtr WindowClosureSource
registerClass :: WNDCLASS -> IO (Maybe ATOM)Source
c_RegisterClass :: Ptr WNDCLASS -> IO ATOMSource
unregisterClass :: ClassName -> HINSTANCE -> IO ()Source
type WindowStyle = DWORDSource
wS_OVERLAPPED :: WindowStyleSource
wS_POPUP :: WindowStyleSource
wS_CHILD :: WindowStyleSource
wS_CLIPSIBLINGS :: WindowStyleSource
wS_CLIPCHILDREN :: WindowStyleSource
wS_VISIBLE :: WindowStyleSource
wS_DISABLED :: WindowStyleSource
wS_MINIMIZE :: WindowStyleSource
wS_MAXIMIZE :: WindowStyleSource
wS_CAPTION :: WindowStyleSource
wS_BORDER :: WindowStyleSource
wS_DLGFRAME :: WindowStyleSource
wS_VSCROLL :: WindowStyleSource
wS_HSCROLL :: WindowStyleSource
wS_SYSMENU :: WindowStyleSource
type WindowStyleEx = DWORDSource
wS_THICKFRAME :: WindowStyleSource
wS_MINIMIZEBOX :: WindowStyleSource
wS_EX_DLGMODALFRAME :: WindowStyleExSource
wS_MAXIMIZEBOX :: WindowStyleSource
wS_EX_NOPARENTNOTIFY :: WindowStyleExSource
wS_GROUP :: WindowStyleSource
wS_EX_TOPMOST :: WindowStyleExSource
wS_TABSTOP :: WindowStyleSource
wS_EX_ACCEPTFILES :: WindowStyleExSource
wS_OVERLAPPEDWINDOW :: WindowStyleSource
wS_EX_TRANSPARENT :: WindowStyleExSource
wS_POPUPWINDOW :: WindowStyleSource
wS_EX_MDICHILD :: WindowStyleExSource
wS_CHILDWINDOW :: WindowStyleSource
wS_EX_TOOLWINDOW :: WindowStyleExSource
wS_TILED :: WindowStyleSource
wS_EX_WINDOWEDGE :: WindowStyleExSource
wS_ICONIC :: WindowStyleSource
wS_EX_CLIENTEDGE :: WindowStyleExSource
wS_SIZEBOX :: WindowStyleSource
wS_EX_CONTEXTHELP :: WindowStyleExSource
wS_TILEDWINDOW :: WindowStyleSource
wS_EX_RIGHT :: WindowStyleExSource
wS_EX_LEFT :: WindowStyleExSource
cW_USEDEFAULT :: PosSource
wS_EX_RTLREADING :: WindowStyleExSource
wS_EX_LTRREADING :: WindowStyleExSource
type Pos = IntSource
wS_EX_LEFTSCROLLBAR :: WindowStyleExSource
type MbPos = Maybe PosSource
wS_EX_RIGHTSCROLLBAR :: WindowStyleExSource
maybePos :: Maybe Pos -> PosSource
wS_EX_CONTROLPARENT :: WindowStyleExSource
wS_EX_STATICEDGE :: WindowStyleExSource
type WindowClosure = HWND -> WindowMessage -> WPARAM -> LPARAM -> IO LRESULTSource
wS_EX_APPWINDOW :: WindowStyleExSource
mkWindowClosure :: WindowClosure -> IO (FunPtr WindowClosure)Source
wS_EX_OVERLAPPEDWINDOW :: WindowStyleExSource
setWindowClosure :: HWND -> WindowClosure -> IO ()Source
wS_EX_PALETTEWINDOW :: WindowStyleExSource
c_SetWindowLong :: HWND -> INT -> LONG -> IO LONGSource
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
c_GetClientRect :: HWND -> Ptr RECT -> IO BoolSource
getWindowRect :: HWND -> IO RECTSource
c_GetWindowRect :: HWND -> Ptr RECT -> IO BoolSource
invalidateRect :: Maybe HWND -> Maybe LPRECT -> Bool -> IO ()Source
c_InvalidateRect :: HWND -> LPRECT -> Bool -> IO BoolSource
screenToClient :: HWND -> POINT -> IO POINTSource
c_ScreenToClient :: HWND -> Ptr POINT -> IO BoolSource
clientToScreen :: HWND -> POINT -> IO POINTSource
c_ClientToScreen :: HWND -> Ptr POINT -> IO BoolSource
setWindowText :: HWND -> String -> IO ()Source
c_SetWindowText :: HWND -> LPCTSTR -> IO BoolSource
type PAINTSTRUCT = (HDC, Bool, RECT)Source
type LPPAINTSTRUCT = AddrSource
sizeofPAINTSTRUCT :: DWORDSource
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
sW_HIDE :: ShowWindowControlSource
sW_SHOWNORMAL :: ShowWindowControlSource
sW_SHOWMINIMIZED :: ShowWindowControlSource
sW_SHOWMAXIMIZED :: ShowWindowControlSource
sW_MAXIMIZE :: ShowWindowControlSource
sW_SHOWNOACTIVATE :: ShowWindowControlSource
sW_SHOW :: ShowWindowControlSource
sW_MINIMIZE :: ShowWindowControlSource
showWindow :: HWND -> ShowWindowControl -> IO BoolSource
sW_SHOWMINNOACTIVE :: ShowWindowControlSource
sW_SHOWNA :: ShowWindowControlSource
sW_RESTORE :: ShowWindowControlSource
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
anyPopup :: IO BoolSource
arrangeIconicWindows :: HWND -> IO ()Source
c_ArrangeIconicWindows :: HWND -> IO BoolSource
beginDeferWindowPos :: Int -> IO HDWPSource
c_BeginDeferWindowPos :: Int -> IO HDWPSource
bringWindowToTop :: HWND -> IO ()Source
c_BringWindowToTop :: HWND -> IO BoolSource
childWindowFromPoint :: HWND -> POINT -> IO (Maybe HWND)Source
childWindowFromPointEx :: HWND -> POINT -> DWORD -> IO (Maybe HWND)Source
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
findWindow :: String -> String -> IO (Maybe HWND)Source
c_FindWindow :: LPCTSTR -> LPCTSTR -> IO HWNDSource
findWindowEx :: HWND -> HWND -> String -> String -> IO (Maybe HWND)Source
c_FindWindowEx :: HWND -> HWND -> LPCTSTR -> LPCTSTR -> IO HWNDSource
flashWindow :: HWND -> Bool -> IO BoolSource
moveWindow :: HWND -> Int -> Int -> Int -> Int -> Bool -> IO ()Source
c_MoveWindow :: HWND -> Int -> Int -> Int -> Int -> Bool -> IO BoolSource
getDesktopWindow :: IO HWNDSource
getForegroundWindow :: IO HWNDSource
getParent :: HWND -> IO HWNDSource
c_GetParent :: HWND -> IO HWNDSource
getTopWindow :: HWND -> IO HWNDSource
c_GetTopWindow :: HWND -> IO HWNDSource
type SetWindowPosFlags = UINTSource
sWP_NOSIZE :: SetWindowPosFlagsSource
sWP_NOMOVE :: SetWindowPosFlagsSource
sWP_NOZORDER :: SetWindowPosFlagsSource
sWP_NOREDRAW :: SetWindowPosFlagsSource
sWP_NOACTIVATE :: SetWindowPosFlagsSource
sWP_FRAMECHANGED :: SetWindowPosFlagsSource
sWP_SHOWWINDOW :: SetWindowPosFlagsSource
sWP_HIDEWINDOW :: SetWindowPosFlagsSource
sWP_NOCOPYBITS :: SetWindowPosFlagsSource
sWP_NOOWNERZORDER :: SetWindowPosFlagsSource
type GetDCExFlags = DWORDSource
sWP_NOSENDCHANGING :: SetWindowPosFlagsSource
dCX_WINDOW :: GetDCExFlagsSource
sWP_DRAWFRAME :: SetWindowPosFlagsSource
dCX_CACHE :: GetDCExFlagsSource
sWP_NOREPOSITION :: SetWindowPosFlagsSource
dCX_CLIPCHILDREN :: GetDCExFlagsSource
dCX_CLIPSIBLINGS :: GetDCExFlagsSource
dCX_PARENTCLIP :: GetDCExFlagsSource
dCX_EXCLUDERGN :: GetDCExFlagsSource
dCX_INTERSECTRGN :: GetDCExFlagsSource
getDCEx :: HWND -> HRGN -> GetDCExFlags -> IO HDCSource
dCX_LOCKWINDOWUPDATE :: GetDCExFlagsSource
c_GetDCEx :: HWND -> PRGN -> GetDCExFlags -> IO HDCSource
getDC :: Maybe HWND -> IO HDCSource
c_GetDC :: HWND -> IO HDCSource
getWindowDC :: Maybe HWND -> IO HDCSource
c_GetWindowDC :: HWND -> IO HDCSource
releaseDC :: Maybe HWND -> HDC -> IO ()Source
c_ReleaseDC :: HWND -> HDC -> IO BoolSource
getDCOrgEx :: HDC -> IO POINTSource
c_GetDCOrgEx :: HDC -> Ptr POINT -> IO BoolSource
hideCaret :: HWND -> IO ()Source
c_HideCaret :: HWND -> IO BoolSource
showCaret :: HWND -> IO ()Source
c_ShowCaret :: HWND -> IO BoolSource
createCaret :: HWND -> HBITMAP -> Maybe INT -> Maybe INT -> IO ()Source
c_CreateCaret :: HWND -> HBITMAP -> INT -> INT -> IO BoolSource
destroyCaret :: IO ()Source
c_DestroyCaret :: IO BoolSource
getCaretPos :: IO POINTSource
c_GetCaretPos :: Ptr POINT -> IO BoolSource
setCaretPos :: POINT -> IO ()Source
c_SetCaretPos :: LONG -> LONG -> IO BoolSource
type LPMSG = AddrSource
allocaMessage :: (LPMSG -> IO a) -> IO aSource
getMessage :: LPMSG -> Maybe HWND -> IO BoolSource
c_GetMessage :: LPMSG -> HWND -> UINT -> UINT -> IO LONGSource
peekMessage :: LPMSG -> Maybe HWND -> UINT -> UINT -> UINT -> IO ()Source
c_PeekMessage :: LPMSG -> HWND -> UINT -> UINT -> UINT -> IO LONGSource
translateMessage :: LPMSG -> IO BOOLSource
updateWindow :: HWND -> IO ()Source
c_UpdateWindow :: HWND -> IO BoolSource
dispatchMessage :: LPMSG -> IO LONGSource
sendMessage :: HWND -> WindowMessage -> WPARAM -> LPARAM -> IO LRESULTSource
Produced by Haddock version 2.4.2