Win32-2.1.0.0: A binding to part of the Win32 libraryContentsIndex
Graphics.Win32.Menu
Portabilityportable
Stabilityprovisional
MaintainerEsa Ilari Vuokko <ei@vuokko.info>
Description
A collection of FFI declarations for interfacing with Win32.
Documentation
type MenuName = LPCTSTR
checkMenuItem :: HMENU -> MenuItem -> MenuFlag -> IO Bool
c_CheckMenuItem :: HMENU -> UINT -> UINT -> IO DWORD
checkMenuRadioItem :: HMENU -> MenuItem -> MenuItem -> MenuItem -> MenuFlag -> IO ()
c_CheckMenuRadioItem :: HMENU -> UINT -> UINT -> UINT -> UINT -> IO Bool
createMenu :: IO HMENU
c_CreateMenu :: IO HMENU
createPopupMenu :: IO HMENU
c_CreatePopupMenu :: IO HMENU
drawMenuBar :: HWND -> IO ()
c_DrawMenuBar :: HWND -> IO Bool
type MenuState = MenuFlag
enableMenuItem :: HMENU -> MenuItem -> MenuFlag -> IO MenuState
c_EnableMenuItem :: HMENU -> UINT -> UINT -> IO MenuState
type GMDIFlag = UINT
type MenuFlag = UINT
gMDI_USEDISABLED :: GMDIFlag
gMDI_GOINTOPOPUPS :: GMDIFlag
mF_BYCOMMAND :: MenuFlag
mF_BYPOSITION :: MenuFlag
mF_CHECKED :: MenuFlag
type MenuItem = UINT
mF_INSERT :: MenuItem
mF_CHANGE :: MenuItem
mF_APPEND :: MenuItem
mF_DELETE :: MenuItem
mF_REMOVE :: MenuItem
mF_USECHECKBITMAPS :: MenuItem
mF_POPUP :: MenuItem
mF_SYSMENU :: MenuItem
mF_HELP :: MenuItem
mF_MOUSESELECT :: MenuItem
mF_END :: MenuItem
mFT_STRING :: MenuFlag
mFT_BITMAP :: MenuFlag
mFT_MENUBARBREAK :: MenuFlag
mFT_MENUBREAK :: MenuFlag
mFT_OWNERDRAW :: MenuFlag
mFT_RADIOCHECK :: MenuFlag
mFT_SEPARATOR :: MenuFlag
mFT_RIGHTORDER :: MenuFlag
mFT_RIGHTJUSTIFY :: MenuFlag
mFS_GRAYED :: MenuState
mFS_DISABLED :: MenuState
mFS_CHECKED :: MenuState
mFS_HILITE :: MenuState
mFS_ENABLED :: MenuState
mFS_UNCHECKED :: MenuState
mFS_UNHILITE :: MenuState
mFS_DEFAULT :: MenuState
type TrackMenuFlag = UINT
tPM_LEFTBUTTON :: TrackMenuFlag
tPM_RIGHTBUTTON :: TrackMenuFlag
tPM_LEFTALIGN :: TrackMenuFlag
tPM_CENTERALIGN :: TrackMenuFlag
tPM_RIGHTALIGN :: TrackMenuFlag
tPM_TOPALIGN :: TrackMenuFlag
tPM_VCENTERALIGN :: TrackMenuFlag
tPM_BOTTOMALIGN :: TrackMenuFlag
tPM_HORIZONTAL :: TrackMenuFlag
tPM_VERTICAL :: TrackMenuFlag
tPM_NONOTIFY :: TrackMenuFlag
tPM_RETURNCMD :: TrackMenuFlag
type SystemMenuCommand = UINT
sC_SIZE :: SystemMenuCommand
sC_MOVE :: SystemMenuCommand
sC_MINIMIZE :: SystemMenuCommand
sC_MAXIMIZE :: SystemMenuCommand
sC_NEXTWINDOW :: SystemMenuCommand
sC_PREVWINDOW :: SystemMenuCommand
sC_CLOSE :: SystemMenuCommand
sC_VSCROLL :: SystemMenuCommand
sC_HSCROLL :: SystemMenuCommand
sC_MOUSEMENU :: SystemMenuCommand
sC_KEYMENU :: SystemMenuCommand
sC_ARRANGE :: SystemMenuCommand
sC_RESTORE :: SystemMenuCommand
sC_TASKLIST :: SystemMenuCommand
sC_SCREENSAVE :: SystemMenuCommand
sC_HOTKEY :: SystemMenuCommand
sC_DEFAULT :: SystemMenuCommand
sC_MONITORPOWER :: SystemMenuCommand
sC_CONTEXTHELP :: SystemMenuCommand
sC_SEPARATOR :: SystemMenuCommand
isMenu :: HMENU -> IO Bool
getSystemMenu :: HWND -> Bool -> IO (Maybe HMENU)
c_GetSystemMenu :: HWND -> Bool -> IO HMENU
getMenu :: HWND -> IO (Maybe HMENU)
c_GetMenu :: HWND -> IO HMENU
getMenuDefaultItem :: HMENU -> Bool -> GMDIFlag -> IO MenuItem
c_GetMenuDefaultItem :: HMENU -> Bool -> UINT -> IO UINT
getMenuState :: HMENU -> MenuItem -> MenuFlag -> IO MenuState
c_GetMenuState :: HMENU -> UINT -> UINT -> IO MenuState
getSubMenu :: HMENU -> MenuItem -> IO (Maybe HMENU)
c_GetSubMenu :: HMENU -> UINT -> IO HMENU
setMenu :: HWND -> HMENU -> IO ()
c_SetMenu :: HWND -> HMENU -> IO Bool
getMenuItemCount :: HMENU -> IO Int
c_GetMenuItemCount :: HMENU -> IO Int
type MenuID = UINT
getMenuItemID :: HMENU -> MenuItem -> IO MenuID
c_GetMenuItemID :: HMENU -> UINT -> IO MenuID
data MenuItemInfo
Constructors
MenuItemInfo
menuItemType :: MenuFlag
menuItemState :: MenuState
menuItemID :: UINT
menuItemSubMenu :: HMENU
menuItemBitmapChecked :: HBITMAP
menuItemBitmapUnchecked :: HBITMAP
menuItemData :: DWORD
menuItemTypeData :: String
peekMenuItemInfo :: Ptr MenuItemInfo -> IO MenuItemInfo
allocaMenuItemInfo :: (Ptr MenuItemInfo -> IO a) -> IO a
withMenuItemInfo :: MenuItemInfo -> (Ptr MenuItemInfo -> IO a) -> IO a
type MenuItemMask = UINT
mIIM_CHECKMARKS :: MenuItemMask
mIIM_DATA :: MenuItemMask
mIIM_ID :: MenuItemMask
mIIM_STATE :: MenuItemMask
mIIM_SUBMENU :: MenuItemMask
mIIM_TYPE :: MenuItemMask
pokeFMask :: Ptr MenuItemInfo -> MenuItemMask -> IO ()
getMenuItemInfo :: HMENU -> MenuItem -> Bool -> MenuItemMask -> IO MenuItemInfo
c_GetMenuItemInfo :: HMENU -> UINT -> Bool -> Ptr MenuItemInfo -> IO Bool
getMenuItemRect :: HWND -> HMENU -> MenuItem -> IO RECT
c_GetMenuItemRect :: HWND -> HMENU -> UINT -> LPRECT -> IO Bool
hiliteMenuItem :: HWND -> HMENU -> MenuItem -> MenuFlag -> IO Bool
insertMenuItem :: HMENU -> MenuItem -> Bool -> MenuItemInfo -> IO ()
c_InsertMenuItem :: HMENU -> UINT -> Bool -> Ptr MenuItemInfo -> IO Bool
type Menu = LPCTSTR
loadMenu :: Maybe HINSTANCE -> Menu -> IO HMENU
c_LoadMenu :: HINSTANCE -> Menu -> IO HMENU
menuItemFromPoint :: HWND -> HMENU -> POINT -> IO UINT
setMenuDefaultItem :: HMENU -> MenuItem -> Bool -> IO ()
c_SetMenuDefaultItem :: HMENU -> MenuItem -> Bool -> IO Bool
setMenuItemBitmaps :: HMENU -> MenuItem -> MenuFlag -> HBITMAP -> HBITMAP -> IO ()
c_SetMenuItemBitmaps :: HMENU -> UINT -> UINT -> HBITMAP -> HBITMAP -> IO Bool
destroyMenu :: HMENU -> IO ()
c_DestroyMenu :: HMENU -> IO Bool
deleteMenu :: HMENU -> MenuItem -> MenuFlag -> IO ()
c_DeleteMenu :: HMENU -> UINT -> UINT -> IO Bool
setMenuItemInfo :: HMENU -> MenuItem -> Bool -> MenuItemMask -> MenuItemInfo -> IO ()
c_SetMenuItemInfo :: HMENU -> UINT -> Bool -> Ptr MenuItemInfo -> IO Bool
trackPopupMenu :: HMENU -> TrackMenuFlag -> Int -> Int -> HWND -> RECT -> IO ()
c_TrackPopupMenu :: HMENU -> TrackMenuFlag -> Int -> Int -> Int -> HWND -> LPRECT -> IO Bool
type TPMPARAMS = ()
withTPMPARAMS :: Ptr RECT -> (Ptr TPMPARAMS -> IO a) -> IO a
trackPopupMenuEx :: HMENU -> TrackMenuFlag -> Int -> Int -> HWND -> Maybe (Ptr RECT) -> IO ()
c_TrackPopupMenuEx :: HMENU -> TrackMenuFlag -> Int -> Int -> HWND -> Ptr TPMPARAMS -> IO Bool
appendMenu :: HMENU -> MenuFlag -> MenuID -> String -> IO ()
c_AppendMenu :: HMENU -> UINT -> MenuID -> LPCTSTR -> IO Bool
insertMenu :: HMENU -> MenuItem -> MenuFlag -> MenuID -> String -> IO ()
c_InsertMenu :: HMENU -> UINT -> UINT -> MenuID -> LPCTSTR -> IO Bool
modifyMenu :: HMENU -> MenuItem -> MenuFlag -> MenuID -> String -> IO ()
c_ModifyMenu :: HMENU -> UINT -> UINT -> MenuID -> LPCTSTR -> IO Bool
removeMenu :: HMENU -> MenuItem -> MenuFlag -> IO ()
c_RemoveMenu :: HMENU -> UINT -> UINT -> IO Bool
Produced by Haddock version 0.8