Win32 Libraries (Win32 package)Source codeContentsIndex
Graphics.Win32.Misc
Portabilityportable
Stabilityprovisional
MaintainerEsa Ilari Vuokko <ei@vuokko.info>
Description
A collection of FFI declarations for interfacing with Win32.
Documentation
type Accelerator = LPCTSTR
type Cursor = LPTSTR
type Icon = LPTSTR
loadAccelerators :: Maybe HINSTANCE -> Accelerator -> IO HACCEL
c_LoadAccelerators :: HINSTANCE -> Accelerator -> IO HACCEL
loadCursor :: Maybe HINSTANCE -> Cursor -> IO HCURSOR
c_LoadCursor :: HINSTANCE -> Cursor -> IO HCURSOR
loadIcon :: Maybe HINSTANCE -> Icon -> IO HICON
c_LoadIcon :: HINSTANCE -> Icon -> IO HICON
iDC_ARROW :: Cursor
iDC_IBEAM :: Cursor
iDC_WAIT :: Cursor
iDC_CROSS :: Cursor
iDC_UPARROW :: Cursor
iDC_SIZENWSE :: Cursor
iDC_SIZENESW :: Cursor
iDC_SIZEWE :: Cursor
iDC_SIZENS :: Cursor
iDI_APPLICATION :: Icon
iDI_HAND :: Icon
iDI_QUESTION :: Icon
iDI_EXCLAMATION :: Icon
iDI_ASTERISK :: Icon
type MBStyle = UINT
mB_OK :: MBStyle
mB_OKCANCEL :: MBStyle
mB_ABORTRETRYIGNORE :: MBStyle
mB_YESNOCANCEL :: MBStyle
mB_YESNO :: MBStyle
mB_RETRYCANCEL :: MBStyle
mB_ICONHAND :: MBStyle
mB_ICONQUESTION :: MBStyle
mB_ICONEXCLAMATION :: MBStyle
mB_ICONASTERISK :: MBStyle
mB_ICONINFORMATION :: MBStyle
mB_ICONSTOP :: MBStyle
mB_DEFBUTTON1 :: MBStyle
mB_DEFBUTTON2 :: MBStyle
mB_DEFBUTTON3 :: MBStyle
mB_APPLMODAL :: MBStyle
mB_SYSTEMMODAL :: MBStyle
mB_TASKMODAL :: MBStyle
mB_SETFOREGROUND :: MBStyle
type MBStatus = UINT
iDABORT :: MBStatus
iDCANCEL :: MBStatus
iDIGNORE :: MBStatus
iDNO :: MBStatus
iDOK :: MBStatus
iDRETRY :: MBStatus
iDYES :: MBStatus
messageBox :: HWND -> String -> String -> MBStyle -> IO MBStatus
c_MessageBox :: HWND -> LPCTSTR -> LPCTSTR -> MBStyle -> IO MBStatus
type StdHandleId = DWORD
sTD_INPUT_HANDLE :: StdHandleId
sTD_OUTPUT_HANDLE :: StdHandleId
sTD_ERROR_HANDLE :: StdHandleId
getStdHandle :: StdHandleId -> IO HANDLE
c_GetStdHandle :: StdHandleId -> IO HANDLE
transformedEllipse :: HDC -> POINT -> POINT -> POINT -> IO ()
c_transformedEllipse :: HDC -> LONG -> LONG -> LONG -> LONG -> LONG -> LONG -> IO Bool
getCursorPos :: IO POINT
c_GetCursorPos :: Ptr POINT -> IO Bool
setCursorPos :: POINT -> IO ()
c_SetCursorPos :: LONG -> LONG -> IO Bool
clipCursor :: RECT -> IO ()
c_ClipCursor :: Ptr RECT -> IO Bool
getClipCursor :: IO RECT
c_GetClipCursor :: Ptr RECT -> IO Bool
type ExitOption = UINT
eWX_FORCE :: ExitOption
eWX_LOGOFF :: ExitOption
eWX_POWEROFF :: ExitOption
eWX_REBOOT :: ExitOption
eWX_SHUTDOWN :: ExitOption
exitWindowsEx :: ExitOption -> IO ()
c_ExitWindowsEx :: ExitOption -> DWORD -> IO Bool
exitWindows :: IO ()
type Beep = UINT
type MbBeep = Maybe Beep
maybeBeep :: Maybe Beep -> Beep
type Duration = Int
type MbDuration = Maybe Duration
maybeDuration :: Maybe Duration -> Duration
messageBeep :: Maybe Beep -> IO ()
c_MessageBeep :: Beep -> IO ()
beep :: WORD -> MbDuration -> IO ()
c_Beep :: WORD -> Duration -> IO Bool
type TimerId = UINT
type TIMERPROC = FunPtr (HWND -> UINT -> TimerId -> DWORD -> IO ())
setWinTimer :: HWND -> TimerId -> UINT -> IO TimerId
c_SetTimer :: HWND -> TimerId -> UINT -> TIMERPROC -> IO TimerId
killTimer :: Maybe HWND -> TimerId -> IO ()
c_KillTimer :: HWND -> TimerId -> IO Bool
type MilliSeconds = DWORD
timeGetTime :: IO MilliSeconds
Produced by Haddock version 0.8