fltkhs-0.8.0.3: FLTK bindings
Safe HaskellNone
LanguageHaskell2010

Graphics.UI.FLTK.LowLevel.Base.MenuPrim

Synopsis

Documentation

Hierarchy

Functions

add:: (Parent a MenuItemBase) => Ref MenuPrimBase -> Text -> Maybe Shortcut -> Maybe (Ref a-> IO ()) -> MenuItemFlags -> IO (AtIndex)

addAndGetMenuItem:: (Parent a MenuItemBase) => Ref MenuPrimBase -> Text -> Maybe Shortcut -> Maybe (Ref a-> IO ()) -> MenuItemFlags -> IO (Ref MenuItemBase)

addName :: Ref MenuPrimBase -> Text -> IO ()

clear :: Ref MenuPrimBase -> IO ()

clearSubmenu :: Ref MenuPrimBase -> AtIndex -> IO (Either OutOfRange ())

copy:: (Parent a MenuItemBase) => Ref MenuPrimBase -> Ref a-> IO ()

destroy :: Ref MenuPrimBase -> IO ()

findIndex :: Ref MenuPrimBase -> MenuItemLocator -> IO (Maybe Int)

getDownBox :: Ref MenuPrimBase -> IO (Boxtype)

getDownColor :: Ref MenuPrimBase -> IO (Color)

getMenu :: Ref MenuPrimBase -> IO [(Maybe (Ref MenuItemBase]))

getMode :: Ref MenuPrimBase -> AtIndex -> IO (Maybe MenuItemFlags)

getSize :: Ref MenuPrimBase -> IO (Int)

getText :: Ref MenuPrimBase -> IO Text

getTextWithIndex :: Ref MenuPrimBase -> AtIndex -> IO Text

getTextcolor :: Ref MenuPrimBase -> IO (Color)

getTextfont :: Ref MenuPrimBase -> IO (Font)

getTextsize :: Ref MenuPrimBase -> IO (FontSize)

getValue :: Ref MenuPrimBase -> IO (Maybe AtIndex)

global :: Ref MenuPrimBase -> IO ()

handle :: Ref MenuPrimBase -> Event -> IO (Either UnknownEvent ())

hide :: Ref MenuPrimBase -> IO ()

insert:: (Parent a MenuPrimBase) => Ref MenuPrimBase -> AtIndex -> Text -> Maybe Shortcut -> (Ref a -> IO ()) -> MenuItemFlags -> IO (AtIndex)

itemPathname:: (Parent a MenuItemBase) => Ref MenuPrimBase -> Ref a -> IO (Maybe Text)

itemPathnameRecent :: Ref MenuPrimBase -> IO (Maybe String)

mvalue :: Ref MenuPrimBase -> IO (Maybe (Ref MenuItemBase))

picked:: (Parent a MenuItemBase, Parent b MenuItemBase) => Ref MenuPrimBase -> Ref a -> IO (Maybe (Ref b))

remove :: Ref MenuPrimBase -> AtIndex -> IO ()

replace :: Ref MenuPrimBase -> AtIndex -> Text -> IO ()

resize :: Ref MenuPrimBase -> Rectangle -> IO ()

setDownBox :: Ref MenuPrimBase -> Boxtype -> IO ()

setDownColor :: Ref MenuPrimBase -> Color -> IO ()

setMenu:: (Parent a MenuItemBase) => Ref MenuPrimBase -> [Ref a] -> IO ()

setMode :: Ref MenuPrimBase -> AtIndex -> MenuItemFlags -> IO ()

setShortcut :: Ref MenuPrimBase -> AtIndex -> ShortcutKeySequence -> IO ()

setSize :: Ref MenuPrimBase -> Size -> IO ()

setTextcolor :: Ref MenuPrimBase -> Color -> IO ()

setTextfont :: Ref MenuPrimBase -> Font -> IO ()

setTextsize :: Ref MenuPrimBase -> FontSize -> IO ()

setValue :: Ref MenuPrimBase -> MenuItemReference -> IO (Either NoChange ())

setonly:: (Parent a MenuItemBase) => Ref MenuPrimBase -> Ref a -> IO ()

showWidget :: Ref MenuPrimBase -> IO ()

testShortcut:: (Parent a MenuItemBase) => Ref MenuPrimBase -> IO (Maybe (Ref a))

Orphan instances

(Parent a MenuItemBase, impl ~ (Text -> Maybe Shortcut -> Maybe (Ref a -> IO ()) -> MenuItemFlags -> IO (Ref MenuItemBase))) => Op (AddAndGetMenuItem ()) MenuPrimBase orig impl Source # 
Instance details

Methods

runOp :: AddAndGetMenuItem () -> orig -> Ref MenuPrimBase -> impl Source #

impl ~ (Color -> IO ()) => Op (SetTextcolor ()) MenuPrimBase orig impl Source # 
Instance details

Methods

runOp :: SetTextcolor () -> orig -> Ref MenuPrimBase -> impl Source #

impl ~ IO Color => Op (GetTextcolor ()) MenuPrimBase orig impl Source # 
Instance details

Methods

runOp :: GetTextcolor () -> orig -> Ref MenuPrimBase -> impl Source #

impl ~ (FontSize -> IO ()) => Op (SetTextsize ()) MenuPrimBase orig impl Source # 
Instance details

Methods

runOp :: SetTextsize () -> orig -> Ref MenuPrimBase -> impl Source #

impl ~ IO FontSize => Op (GetTextsize ()) MenuPrimBase orig impl Source # 
Instance details

Methods

runOp :: GetTextsize () -> orig -> Ref MenuPrimBase -> impl Source #

impl ~ (Font -> IO ()) => Op (SetTextfont ()) MenuPrimBase orig impl Source # 
Instance details

Methods

runOp :: SetTextfont () -> orig -> Ref MenuPrimBase -> impl Source #

impl ~ IO Font => Op (GetTextfont ()) MenuPrimBase orig impl Source # 
Instance details

Methods

runOp :: GetTextfont () -> orig -> Ref MenuPrimBase -> impl Source #

impl ~ (AtIndex -> IO Text) => Op (GetTextWithIndex ()) MenuPrimBase orig impl Source # 
Instance details

Methods

runOp :: GetTextWithIndex () -> orig -> Ref MenuPrimBase -> impl Source #

impl ~ IO Text => Op (GetText ()) MenuPrimBase orig impl Source # 
Instance details

Methods

runOp :: GetText () -> orig -> Ref MenuPrimBase -> impl Source #

impl ~ IO (Maybe (Ref MenuItemBase)) => Op (Mvalue ()) MenuPrimBase orig impl Source # 
Instance details

Methods

runOp :: Mvalue () -> orig -> Ref MenuPrimBase -> impl Source #

impl ~ (AtIndex -> IO (Maybe MenuItemFlags)) => Op (GetMode ()) MenuPrimBase orig impl Source # 
Instance details

Methods

runOp :: GetMode () -> orig -> Ref MenuPrimBase -> impl Source #

impl ~ (AtIndex -> MenuItemFlags -> IO ()) => Op (SetMode ()) MenuPrimBase orig impl Source # 
Instance details

Methods

runOp :: SetMode () -> orig -> Ref MenuPrimBase -> impl Source #

impl ~ (AtIndex -> IO ()) => Op (Remove ()) MenuPrimBase orig impl Source # 
Instance details

Methods

runOp :: Remove () -> orig -> Ref MenuPrimBase -> impl Source #

impl ~ (AtIndex -> Text -> IO ()) => Op (Replace ()) MenuPrimBase orig impl Source # 
Instance details

Methods

runOp :: Replace () -> orig -> Ref MenuPrimBase -> impl Source #

impl ~ (Text -> IO ()) => Op (AddName ()) MenuPrimBase orig impl Source # 
Instance details

Methods

runOp :: AddName () -> orig -> Ref MenuPrimBase -> impl Source #

impl ~ (AtIndex -> IO (Either OutOfRange ())) => Op (ClearSubmenu ()) MenuPrimBase orig impl Source # 
Instance details

Methods

runOp :: ClearSubmenu () -> orig -> Ref MenuPrimBase -> impl Source #

impl ~ (Size -> IO ()) => Op (SetSize ()) MenuPrimBase orig impl Source # 
Instance details

Methods

runOp :: SetSize () -> orig -> Ref MenuPrimBase -> impl Source #

(Parent a MenuItemBase, impl ~ (Ref a -> IO ())) => Op (Copy ()) MenuPrimBase orig impl Source # 
Instance details

Methods

runOp :: Copy () -> orig -> Ref MenuPrimBase -> impl Source #

(Parent a MenuItemBase, impl ~ ([Ref a] -> IO ())) => Op (SetMenu ()) MenuPrimBase orig impl Source # 
Instance details

Methods

runOp :: SetMenu () -> orig -> Ref MenuPrimBase -> impl Source #

impl ~ IO [Maybe (Ref MenuItemBase)] => Op (GetMenu ()) MenuPrimBase orig impl Source # 
Instance details

Methods

runOp :: GetMenu () -> orig -> Ref MenuPrimBase -> impl Source #

impl ~ IO () => Op (Global ()) MenuPrimBase orig impl Source # 
Instance details

Methods

runOp :: Global () -> orig -> Ref MenuPrimBase -> impl Source #

impl ~ (MenuItemLocator -> IO (Maybe Int)) => Op (FindIndex ()) MenuPrimBase orig impl Source # 
Instance details

Methods

runOp :: FindIndex () -> orig -> Ref MenuPrimBase -> impl Source #

(Parent a MenuItemBase, Parent b MenuItemBase, impl ~ (Ref a -> IO (Maybe (Ref b)))) => Op (Picked ()) MenuPrimBase orig impl Source # 
Instance details

Methods

runOp :: Picked () -> orig -> Ref MenuPrimBase -> impl Source #

impl ~ IO (Maybe String) => Op (ItemPathnameRecent ()) MenuPrimBase orig impl Source # 
Instance details

Methods

runOp :: ItemPathnameRecent () -> orig -> Ref MenuPrimBase -> impl Source #

(Parent a MenuItemBase, impl ~ (Ref a -> IO (Maybe Text))) => Op (ItemPathname ()) MenuPrimBase orig impl Source # 
Instance details

Methods

runOp :: ItemPathname () -> orig -> Ref MenuPrimBase -> impl Source #

impl ~ IO Int => Op (GetSize ()) MenuPrimBase orig impl Source # 
Instance details

Methods

runOp :: GetSize () -> orig -> Ref MenuPrimBase -> impl Source #

(Parent a MenuItemBase, impl ~ IO (Maybe (Ref a))) => Op (TestShortcut ()) MenuPrimBase orig impl Source # 
Instance details

Methods

runOp :: TestShortcut () -> orig -> Ref MenuPrimBase -> impl Source #

impl ~ (Color -> IO ()) => Op (SetDownColor ()) MenuPrimBase orig impl Source # 
Instance details

Methods

runOp :: SetDownColor () -> orig -> Ref MenuPrimBase -> impl Source #

impl ~ IO Color => Op (GetDownColor ()) MenuPrimBase orig impl Source # 
Instance details

Methods

runOp :: GetDownColor () -> orig -> Ref MenuPrimBase -> impl Source #

impl ~ (Boxtype -> IO ()) => Op (SetDownBox ()) MenuPrimBase orig impl Source # 
Instance details

Methods

runOp :: SetDownBox () -> orig -> Ref MenuPrimBase -> impl Source #

impl ~ IO Boxtype => Op (GetDownBox ()) MenuPrimBase orig impl Source # 
Instance details

Methods

runOp :: GetDownBox () -> orig -> Ref MenuPrimBase -> impl Source #

impl ~ (AtIndex -> ShortcutKeySequence -> IO ()) => Op (SetShortcut ()) MenuPrimBase orig impl Source # 
Instance details

Methods

runOp :: SetShortcut () -> orig -> Ref MenuPrimBase -> impl Source #

(Parent a MenuItemBase, impl ~ (Ref a -> IO ())) => Op (Setonly ()) MenuPrimBase orig impl Source # 
Instance details

Methods

runOp :: Setonly () -> orig -> Ref MenuPrimBase -> impl Source #

impl ~ (MenuItemReference -> IO (Either NoChange ())) => Op (SetValue ()) MenuPrimBase orig impl Source # 
Instance details

Methods

runOp :: SetValue () -> orig -> Ref MenuPrimBase -> impl Source #

impl ~ IO (Maybe AtIndex) => Op (GetValue ()) MenuPrimBase orig impl Source # 
Instance details

Methods

runOp :: GetValue () -> orig -> Ref MenuPrimBase -> impl Source #

impl ~ IO () => Op (Clear ()) MenuPrimBase orig impl Source # 
Instance details

Methods

runOp :: Clear () -> orig -> Ref MenuPrimBase -> impl Source #

(Parent a MenuPrimBase, impl ~ (AtIndex -> Text -> Maybe Shortcut -> (Ref a -> IO ()) -> MenuItemFlags -> IO AtIndex)) => Op (Insert ()) MenuPrimBase orig impl Source # 
Instance details

Methods

runOp :: Insert () -> orig -> Ref MenuPrimBase -> impl Source #

(Parent a MenuItemBase, impl ~ (Text -> Maybe Shortcut -> Maybe (Ref a -> IO ()) -> MenuItemFlags -> IO AtIndex)) => Op (Add ()) MenuPrimBase orig impl Source # 
Instance details

Methods

runOp :: Add () -> orig -> Ref MenuPrimBase -> impl Source #

impl ~ (Rectangle -> IO ()) => Op (Resize ()) MenuPrimBase orig impl Source # 
Instance details

Methods

runOp :: Resize () -> orig -> Ref MenuPrimBase -> impl Source #

impl ~ IO () => Op (Hide ()) MenuPrimBase orig impl Source # 
Instance details

Methods

runOp :: Hide () -> orig -> Ref MenuPrimBase -> impl Source #

impl ~ IO () => Op (ShowWidget ()) MenuPrimBase orig impl Source # 
Instance details

Methods

runOp :: ShowWidget () -> orig -> Ref MenuPrimBase -> impl Source #

impl ~ (Event -> IO (Either UnknownEvent ())) => Op (Handle ()) MenuPrimBase orig impl Source # 
Instance details

Methods

runOp :: Handle () -> orig -> Ref MenuPrimBase -> impl Source #

impl ~ IO () => Op (Destroy ()) MenuPrimBase orig impl Source # 
Instance details

Methods

runOp :: Destroy () -> orig -> Ref MenuPrimBase -> impl Source #