Win32-2.2.0.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
mFT_STRING :: MenuFlagSource
mFT_BITMAP :: MenuFlagSource
mFT_MENUBARBREAK :: MenuFlagSource
mFT_MENUBREAK :: MenuFlagSource
mFT_OWNERDRAW :: MenuFlagSource
mFT_RADIOCHECK :: MenuFlagSource
mFT_SEPARATOR :: MenuFlagSource
mFS_GRAYED :: MenuStateSource
mFT_RIGHTORDER :: MenuFlagSource
mFS_DISABLED :: MenuStateSource
mFT_RIGHTJUSTIFY :: MenuFlagSource
mFS_CHECKED :: MenuStateSource
mFS_HILITE :: MenuStateSource
mFS_ENABLED :: MenuStateSource
mFS_UNCHECKED :: MenuStateSource
type TrackMenuFlag = UINTSource
mFS_UNHILITE :: MenuStateSource
tPM_LEFTBUTTON :: TrackMenuFlagSource
mFS_DEFAULT :: MenuStateSource
tPM_RIGHTBUTTON :: TrackMenuFlagSource
tPM_LEFTALIGN :: TrackMenuFlagSource
tPM_CENTERALIGN :: TrackMenuFlagSource
tPM_RIGHTALIGN :: TrackMenuFlagSource
tPM_TOPALIGN :: TrackMenuFlagSource
tPM_VCENTERALIGN :: TrackMenuFlagSource
tPM_BOTTOMALIGN :: TrackMenuFlagSource
type SystemMenuCommand = UINTSource
tPM_HORIZONTAL :: TrackMenuFlagSource
sC_SIZE :: SystemMenuCommandSource
tPM_VERTICAL :: TrackMenuFlagSource
sC_MOVE :: SystemMenuCommandSource
tPM_NONOTIFY :: TrackMenuFlagSource
sC_MINIMIZE :: SystemMenuCommandSource
tPM_RETURNCMD :: TrackMenuFlagSource
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
isMenu :: HMENU -> IO BoolSource
sC_RESTORE :: SystemMenuCommandSource
getSystemMenu :: HWND -> Bool -> IO (Maybe HMENU)Source
sC_TASKLIST :: SystemMenuCommandSource
sC_SCREENSAVE :: SystemMenuCommandSource
c_GetSystemMenu :: HWND -> Bool -> IO HMENUSource
sC_HOTKEY :: SystemMenuCommandSource
getMenu :: HWND -> IO (Maybe HMENU)Source
sC_DEFAULT :: SystemMenuCommandSource
sC_MONITORPOWER :: SystemMenuCommandSource
c_GetMenu :: HWND -> IO HMENUSource
sC_CONTEXTHELP :: SystemMenuCommandSource
getMenuDefaultItem :: HMENU -> Bool -> GMDIFlag -> IO MenuItemSource
sC_SEPARATOR :: SystemMenuCommandSource
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
pokeFMask :: Ptr MenuItemInfo -> MenuItemMask -> IO ()Source
mIIM_TYPE :: MenuItemMaskSource
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 2.3.0