| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Graphics.UI.FLTK.LowLevel.MenuItem
- menuItemNew :: IO (Ref MenuItem)
- addMenuItem :: Parent menuItem MenuItem => Either (Ref MenuPrim) (Ref MenuItem) -> Text -> Maybe Shortcut -> Maybe (Ref menuItem -> IO ()) -> MenuItemFlags -> (Ptr () -> Text -> CInt -> FunPtr CallbackWithUserDataPrim -> Int -> IO Int) -> (Ptr () -> Text -> Text -> FunPtr CallbackWithUserDataPrim -> Int -> IO Int) -> IO MenuItemIndex
- newtype MenuItemIndex = MenuItemIndex Int
- newtype MenuItemName = MenuItemName Text
- data MenuItemPointer = Parent a MenuItem => MenuItemPointer (Ref a)
- data MenuItemReference
- data MenuItemLocator
Documentation
addMenuItem :: Parent menuItem MenuItem => Either (Ref MenuPrim) (Ref MenuItem) -> Text -> Maybe Shortcut -> Maybe (Ref menuItem -> IO ()) -> MenuItemFlags -> (Ptr () -> Text -> CInt -> FunPtr CallbackWithUserDataPrim -> Int -> IO Int) -> (Ptr () -> Text -> Text -> FunPtr CallbackWithUserDataPrim -> Int -> IO Int) -> IO MenuItemIndex Source #
newtype MenuItemIndex Source #
Constructors
| MenuItemIndex Int |
newtype MenuItemName Source #
Constructors
| MenuItemName Text |
data MenuItemPointer Source #
Constructors
| Parent a MenuItem => MenuItemPointer (Ref a) |
data MenuItemReference Source #
Constructors
| MenuItemByIndex MenuItemIndex | |
| MenuItemByPointer MenuItemPointer |
data MenuItemLocator Source #
Hierarchy
Functions
activate ::RefMenuItem->IO() active ::RefMenuItem->IO(Bool) activevisible ::RefMenuItem->IO(Bool) add:: (ParentaMenuItem) =>RefMenuItem->Text->MaybeShortcut->Maybe(Refa ->IO()) ->MenuItemFlags->IO(MenuItemIndex) checkbox ::RefMenuItem->IO(Bool) clear ::RefMenuItem->IO() deactivate ::RefMenuItem->IO() destroy ::RefMenuItem->IO() doCallback ::RefMenuItem->RefWidget->IO() draw:: (ParentaMenuPrim) =>RefMenuItem->Rectangle->Refa ->IO() drawWithT:: (ParentaMenuPrim) =>RefMenuItem->Rectangle->Refa ->Int->IO() findShortcut:: (ParentaMenuItem) =>RefMenuItem->MaybeInt->Bool->IO(Maybe(Refa)) getFirst ::RefMenuItem->IO(Maybe(RefMenuItem)) getFlags ::RefMenuItem->IO(MaybeMenuItemFlags) getLabel ::RefMenuItem->IOTextgetLabelcolor ::RefMenuItem->IO(Color) getLabelfont ::RefMenuItem->IO(Font) getLabelsize ::RefMenuItem->IO(FontSize) getLabeltype ::RefMenuItem->IO(Labeltype) getShortcut ::RefMenuItem->IO(MaybeShortcutKeySequence) getSize ::RefMenuItem->IO(Int) getText ::RefMenuItem->IOTextgetValue ::RefMenuItem->IO(Int) hide ::RefMenuItem->IO() insert:: (ParentaMenuItem) =>RefMenuItem->Int->Text->MaybeShortcutKeySequence-> (Refa ->IO()) ->MenuItemFlags->IO(MenuItemIndex) measure:: (ParentaMenuPrim) =>RefMenuItem->Refa ->IO(Size) next ::RefMenuItem->IO(Maybe(RefMenuItem)) nextWithStep:: (ParentaMenuItem) =>RefMenuItem->Int->IO(Maybe(Refa)) popup:: (ParentaMenuItem,ParentbMenuPrim,ParentcMenuItem) =>RefMenuItem->Position->MaybeText->Maybe(Refa) ->Maybe(Refb) ->IO(Maybe(Refc)) pulldown:: (ParentaMenuPrim,ParentbMenuItem,ParentcMenuItem) =>RefMenuItem->Rectangle->Maybe(Refa) ->Maybe(Refb) ->Maybe(Refc) ->MaybeBool->IO(Maybe(RefMenuItem)) radio ::RefMenuItem->IO(Bool) set ::RefMenuItem->IO() setCallback ::RefMenuItem-> (Reforig ->IO()) ->IO() setFlags ::RefMenuItem->MenuItemFlags->IO() setLabel ::RefMenuItem->Text->IO() setLabelWithLabeltype ::RefMenuItem->Labeltype->Text->IO() setLabelcolor ::RefMenuItem->Color->IO() setLabelfont ::RefMenuItem->Font->IO() setLabelsize ::RefMenuItem->FontSize->IO() setLabeltype ::RefMenuItem->Labeltype->IO() setShortcut ::RefMenuItem->ShortcutKeySequence->IO() setonly ::RefMenuItem->IO() showWidget ::RefMenuItem->IO() submenu ::RefMenuItem->IO(Bool) testShortcut:: (ParentaMenuItem) =>RefMenuItem->IO(Maybe(Refa)) visible ::RefMenuItem->IO(Bool)
Orphan instances
| (~) * impl (IO Text) => Op (GetText ()) MenuItem orig impl Source # | |
| (~) * impl (IO Int) => Op (GetSize ()) MenuItem orig impl Source # | |
| (~) * impl (Ref Widget -> IO ()) => Op (DoCallback ()) MenuItem orig impl Source # | |
| (Parent a MenuItem, (~) * impl (Maybe Int -> Bool -> IO (Maybe (Ref a)))) => Op (FindShortcut ()) MenuItem orig impl Source # | |
| (Parent a MenuItem, (~) * impl (IO (Maybe (Ref a)))) => Op (TestShortcut ()) MenuItem orig impl Source # | |
| (Parent a MenuItem, Parent b MenuPrim, Parent c MenuItem, (~) * impl (Position -> Maybe Text -> Maybe (Ref a) -> Maybe (Ref b) -> IO (Maybe (Ref c)))) => Op (Popup ()) MenuItem orig impl Source # | |
| (Parent a MenuPrim, Parent b MenuItem, Parent c MenuItem, (~) * impl (Rectangle -> Maybe (Ref a) -> Maybe (Ref b) -> Maybe (Ref c) -> Maybe Bool -> IO (Maybe (Ref MenuItem)))) => Op (Pulldown ()) MenuItem orig impl Source # | |
| (~) * impl (MenuItemFlags -> IO ()) => Op (SetFlags ()) MenuItem orig impl Source # | |
| (~) * impl (IO (Maybe MenuItemFlags)) => Op (GetFlags ()) MenuItem orig impl Source # | |
| (Parent a MenuPrim, (~) * impl (Rectangle -> Ref a -> IO ())) => Op (Draw ()) MenuItem orig impl Source # | |
| (Parent a MenuPrim, (~) * impl (Rectangle -> Ref a -> Int -> IO ())) => Op (DrawWithT ()) MenuItem orig impl Source # | |
| (Parent a MenuPrim, (~) * impl (Ref a -> IO Size)) => Op (Measure ()) MenuItem orig impl Source # | |
| (~) * impl (IO Bool) => Op (Activevisible ()) MenuItem orig impl Source # | |
| (~) * impl (IO Bool) => Op (Visible ()) MenuItem orig impl Source # | |
| (~) * impl (IO Bool) => Op (Radio ()) MenuItem orig impl Source # | |
| (~) * impl (IO Bool) => Op (Checkbox ()) MenuItem orig impl Source # | |
| (~) * impl (IO Bool) => Op (Submenu ()) MenuItem orig impl Source # | |
| (~) * impl (Labeltype -> Text -> IO ()) => Op (SetLabelWithLabeltype ()) MenuItem orig impl Source # | |
| (~) * impl (IO (Maybe (Ref MenuItem))) => Op (GetFirst ()) MenuItem orig impl Source # | |
| (~) * impl (IO (Maybe (Ref MenuItem))) => Op (Next ()) MenuItem orig impl Source # | |
| (Parent a MenuItem, (~) * impl (Int -> IO (Maybe (Ref a)))) => Op (NextWithStep ()) MenuItem orig impl Source # | |
| (~) * impl (ShortcutKeySequence -> IO ()) => Op (SetShortcut ()) MenuItem orig impl Source # | |
| (~) * impl (IO (Maybe ShortcutKeySequence)) => Op (GetShortcut ()) MenuItem orig impl Source # | |
| (~) * impl (IO ()) => Op (Setonly ()) MenuItem orig impl Source # | |
| (~) * impl (IO ()) => Op (Set ()) MenuItem orig impl Source # | |
| (~) * impl (IO Int) => Op (GetValue ()) MenuItem orig impl Source # | |
| (~) * impl (IO ()) => Op (Clear ()) MenuItem orig impl Source # | |
| (Parent a MenuItem, (~) * impl (Int -> Text -> Maybe ShortcutKeySequence -> (Ref a -> IO ()) -> MenuItemFlags -> IO MenuItemIndex)) => Op (Insert ()) MenuItem orig impl Source # | |
| (Parent a MenuItem, (~) * impl (Text -> Maybe Shortcut -> Maybe (Ref a -> IO ()) -> MenuItemFlags -> IO MenuItemIndex)) => Op (Add ()) MenuItem orig impl Source # | |
| (~) * impl ((Ref orig -> IO ()) -> IO ()) => Op (SetCallback ()) MenuItem orig impl Source # | |
| (~) * impl (IO ()) => Op (Deactivate ()) MenuItem orig impl Source # | |
| (~) * impl (IO ()) => Op (Activate ()) MenuItem orig impl Source # | |
| (~) * impl (IO Bool) => Op (Active ()) MenuItem orig impl Source # | |
| (~) * impl (IO ()) => Op (Hide ()) MenuItem orig impl Source # | |
| (~) * impl (IO ()) => Op (ShowWidget ()) MenuItem orig impl Source # | |
| (~) * impl (FontSize -> IO ()) => Op (SetLabelsize ()) MenuItem orig impl Source # | |
| (~) * impl (IO FontSize) => Op (GetLabelsize ()) MenuItem orig impl Source # | |
| (~) * impl (Font -> IO ()) => Op (SetLabelfont ()) MenuItem orig impl Source # | |
| (~) * impl (IO Font) => Op (GetLabelfont ()) MenuItem orig impl Source # | |
| (~) * impl (Color -> IO ()) => Op (SetLabelcolor ()) MenuItem orig impl Source # | |
| (~) * impl (IO Color) => Op (GetLabelcolor ()) MenuItem orig impl Source # | |
| (~) * impl (Labeltype -> IO ()) => Op (SetLabeltype ()) MenuItem orig impl Source # | |
| (~) * impl (IO Labeltype) => Op (GetLabeltype ()) MenuItem orig impl Source # | |
| (~) * impl (Text -> IO ()) => Op (SetLabel ()) MenuItem orig impl Source # | |
| (~) * impl (IO Text) => Op (GetLabel ()) MenuItem orig impl Source # | |
| (~) * impl (IO ()) => Op (Destroy ()) MenuItem orig impl Source # | |