Safe Haskell | None |
---|---|
Language | Haskell2010 |
- 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 #
newtype MenuItemName Source #
data MenuItemPointer Source #
Parent a MenuItem => MenuItemPointer (Ref a) |
data MenuItemLocator Source #
Hierarchy
Functions
activate ::Ref
MenuItem
->IO
() active ::Ref
MenuItem
->IO
(Bool
) activevisible ::Ref
MenuItem
->IO
(Bool
) add:: (Parent
aMenuItem
) =>Ref
MenuItem
->Text
->Maybe
Shortcut
->Maybe
(Ref
a ->IO
()) ->MenuItemFlags
->IO
(MenuItemIndex
) checkbox ::Ref
MenuItem
->IO
(Bool
) clear ::Ref
MenuItem
->IO
() deactivate ::Ref
MenuItem
->IO
() destroy ::Ref
MenuItem
->IO
() doCallback ::Ref
MenuItem
->Ref
Widget
->IO
() draw:: (Parent
aMenuPrim
) =>Ref
MenuItem
->Rectangle
->Ref
a ->IO
() drawWithT:: (Parent
aMenuPrim
) =>Ref
MenuItem
->Rectangle
->Ref
a ->Int
->IO
() findShortcut:: (Parent
aMenuItem
) =>Ref
MenuItem
->Maybe
Int
->Bool
->IO
(Maybe
(Ref
a)) getFirst ::Ref
MenuItem
->IO
(Maybe
(Ref
MenuItem
)) getFlags ::Ref
MenuItem
->IO
(Maybe
MenuItemFlags
) getLabel ::Ref
MenuItem
->IO
Text
getLabelcolor ::Ref
MenuItem
->IO
(Color
) getLabelfont ::Ref
MenuItem
->IO
(Font
) getLabelsize ::Ref
MenuItem
->IO
(FontSize
) getLabeltype ::Ref
MenuItem
->IO
(Labeltype
) getShortcut ::Ref
MenuItem
->IO
(Maybe
ShortcutKeySequence
) getSize ::Ref
MenuItem
->IO
(Int
) getText ::Ref
MenuItem
->IO
Text
getValue ::Ref
MenuItem
->IO
(Int
) hide ::Ref
MenuItem
->IO
() insert:: (Parent
aMenuItem
) =>Ref
MenuItem
->Int
->Text
->Maybe
ShortcutKeySequence
-> (Ref
a ->IO
()) ->MenuItemFlags
->IO
(MenuItemIndex
) measure:: (Parent
aMenuPrim
) =>Ref
MenuItem
->Ref
a ->IO
(Size
) next ::Ref
MenuItem
->IO
(Maybe
(Ref
MenuItem
)) nextWithStep:: (Parent
aMenuItem
) =>Ref
MenuItem
->Int
->IO
(Maybe
(Ref
a)) popup:: (Parent
aMenuItem
,Parent
bMenuPrim
,Parent
cMenuItem
) =>Ref
MenuItem
->Position
->Maybe
Text
->Maybe
(Ref
a) ->Maybe
(Ref
b) ->IO
(Maybe
(Ref
c)) pulldown:: (Parent
aMenuPrim
,Parent
bMenuItem
,Parent
cMenuItem
) =>Ref
MenuItem
->Rectangle
->Maybe
(Ref
a) ->Maybe
(Ref
b) ->Maybe
(Ref
c) ->Maybe
Bool
->IO
(Maybe
(Ref
MenuItem
)) radio ::Ref
MenuItem
->IO
(Bool
) set ::Ref
MenuItem
->IO
() setCallback ::Ref
MenuItem
-> (Ref
orig ->IO
()) ->IO
() setFlags ::Ref
MenuItem
->MenuItemFlags
->IO
() setLabel ::Ref
MenuItem
->Text
->IO
() setLabelWithLabeltype ::Ref
MenuItem
->Labeltype
->Text
->IO
() setLabelcolor ::Ref
MenuItem
->Color
->IO
() setLabelfont ::Ref
MenuItem
->Font
->IO
() setLabelsize ::Ref
MenuItem
->FontSize
->IO
() setLabeltype ::Ref
MenuItem
->Labeltype
->IO
() setShortcut ::Ref
MenuItem
->ShortcutKeySequence
->IO
() setonly ::Ref
MenuItem
->IO
() showWidget ::Ref
MenuItem
->IO
() submenu ::Ref
MenuItem
->IO
(Bool
) testShortcut:: (Parent
aMenuItem
) =>Ref
MenuItem
->IO
(Maybe
(Ref
a)) visible ::Ref
MenuItem
->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 # | |