Graphics.Win32.Window

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

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 | Haskell2010

Graphics.Win32.Window

Description

A collection of FFI declarations for interfacing with Win32.

Synopsis

- type ClassName = LPCTSTR
- mkClassName :: String -> ClassName
- mkClassName :: String -> ClassName
- type ClassStyle = UINT
- cS_VREDRAW :: ClassStyle
- cS_VREDRAW :: ClassStyle
- cS_HREDRAW :: ClassStyle
- cS_HREDRAW :: ClassStyle
- cS_OWNDC :: ClassStyle
- cS_OWNDC :: ClassStyle
- cS_CLASSDC :: ClassStyle
- cS_CLASSDC :: ClassStyle
- cS_PARENTDC :: ClassStyle
- cS_PARENTDC :: ClassStyle
- cS_SAVEBITS :: ClassStyle
- cS_SAVEBITS :: ClassStyle
- cS_DBLCLKS :: ClassStyle
- cS_DBLCLKS :: ClassStyle
- cS_BYTEALIGNCLIENT :: ClassStyle
- cS_BYTEALIGNCLIENT :: ClassStyle
- cS_BYTEALIGNWINDOW :: ClassStyle
- cS_BYTEALIGNWINDOW :: ClassStyle
- cS_NOCLOSE :: ClassStyle
- cS_NOCLOSE :: ClassStyle
- cS_GLOBALCLASS :: ClassStyle
- cS_GLOBALCLASS :: ClassStyle
- type WNDCLASS = (ClassStyle, HINSTANCE, Maybe HICON, Maybe HCURSOR, Maybe HBRUSH, Maybe LPCTSTR, ClassName)
- withWNDCLASS :: WNDCLASS -> (Ptr WNDCLASS -> IO a) -> IO a
- withWNDCLASS :: WNDCLASS -> (Ptr WNDCLASS -> IO a) -> IO a
- genericWndProc_p :: FunPtr WindowClosure
- registerClass :: WNDCLASS -> IO (Maybe ATOM)
- registerClass :: WNDCLASS -> IO (Maybe ATOM)
- c_RegisterClass :: Ptr WNDCLASS -> IO ATOM
- unregisterClass :: ClassName -> HINSTANCE -> IO ()
- type WindowStyle = DWORD
- wS_OVERLAPPED :: WindowStyle
- wS_OVERLAPPED :: WindowStyle
- wS_POPUP :: WindowStyle
- wS_POPUP :: WindowStyle
- wS_CHILD :: WindowStyle
- wS_CHILD :: WindowStyle
- wS_CLIPSIBLINGS :: WindowStyle
- wS_CLIPSIBLINGS :: WindowStyle
- wS_CLIPCHILDREN :: WindowStyle
- wS_CLIPCHILDREN :: WindowStyle
- wS_VISIBLE :: WindowStyle
- wS_VISIBLE :: WindowStyle
- wS_DISABLED :: WindowStyle
- wS_DISABLED :: WindowStyle
- wS_MINIMIZE :: WindowStyle
- wS_MINIMIZE :: WindowStyle
- wS_MAXIMIZE :: WindowStyle
- wS_MAXIMIZE :: WindowStyle
- wS_CAPTION :: WindowStyle
- wS_CAPTION :: WindowStyle
- wS_BORDER :: WindowStyle
- wS_BORDER :: WindowStyle
- wS_DLGFRAME :: WindowStyle
- wS_DLGFRAME :: WindowStyle
- wS_VSCROLL :: WindowStyle
- wS_VSCROLL :: WindowStyle
- wS_HSCROLL :: WindowStyle
- wS_HSCROLL :: WindowStyle
- wS_SYSMENU :: WindowStyle
- wS_SYSMENU :: WindowStyle
- type WindowStyleEx = DWORD
- wS_THICKFRAME :: WindowStyle
- wS_THICKFRAME :: WindowStyle
- wS_MINIMIZEBOX :: WindowStyle
- wS_EX_DLGMODALFRAME :: WindowStyleEx
- wS_EX_DLGMODALFRAME :: WindowStyleEx
- wS_MINIMIZEBOX :: WindowStyle
- wS_MAXIMIZEBOX :: WindowStyle
- wS_EX_NOPARENTNOTIFY :: WindowStyleEx
- wS_EX_NOPARENTNOTIFY :: WindowStyleEx
- wS_MAXIMIZEBOX :: WindowStyle
- wS_GROUP :: WindowStyle
- wS_EX_TOPMOST :: WindowStyleEx
- wS_EX_TOPMOST :: WindowStyleEx
- wS_GROUP :: WindowStyle
- wS_TABSTOP :: WindowStyle
- wS_EX_ACCEPTFILES :: WindowStyleEx
- wS_EX_ACCEPTFILES :: WindowStyleEx
- wS_TABSTOP :: WindowStyle
- wS_OVERLAPPEDWINDOW :: WindowStyle
- wS_EX_TRANSPARENT :: WindowStyleEx
- wS_EX_TRANSPARENT :: WindowStyleEx
- wS_OVERLAPPEDWINDOW :: WindowStyle
- wS_POPUPWINDOW :: WindowStyle
- wS_EX_MDICHILD :: WindowStyleEx
- wS_EX_MDICHILD :: WindowStyleEx
- wS_POPUPWINDOW :: WindowStyle
- wS_CHILDWINDOW :: WindowStyle
- wS_EX_TOOLWINDOW :: WindowStyleEx
- wS_EX_TOOLWINDOW :: WindowStyleEx
- wS_CHILDWINDOW :: WindowStyle
- wS_TILED :: WindowStyle
- wS_EX_WINDOWEDGE :: WindowStyleEx
- wS_TILED :: WindowStyle
- wS_EX_WINDOWEDGE :: WindowStyleEx
- wS_ICONIC :: WindowStyle
- wS_EX_CLIENTEDGE :: WindowStyleEx
- wS_EX_CLIENTEDGE :: WindowStyleEx
- wS_ICONIC :: WindowStyle
- wS_SIZEBOX :: WindowStyle
- wS_EX_CONTEXTHELP :: WindowStyleEx
- wS_EX_CONTEXTHELP :: WindowStyleEx
- wS_SIZEBOX :: WindowStyle
- wS_TILEDWINDOW :: WindowStyle
- wS_EX_RIGHT :: WindowStyleEx
- wS_EX_RIGHT :: WindowStyleEx
- wS_TILEDWINDOW :: WindowStyle
- wS_EX_LEFT :: WindowStyleEx
- wS_EX_LEFT :: WindowStyleEx
- wS_EX_RTLREADING :: WindowStyleEx
- cW_USEDEFAULT :: Pos
- wS_EX_RTLREADING :: WindowStyleEx
- wS_EX_LTRREADING :: WindowStyleEx
- wS_EX_LTRREADING :: WindowStyleEx
- wS_EX_LEFTSCROLLBAR :: WindowStyleEx
- wS_EX_LEFTSCROLLBAR :: WindowStyleEx
- cW_USEDEFAULT :: Pos
- wS_EX_RIGHTSCROLLBAR :: WindowStyleEx
- wS_EX_RIGHTSCROLLBAR :: WindowStyleEx
- type Pos = Int
- wS_EX_CONTROLPARENT :: WindowStyleEx
- wS_EX_CONTROLPARENT :: WindowStyleEx
- type MbPos = Maybe Pos
- wS_EX_STATICEDGE :: WindowStyleEx
- wS_EX_STATICEDGE :: WindowStyleEx
- maybePos :: Maybe Pos -> Pos
- wS_EX_APPWINDOW :: WindowStyleEx
- wS_EX_APPWINDOW :: WindowStyleEx
- maybePos :: Maybe Pos -> Pos
- wS_EX_OVERLAPPEDWINDOW :: WindowStyleEx
- wS_EX_OVERLAPPEDWINDOW :: WindowStyleEx
- type WindowClosure = HWND -> WindowMessage -> WPARAM -> LPARAM -> IO LRESULT
- wS_EX_PALETTEWINDOW :: WindowStyleEx
- wS_EX_PALETTEWINDOW :: WindowStyleEx
- mkWindowClosure :: WindowClosure -> IO (FunPtr WindowClosure)
- setWindowClosure :: HWND -> WindowClosure -> IO ()
- setWindowClosure :: HWND -> WindowClosure -> IO ()
- c_SetWindowLongPtr :: HWND -> INT -> Ptr LONG -> IO (Ptr LONG)
- createWindow :: ClassName -> String -> WindowStyle -> Maybe Pos -> Maybe Pos -> Maybe Pos -> Maybe Pos -> Maybe HWND -> Maybe HMENU -> HINSTANCE -> WindowClosure -> IO HWND
- createWindow :: ClassName -> String -> WindowStyle -> Maybe Pos -> Maybe Pos -> Maybe Pos -> Maybe Pos -> Maybe HWND -> Maybe HMENU -> HINSTANCE -> WindowClosure -> IO HWND
- createWindowEx :: WindowStyle -> ClassName -> String -> WindowStyle -> Maybe Pos -> Maybe Pos -> Maybe Pos -> Maybe Pos -> Maybe HWND -> Maybe HMENU -> HINSTANCE -> WindowClosure -> IO HWND
- createWindowEx :: WindowStyle -> ClassName -> String -> WindowStyle -> Maybe Pos -> Maybe Pos -> Maybe Pos -> Maybe Pos -> Maybe HWND -> Maybe HMENU -> HINSTANCE -> WindowClosure -> IO HWND
- c_CreateWindowEx :: WindowStyle -> ClassName -> LPCTSTR -> WindowStyle -> Pos -> Pos -> Pos -> Pos -> HWND -> HMENU -> HINSTANCE -> LPVOID -> IO HWND
- defWindowProc :: Maybe HWND -> WindowMessage -> WPARAM -> LPARAM -> IO LRESULT
- defWindowProc :: Maybe HWND -> WindowMessage -> WPARAM -> LPARAM -> IO LRESULT
- c_DefWindowProc :: HWND -> WindowMessage -> WPARAM -> LPARAM -> IO LRESULT
- getClientRect :: HWND -> IO RECT
- getClientRect :: HWND -> IO RECT
- c_GetClientRect :: HWND -> Ptr RECT -> IO Bool
- getWindowRect :: HWND -> IO RECT
- getWindowRect :: HWND -> IO RECT
- c_GetWindowRect :: HWND -> Ptr RECT -> IO Bool
- invalidateRect :: Maybe HWND -> Maybe LPRECT -> Bool -> IO ()
- invalidateRect :: Maybe HWND -> Maybe LPRECT -> Bool -> IO ()
- c_InvalidateRect :: HWND -> LPRECT -> Bool -> IO Bool
- screenToClient :: HWND -> POINT -> IO POINT
- screenToClient :: HWND -> POINT -> IO POINT
- c_ScreenToClient :: HWND -> Ptr POINT -> IO Bool
- clientToScreen :: HWND -> POINT -> IO POINT
- clientToScreen :: HWND -> POINT -> IO POINT
- c_ClientToScreen :: HWND -> Ptr POINT -> IO Bool
- setWindowText :: HWND -> String -> IO ()
- setWindowText :: HWND -> String -> IO ()
- c_SetWindowText :: HWND -> LPCTSTR -> IO Bool
- type PAINTSTRUCT = (HDC, Bool, RECT)
- type LPPAINTSTRUCT = Addr
- sizeofPAINTSTRUCT :: DWORD
- sizeofPAINTSTRUCT :: DWORD
- allocaPAINTSTRUCT :: (LPPAINTSTRUCT -> IO a) -> IO a
- allocaPAINTSTRUCT :: (LPPAINTSTRUCT -> IO a) -> IO a
- beginPaint :: HWND -> LPPAINTSTRUCT -> IO HDC
- beginPaint :: HWND -> LPPAINTSTRUCT -> IO HDC
- c_BeginPaint :: HWND -> LPPAINTSTRUCT -> IO HDC
- endPaint :: HWND -> LPPAINTSTRUCT -> IO ()
- type ShowWindowControl = DWORD
- sW_HIDE :: ShowWindowControl
- sW_HIDE :: ShowWindowControl
- sW_SHOWNORMAL :: ShowWindowControl
- sW_SHOWNORMAL :: ShowWindowControl
- sW_SHOWMINIMIZED :: ShowWindowControl
- sW_SHOWMINIMIZED :: ShowWindowControl
- sW_SHOWMAXIMIZED :: ShowWindowControl
- sW_SHOWMAXIMIZED :: ShowWindowControl
- sW_MAXIMIZE :: ShowWindowControl
- sW_MAXIMIZE :: ShowWindowControl
- sW_SHOWNOACTIVATE :: ShowWindowControl
- sW_SHOWNOACTIVATE :: ShowWindowControl
- sW_SHOW :: ShowWindowControl
- sW_SHOW :: ShowWindowControl
- sW_MINIMIZE :: ShowWindowControl
- showWindow :: HWND -> ShowWindowControl -> IO Bool
- sW_MINIMIZE :: ShowWindowControl
- sW_SHOWMINNOACTIVE :: ShowWindowControl
- sW_SHOWMINNOACTIVE :: ShowWindowControl
- sW_SHOWNA :: ShowWindowControl
- sW_SHOWNA :: ShowWindowControl
- sW_RESTORE :: ShowWindowControl
- sW_RESTORE :: ShowWindowControl
- adjustWindowRect :: RECT -> WindowStyle -> Bool -> IO RECT
- adjustWindowRect :: RECT -> WindowStyle -> Bool -> IO RECT
- c_AdjustWindowRect :: Ptr RECT -> WindowStyle -> Bool -> IO Bool
- adjustWindowRectEx :: RECT -> WindowStyle -> Bool -> WindowStyleEx -> IO RECT
- adjustWindowRectEx :: RECT -> WindowStyle -> Bool -> WindowStyleEx -> IO RECT
- c_AdjustWindowRectEx :: Ptr RECT -> WindowStyle -> Bool -> WindowStyleEx -> IO Bool
- anyPopup :: IO Bool
- arrangeIconicWindows :: HWND -> IO ()
- arrangeIconicWindows :: HWND -> IO ()
- c_ArrangeIconicWindows :: HWND -> IO Bool
- beginDeferWindowPos :: Int -> IO HDWP
- beginDeferWindowPos :: Int -> IO HDWP
- c_BeginDeferWindowPos :: Int -> IO HDWP
- bringWindowToTop :: HWND -> IO ()
- bringWindowToTop :: HWND -> IO ()
- c_BringWindowToTop :: HWND -> IO Bool
- childWindowFromPoint :: HWND -> POINT -> IO (Maybe HWND)
- childWindowFromPoint :: HWND -> POINT -> IO (Maybe HWND)
- childWindowFromPointEx :: HWND -> POINT -> DWORD -> IO (Maybe HWND)
- childWindowFromPointEx :: HWND -> POINT -> DWORD -> IO (Maybe HWND)
- closeWindow :: HWND -> IO ()
- closeWindow :: HWND -> IO ()
- deferWindowPos :: HDWP -> HWND -> HWND -> Int -> Int -> Int -> Int -> SetWindowPosFlags -> IO HDWP
- deferWindowPos :: HDWP -> HWND -> HWND -> Int -> Int -> Int -> Int -> SetWindowPosFlags -> IO HDWP
- c_DeferWindowPos :: HDWP -> HWND -> HWND -> Int -> Int -> Int -> Int -> SetWindowPosFlags -> IO HDWP
- destroyWindow :: HWND -> IO ()
- destroyWindow :: HWND -> IO ()
- c_DestroyWindow :: HWND -> IO Bool
- endDeferWindowPos :: HDWP -> IO ()
- endDeferWindowPos :: HDWP -> IO ()
- c_EndDeferWindowPos :: HDWP -> IO Bool
- findWindow :: Maybe String -> Maybe String -> IO (Maybe HWND)
- findWindow :: Maybe String -> Maybe String -> IO (Maybe HWND)
- findWindowByName :: String -> IO (Maybe HWND)
- findWindowByName :: String -> IO (Maybe HWND)
- c_FindWindow :: LPCTSTR -> LPCTSTR -> IO HWND
- findWindowEx :: Maybe HWND -> Maybe HWND -> Maybe String -> Maybe String -> IO (Maybe HWND)
- findWindowEx :: Maybe HWND -> Maybe HWND -> Maybe String -> Maybe String -> IO (Maybe HWND)
- c_FindWindowEx :: HWND -> HWND -> LPCTSTR -> LPCTSTR -> IO HWND
- flashWindow :: HWND -> Bool -> IO Bool
- moveWindow :: HWND -> Int -> Int -> Int -> Int -> Bool -> IO ()
- moveWindow :: HWND -> Int -> Int -> Int -> Int -> Bool -> IO ()
- c_MoveWindow :: HWND -> Int -> Int -> Int -> Int -> Bool -> IO Bool
- getDesktopWindow :: IO HWND
- getForegroundWindow :: IO HWND
- getParent :: HWND -> IO HWND
- getParent :: HWND -> IO HWND
- c_GetParent :: HWND -> IO HWND
- getTopWindow :: HWND -> IO HWND
- getTopWindow :: HWND -> IO HWND
- c_GetTopWindow :: HWND -> IO HWND
- type SetWindowPosFlags = UINT
- sWP_NOSIZE :: SetWindowPosFlags
- sWP_NOSIZE :: SetWindowPosFlags
- sWP_NOMOVE :: SetWindowPosFlags
- sWP_NOMOVE :: SetWindowPosFlags
- sWP_NOZORDER :: SetWindowPosFlags
- sWP_NOZORDER :: SetWindowPosFlags
- sWP_NOREDRAW :: SetWindowPosFlags
- sWP_NOREDRAW :: SetWindowPosFlags
- sWP_NOACTIVATE :: SetWindowPosFlags
- sWP_NOACTIVATE :: SetWindowPosFlags
- sWP_FRAMECHANGED :: SetWindowPosFlags
- sWP_FRAMECHANGED :: SetWindowPosFlags
- sWP_SHOWWINDOW :: SetWindowPosFlags
- sWP_SHOWWINDOW :: SetWindowPosFlags
- sWP_HIDEWINDOW :: SetWindowPosFlags
- sWP_HIDEWINDOW :: SetWindowPosFlags
- sWP_NOCOPYBITS :: SetWindowPosFlags
- sWP_NOCOPYBITS :: SetWindowPosFlags
- sWP_NOOWNERZORDER :: SetWindowPosFlags
- sWP_NOOWNERZORDER :: SetWindowPosFlags
- type GetDCExFlags = DWORD
- sWP_NOSENDCHANGING :: SetWindowPosFlags
- sWP_NOSENDCHANGING :: SetWindowPosFlags
- dCX_WINDOW :: GetDCExFlags
- sWP_DRAWFRAME :: SetWindowPosFlags
- dCX_WINDOW :: GetDCExFlags
- sWP_DRAWFRAME :: SetWindowPosFlags
- dCX_CACHE :: GetDCExFlags
- sWP_NOREPOSITION :: SetWindowPosFlags
- dCX_CACHE :: GetDCExFlags
- sWP_NOREPOSITION :: SetWindowPosFlags
- dCX_CLIPCHILDREN :: GetDCExFlags
- dCX_CLIPCHILDREN :: GetDCExFlags
- dCX_CLIPSIBLINGS :: GetDCExFlags
- dCX_CLIPSIBLINGS :: GetDCExFlags
- dCX_PARENTCLIP :: GetDCExFlags
- dCX_PARENTCLIP :: GetDCExFlags
- dCX_EXCLUDERGN :: GetDCExFlags
- dCX_EXCLUDERGN :: GetDCExFlags
- dCX_INTERSECTRGN :: GetDCExFlags
- dCX_INTERSECTRGN :: GetDCExFlags
- getDCEx :: HWND -> HRGN -> GetDCExFlags -> IO HDC
- dCX_LOCKWINDOWUPDATE :: GetDCExFlags
- getDCEx :: HWND -> HRGN -> GetDCExFlags -> IO HDC
- dCX_LOCKWINDOWUPDATE :: GetDCExFlags
- c_GetDCEx :: HWND -> PRGN -> GetDCExFlags -> IO HDC
- getDC :: Maybe HWND -> IO HDC
- getDC :: Maybe HWND -> IO HDC
- c_GetDC :: HWND -> IO HDC
- getWindowDC :: Maybe HWND -> IO HDC
- getWindowDC :: Maybe HWND -> IO HDC
- c_GetWindowDC :: HWND -> IO HDC
- releaseDC :: Maybe HWND -> HDC -> IO ()
- releaseDC :: Maybe HWND -> HDC -> IO ()
- c_ReleaseDC :: HWND -> HDC -> IO Bool
- getDCOrgEx :: HDC -> IO POINT
- getDCOrgEx :: HDC -> IO POINT
- c_GetDCOrgEx :: HDC -> Ptr POINT -> IO Bool
- hideCaret :: HWND -> IO ()
- hideCaret :: HWND -> IO ()
- c_HideCaret :: HWND -> IO Bool
- showCaret :: HWND -> IO ()
- showCaret :: HWND -> IO ()
- c_ShowCaret :: HWND -> IO Bool
- createCaret :: HWND -> HBITMAP -> Maybe INT -> Maybe INT -> IO ()
- createCaret :: HWND -> HBITMAP -> Maybe INT -> Maybe INT -> IO ()
- c_CreateCaret :: HWND -> HBITMAP -> INT -> INT -> IO Bool
- destroyCaret :: IO ()
- destroyCaret :: IO ()
- c_DestroyCaret :: IO Bool
- getCaretPos :: IO POINT
- getCaretPos :: IO POINT
- c_GetCaretPos :: Ptr POINT -> IO Bool
- setCaretPos :: POINT -> IO ()
- setCaretPos :: POINT -> IO ()
- c_SetCaretPos :: LONG -> LONG -> IO Bool
- type LPMSG = Addr
- allocaMessage :: (LPMSG -> IO a) -> IO a
- allocaMessage :: (LPMSG -> IO a) -> IO a
- getMessage :: LPMSG -> Maybe HWND -> IO Bool
- getMessage :: LPMSG -> Maybe HWND -> IO Bool
- c_GetMessage :: LPMSG -> HWND -> UINT -> UINT -> IO LONG
- peekMessage :: LPMSG -> Maybe HWND -> UINT -> UINT -> UINT -> IO ()
- peekMessage :: LPMSG -> Maybe HWND -> UINT -> UINT -> UINT -> IO ()
- c_PeekMessage :: LPMSG -> HWND -> UINT -> UINT -> UINT -> IO LONG
- translateMessage :: LPMSG -> IO BOOL
- updateWindow :: HWND -> IO ()
- updateWindow :: HWND -> IO ()
- c_UpdateWindow :: HWND -> IO Bool
- dispatchMessage :: LPMSG -> IO LONG
- sendMessage :: HWND -> WindowMessage -> WPARAM -> LPARAM -> IO LRESULT

# Documentation

type ClassName = LPCTSTR Source #

mkClassName :: String -> ClassName Source #

mkClassName :: String -> ClassName Source #

type ClassStyle = UINT Source #

cS_VREDRAW :: ClassStyle Source #

cS_VREDRAW :: ClassStyle Source #

cS_HREDRAW :: ClassStyle Source #

cS_HREDRAW :: ClassStyle Source #

cS_OWNDC :: ClassStyle Source #

cS_OWNDC :: ClassStyle Source #

cS_CLASSDC :: ClassStyle Source #

cS_CLASSDC :: ClassStyle Source #

cS_PARENTDC :: ClassStyle Source #

cS_PARENTDC :: ClassStyle Source #

cS_SAVEBITS :: ClassStyle Source #

cS_SAVEBITS :: ClassStyle Source #

cS_DBLCLKS :: ClassStyle Source #

cS_DBLCLKS :: ClassStyle Source #

cS_BYTEALIGNCLIENT :: ClassStyle Source #

cS_BYTEALIGNCLIENT :: ClassStyle Source #

cS_BYTEALIGNWINDOW :: ClassStyle Source #

cS_BYTEALIGNWINDOW :: ClassStyle Source #

cS_NOCLOSE :: ClassStyle Source #

cS_NOCLOSE :: ClassStyle Source #

cS_GLOBALCLASS :: ClassStyle Source #

cS_GLOBALCLASS :: ClassStyle Source #

type WNDCLASS = (ClassStyle, HINSTANCE, Maybe HICON, Maybe HCURSOR, Maybe HBRUSH, Maybe LPCTSTR, ClassName) Source #

withWNDCLASS :: WNDCLASS -> (Ptr WNDCLASS -> IO a) -> IO a Source #

withWNDCLASS :: WNDCLASS -> (Ptr WNDCLASS -> IO a) -> IO a Source #

genericWndProc_p :: FunPtr WindowClosure Source #

registerClass :: WNDCLASS -> IO (Maybe ATOM) Source #

registerClass :: WNDCLASS -> IO (Maybe ATOM) Source #

c_RegisterClass :: Ptr WNDCLASS -> IO ATOM Source #

unregisterClass :: ClassName -> HINSTANCE -> IO () Source #

type WindowStyle = DWORD Source #

wS_OVERLAPPED :: WindowStyle Source #

wS_OVERLAPPED :: WindowStyle Source #

wS_POPUP :: WindowStyle Source #

wS_POPUP :: WindowStyle Source #

wS_CHILD :: WindowStyle Source #

wS_CHILD :: WindowStyle Source #

wS_CLIPSIBLINGS :: WindowStyle Source #

wS_CLIPSIBLINGS :: WindowStyle Source #

wS_CLIPCHILDREN :: WindowStyle Source #

wS_CLIPCHILDREN :: WindowStyle Source #

wS_VISIBLE :: WindowStyle Source #

wS_VISIBLE :: WindowStyle Source #

wS_DISABLED :: WindowStyle Source #

wS_DISABLED :: WindowStyle Source #

wS_MINIMIZE :: WindowStyle Source #

wS_MINIMIZE :: WindowStyle Source #

wS_MAXIMIZE :: WindowStyle Source #

wS_MAXIMIZE :: WindowStyle Source #

wS_CAPTION :: WindowStyle Source #

wS_CAPTION :: WindowStyle Source #

wS_BORDER :: WindowStyle Source #

wS_BORDER :: WindowStyle Source #

wS_DLGFRAME :: WindowStyle Source #

wS_DLGFRAME :: WindowStyle Source #

wS_VSCROLL :: WindowStyle Source #

wS_VSCROLL :: WindowStyle Source #

wS_HSCROLL :: WindowStyle Source #

wS_HSCROLL :: WindowStyle Source #

wS_SYSMENU :: WindowStyle Source #

wS_SYSMENU :: WindowStyle Source #

type WindowStyleEx = DWORD Source #

wS_THICKFRAME :: WindowStyle Source #

wS_THICKFRAME :: WindowStyle Source #

wS_MINIMIZEBOX :: WindowStyle Source #

wS_EX_DLGMODALFRAME :: WindowStyleEx Source #

wS_EX_DLGMODALFRAME :: WindowStyleEx Source #

wS_MINIMIZEBOX :: WindowStyle Source #

wS_MAXIMIZEBOX :: WindowStyle Source #

wS_EX_NOPARENTNOTIFY :: WindowStyleEx Source #

wS_EX_NOPARENTNOTIFY :: WindowStyleEx Source #

wS_MAXIMIZEBOX :: WindowStyle Source #

wS_GROUP :: WindowStyle Source #

wS_EX_TOPMOST :: WindowStyleEx Source #

wS_EX_TOPMOST :: WindowStyleEx Source #

wS_GROUP :: WindowStyle Source #

wS_TABSTOP :: WindowStyle Source #

wS_EX_ACCEPTFILES :: WindowStyleEx Source #

wS_EX_ACCEPTFILES :: WindowStyleEx Source #

wS_TABSTOP :: WindowStyle Source #

wS_OVERLAPPEDWINDOW :: WindowStyle Source #

wS_EX_TRANSPARENT :: WindowStyleEx Source #

wS_EX_TRANSPARENT :: WindowStyleEx Source #

wS_OVERLAPPEDWINDOW :: WindowStyle Source #

wS_POPUPWINDOW :: WindowStyle Source #

wS_EX_MDICHILD :: WindowStyleEx Source #

wS_EX_MDICHILD :: WindowStyleEx Source #

wS_POPUPWINDOW :: WindowStyle Source #

wS_CHILDWINDOW :: WindowStyle Source #

wS_EX_TOOLWINDOW :: WindowStyleEx Source #

wS_EX_TOOLWINDOW :: WindowStyleEx Source #

wS_CHILDWINDOW :: WindowStyle Source #

wS_TILED :: WindowStyle Source #

wS_EX_WINDOWEDGE :: WindowStyleEx Source #

wS_TILED :: WindowStyle Source #

wS_EX_WINDOWEDGE :: WindowStyleEx Source #

wS_ICONIC :: WindowStyle Source #

wS_EX_CLIENTEDGE :: WindowStyleEx Source #

wS_EX_CLIENTEDGE :: WindowStyleEx Source #

wS_ICONIC :: WindowStyle Source #

wS_SIZEBOX :: WindowStyle Source #

wS_EX_CONTEXTHELP :: WindowStyleEx Source #

wS_EX_CONTEXTHELP :: WindowStyleEx Source #

wS_SIZEBOX :: WindowStyle Source #

wS_TILEDWINDOW :: WindowStyle Source #

wS_EX_RIGHT :: WindowStyleEx Source #

wS_EX_RIGHT :: WindowStyleEx Source #

wS_TILEDWINDOW :: WindowStyle Source #

wS_EX_LEFT :: WindowStyleEx Source #

wS_EX_LEFT :: WindowStyleEx Source #

wS_EX_RTLREADING :: WindowStyleEx Source #

cW_USEDEFAULT :: Pos Source #

wS_EX_RTLREADING :: WindowStyleEx Source #

wS_EX_LTRREADING :: WindowStyleEx Source #

wS_EX_LTRREADING :: WindowStyleEx Source #

wS_EX_LEFTSCROLLBAR :: WindowStyleEx Source #

wS_EX_LEFTSCROLLBAR :: WindowStyleEx Source #

cW_USEDEFAULT :: Pos Source #

wS_EX_RIGHTSCROLLBAR :: WindowStyleEx Source #

wS_EX_RIGHTSCROLLBAR :: WindowStyleEx Source #

type Pos = Int Source #

wS_EX_CONTROLPARENT :: WindowStyleEx Source #

wS_EX_CONTROLPARENT :: WindowStyleEx Source #

type MbPos = Maybe Pos Source #

wS_EX_STATICEDGE :: WindowStyleEx Source #

wS_EX_STATICEDGE :: WindowStyleEx Source #

maybePos :: Maybe Pos -> Pos Source #

wS_EX_APPWINDOW :: WindowStyleEx Source #

wS_EX_APPWINDOW :: WindowStyleEx Source #

maybePos :: Maybe Pos -> Pos Source #

wS_EX_OVERLAPPEDWINDOW :: WindowStyleEx Source #

wS_EX_OVERLAPPEDWINDOW :: WindowStyleEx Source #

type WindowClosure = HWND -> WindowMessage -> WPARAM -> LPARAM -> IO LRESULT Source #

wS_EX_PALETTEWINDOW :: WindowStyleEx Source #

wS_EX_PALETTEWINDOW :: WindowStyleEx Source #

mkWindowClosure :: WindowClosure -> IO (FunPtr WindowClosure) Source #

setWindowClosure :: HWND -> WindowClosure -> IO () Source #

setWindowClosure :: HWND -> WindowClosure -> IO () Source #

c_SetWindowLongPtr :: HWND -> INT -> Ptr LONG -> IO (Ptr LONG) Source #

createWindow :: ClassName -> String -> WindowStyle -> Maybe Pos -> Maybe Pos -> Maybe Pos -> Maybe Pos -> Maybe HWND -> Maybe HMENU -> HINSTANCE -> WindowClosure -> IO HWND 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 #

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 #

defWindowProc :: Maybe HWND -> WindowMessage -> WPARAM -> LPARAM -> IO LRESULT Source #

c_DefWindowProc :: HWND -> WindowMessage -> WPARAM -> LPARAM -> IO LRESULT Source #

getClientRect :: HWND -> IO RECT Source #

getClientRect :: HWND -> IO RECT Source #

c_GetClientRect :: HWND -> Ptr RECT -> IO Bool Source #

getWindowRect :: HWND -> IO RECT Source #

getWindowRect :: HWND -> IO RECT Source #

c_GetWindowRect :: HWND -> Ptr RECT -> IO Bool Source #

invalidateRect :: Maybe HWND -> Maybe LPRECT -> Bool -> IO () Source #

invalidateRect :: Maybe HWND -> Maybe LPRECT -> Bool -> IO () Source #

c_InvalidateRect :: HWND -> LPRECT -> Bool -> IO Bool Source #

screenToClient :: HWND -> POINT -> IO POINT Source #

screenToClient :: HWND -> POINT -> IO POINT Source #

c_ScreenToClient :: HWND -> Ptr POINT -> IO Bool Source #

clientToScreen :: HWND -> POINT -> IO POINT Source #

clientToScreen :: HWND -> POINT -> IO POINT Source #

c_ClientToScreen :: HWND -> Ptr POINT -> IO Bool Source #

setWindowText :: HWND -> String -> IO () Source #

setWindowText :: HWND -> String -> IO () Source #

c_SetWindowText :: HWND -> LPCTSTR -> IO Bool Source #

type PAINTSTRUCT = (HDC, Bool, RECT) Source #

type LPPAINTSTRUCT = Addr Source #

sizeofPAINTSTRUCT :: DWORD Source #

sizeofPAINTSTRUCT :: DWORD Source #

allocaPAINTSTRUCT :: (LPPAINTSTRUCT -> IO a) -> IO a Source #

allocaPAINTSTRUCT :: (LPPAINTSTRUCT -> IO a) -> IO a Source #

beginPaint :: HWND -> LPPAINTSTRUCT -> IO HDC Source #

beginPaint :: HWND -> LPPAINTSTRUCT -> IO HDC Source #

c_BeginPaint :: HWND -> LPPAINTSTRUCT -> IO HDC Source #

endPaint :: HWND -> LPPAINTSTRUCT -> IO () Source #

type ShowWindowControl = DWORD Source #

sW_HIDE :: ShowWindowControl Source #

sW_HIDE :: ShowWindowControl Source #

sW_SHOWNORMAL :: ShowWindowControl Source #

sW_SHOWNORMAL :: ShowWindowControl Source #

sW_SHOWMINIMIZED :: ShowWindowControl Source #

sW_SHOWMINIMIZED :: ShowWindowControl Source #

sW_SHOWMAXIMIZED :: ShowWindowControl Source #

sW_SHOWMAXIMIZED :: ShowWindowControl Source #

sW_MAXIMIZE :: ShowWindowControl Source #

sW_MAXIMIZE :: ShowWindowControl Source #

sW_SHOWNOACTIVATE :: ShowWindowControl Source #

sW_SHOWNOACTIVATE :: ShowWindowControl Source #

sW_SHOW :: ShowWindowControl Source #

sW_SHOW :: ShowWindowControl Source #

sW_MINIMIZE :: ShowWindowControl Source #

showWindow :: HWND -> ShowWindowControl -> IO Bool Source #

sW_MINIMIZE :: ShowWindowControl Source #

sW_SHOWMINNOACTIVE :: ShowWindowControl Source #

sW_SHOWMINNOACTIVE :: ShowWindowControl Source #

sW_SHOWNA :: ShowWindowControl Source #

sW_SHOWNA :: ShowWindowControl Source #

sW_RESTORE :: ShowWindowControl Source #

sW_RESTORE :: ShowWindowControl Source #

adjustWindowRect :: RECT -> WindowStyle -> Bool -> IO RECT 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 #

adjustWindowRectEx :: RECT -> WindowStyle -> Bool -> WindowStyleEx -> IO RECT Source #

c_AdjustWindowRectEx :: Ptr RECT -> WindowStyle -> Bool -> WindowStyleEx -> IO Bool Source #

anyPopup :: IO Bool Source #

arrangeIconicWindows :: HWND -> IO () Source #

arrangeIconicWindows :: HWND -> IO () Source #

c_ArrangeIconicWindows :: HWND -> IO Bool Source #

beginDeferWindowPos :: Int -> IO HDWP Source #

beginDeferWindowPos :: Int -> IO HDWP Source #

c_BeginDeferWindowPos :: Int -> IO HDWP Source #

bringWindowToTop :: HWND -> IO () Source #

bringWindowToTop :: HWND -> IO () Source #

c_BringWindowToTop :: HWND -> IO Bool Source #

childWindowFromPoint :: HWND -> POINT -> IO (Maybe HWND) Source #

childWindowFromPoint :: HWND -> POINT -> IO (Maybe HWND) Source #

childWindowFromPointEx :: HWND -> POINT -> DWORD -> IO (Maybe HWND) Source #

childWindowFromPointEx :: HWND -> POINT -> DWORD -> IO (Maybe HWND) Source #

closeWindow :: HWND -> IO () Source #

closeWindow :: HWND -> IO () Source #

deferWindowPos :: HDWP -> HWND -> HWND -> Int -> Int -> Int -> Int -> SetWindowPosFlags -> IO HDWP 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 #

destroyWindow :: HWND -> IO () Source #

c_DestroyWindow :: HWND -> IO Bool Source #

endDeferWindowPos :: HDWP -> IO () Source #

endDeferWindowPos :: HDWP -> IO () Source #

c_EndDeferWindowPos :: HDWP -> IO Bool Source #

findWindow :: Maybe String -> Maybe String -> IO (Maybe HWND) Source #

findWindow :: Maybe String -> Maybe String -> IO (Maybe HWND) Source #

findWindowByName :: String -> IO (Maybe HWND) Source #

Deprecated: Use 'findWindow Nothing' instead.

findWindowByName :: String -> IO (Maybe HWND) Source #

Deprecated: Use 'findWindow Nothing' instead.

c_FindWindow :: LPCTSTR -> LPCTSTR -> IO HWND Source #

findWindowEx :: Maybe HWND -> Maybe HWND -> Maybe String -> Maybe String -> IO (Maybe HWND) Source #

findWindowEx :: Maybe HWND -> Maybe HWND -> Maybe String -> Maybe String -> IO (Maybe HWND) Source #

c_FindWindowEx :: HWND -> HWND -> LPCTSTR -> LPCTSTR -> IO HWND Source #

flashWindow :: HWND -> Bool -> IO Bool Source #

moveWindow :: HWND -> Int -> Int -> Int -> Int -> Bool -> IO () Source #

moveWindow :: HWND -> Int -> Int -> Int -> Int -> Bool -> IO () Source #

c_MoveWindow :: HWND -> Int -> Int -> Int -> Int -> Bool -> IO Bool Source #

getDesktopWindow :: IO HWND Source #

getForegroundWindow :: IO HWND Source #

getParent :: HWND -> IO HWND Source #

getParent :: HWND -> IO HWND Source #

c_GetParent :: HWND -> IO HWND Source #

getTopWindow :: HWND -> IO HWND Source #

getTopWindow :: HWND -> IO HWND Source #

c_GetTopWindow :: HWND -> IO HWND Source #

type SetWindowPosFlags = UINT Source #

sWP_NOSIZE :: SetWindowPosFlags Source #

sWP_NOSIZE :: SetWindowPosFlags Source #

sWP_NOMOVE :: SetWindowPosFlags Source #

sWP_NOMOVE :: SetWindowPosFlags Source #

sWP_NOZORDER :: SetWindowPosFlags Source #

sWP_NOZORDER :: SetWindowPosFlags Source #

sWP_NOREDRAW :: SetWindowPosFlags Source #

sWP_NOREDRAW :: SetWindowPosFlags Source #

sWP_NOACTIVATE :: SetWindowPosFlags Source #

sWP_NOACTIVATE :: SetWindowPosFlags Source #

sWP_FRAMECHANGED :: SetWindowPosFlags Source #

sWP_FRAMECHANGED :: SetWindowPosFlags Source #

sWP_SHOWWINDOW :: SetWindowPosFlags Source #

sWP_SHOWWINDOW :: SetWindowPosFlags Source #

sWP_HIDEWINDOW :: SetWindowPosFlags Source #

sWP_HIDEWINDOW :: SetWindowPosFlags Source #

sWP_NOCOPYBITS :: SetWindowPosFlags Source #

sWP_NOCOPYBITS :: SetWindowPosFlags Source #

sWP_NOOWNERZORDER :: SetWindowPosFlags Source #

sWP_NOOWNERZORDER :: SetWindowPosFlags Source #

type GetDCExFlags = DWORD Source #

sWP_NOSENDCHANGING :: SetWindowPosFlags Source #

sWP_NOSENDCHANGING :: SetWindowPosFlags Source #

dCX_WINDOW :: GetDCExFlags Source #

sWP_DRAWFRAME :: SetWindowPosFlags Source #

dCX_WINDOW :: GetDCExFlags Source #

sWP_DRAWFRAME :: SetWindowPosFlags Source #

dCX_CACHE :: GetDCExFlags Source #

sWP_NOREPOSITION :: SetWindowPosFlags Source #

dCX_CACHE :: GetDCExFlags Source #

sWP_NOREPOSITION :: SetWindowPosFlags Source #

dCX_CLIPCHILDREN :: GetDCExFlags Source #

dCX_CLIPCHILDREN :: GetDCExFlags Source #

dCX_CLIPSIBLINGS :: GetDCExFlags Source #

dCX_CLIPSIBLINGS :: GetDCExFlags Source #

dCX_PARENTCLIP :: GetDCExFlags Source #

dCX_PARENTCLIP :: GetDCExFlags Source #

dCX_EXCLUDERGN :: GetDCExFlags Source #

dCX_EXCLUDERGN :: GetDCExFlags Source #

dCX_INTERSECTRGN :: GetDCExFlags Source #

dCX_INTERSECTRGN :: GetDCExFlags Source #

getDCEx :: HWND -> HRGN -> GetDCExFlags -> IO HDC Source #

dCX_LOCKWINDOWUPDATE :: GetDCExFlags Source #

getDCEx :: HWND -> HRGN -> GetDCExFlags -> IO HDC Source #

dCX_LOCKWINDOWUPDATE :: GetDCExFlags Source #

c_GetDCEx :: HWND -> PRGN -> GetDCExFlags -> IO HDC Source #

getDC :: Maybe HWND -> IO HDC Source #

getDC :: Maybe HWND -> IO HDC Source #

c_GetDC :: HWND -> IO HDC Source #

getWindowDC :: Maybe HWND -> IO HDC Source #

getWindowDC :: Maybe HWND -> IO HDC Source #

c_GetWindowDC :: HWND -> IO HDC Source #

releaseDC :: Maybe HWND -> HDC -> IO () Source #

releaseDC :: Maybe HWND -> HDC -> IO () Source #

c_ReleaseDC :: HWND -> HDC -> IO Bool Source #

getDCOrgEx :: HDC -> IO POINT Source #

getDCOrgEx :: HDC -> IO POINT Source #

c_GetDCOrgEx :: HDC -> Ptr POINT -> IO Bool Source #

hideCaret :: HWND -> IO () Source #

hideCaret :: HWND -> IO () Source #

c_HideCaret :: HWND -> IO Bool Source #

showCaret :: HWND -> IO () Source #

showCaret :: HWND -> IO () Source #

c_ShowCaret :: HWND -> IO Bool Source #

createCaret :: HWND -> HBITMAP -> Maybe INT -> Maybe INT -> IO () Source #

createCaret :: HWND -> HBITMAP -> Maybe INT -> Maybe INT -> IO () Source #

c_CreateCaret :: HWND -> HBITMAP -> INT -> INT -> IO Bool Source #

destroyCaret :: IO () Source #

destroyCaret :: IO () Source #

c_DestroyCaret :: IO Bool Source #

getCaretPos :: IO POINT Source #

getCaretPos :: IO POINT Source #

c_GetCaretPos :: Ptr POINT -> IO Bool Source #

setCaretPos :: POINT -> IO () Source #

setCaretPos :: POINT -> IO () Source #

c_SetCaretPos :: LONG -> LONG -> IO Bool Source #

type LPMSG = Addr Source #

allocaMessage :: (LPMSG -> IO a) -> IO a Source #

allocaMessage :: (LPMSG -> IO a) -> IO a Source #

getMessage :: LPMSG -> Maybe HWND -> IO Bool Source #

getMessage :: LPMSG -> Maybe HWND -> IO Bool Source #

c_GetMessage :: LPMSG -> HWND -> UINT -> UINT -> IO LONG Source #

peekMessage :: LPMSG -> Maybe HWND -> UINT -> UINT -> UINT -> IO () Source #

peekMessage :: LPMSG -> Maybe HWND -> UINT -> UINT -> UINT -> IO () Source #

c_PeekMessage :: LPMSG -> HWND -> UINT -> UINT -> UINT -> IO LONG Source #

translateMessage :: LPMSG -> IO BOOL Source #

updateWindow :: HWND -> IO () Source #

updateWindow :: HWND -> IO () Source #

c_UpdateWindow :: HWND -> IO Bool Source #

dispatchMessage :: LPMSG -> IO LONG Source #

sendMessage :: HWND -> WindowMessage -> WPARAM -> LPARAM -> IO LRESULT Source #