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