Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (inaki@blueleaf.cc) |
Safe Haskell | None |
Language | Haskell2010 |
A TearoffMenuItem
is a special MenuItem
which is used to
tear off and reattach its menu.
When its menu is shown normally, the TearoffMenuItem
is drawn as a
dotted line indicating that the menu can be torn off. Activating it
causes its menu to be torn off and displayed in its own window
as a tearoff menu.
When its menu is shown as a tearoff menu, the TearoffMenuItem
is drawn
as a dotted line which has a left pointing arrow graphic indicating that
the tearoff menu can be reattached. Activating it will erase the tearoff
menu window.
'GI.Gtk.Objects.TearoffMenuItem.TearoffMenuItem' is deprecated and should not be used in newly written code. Menus are not meant to be torn around.
Synopsis
- newtype TearoffMenuItem = TearoffMenuItem (ManagedPtr TearoffMenuItem)
- class (GObject o, IsDescendantOf TearoffMenuItem o) => IsTearoffMenuItem o
- toTearoffMenuItem :: (MonadIO m, IsTearoffMenuItem o) => o -> m TearoffMenuItem
- noTearoffMenuItem :: Maybe TearoffMenuItem
- tearoffMenuItemNew :: (HasCallStack, MonadIO m) => m TearoffMenuItem
Exported types
newtype TearoffMenuItem Source #
Memory-managed wrapper type.
Instances
GObject TearoffMenuItem Source # | |
Defined in GI.Gtk.Objects.TearoffMenuItem gobjectType :: IO GType # | |
HasParentTypes TearoffMenuItem Source # | |
Defined in GI.Gtk.Objects.TearoffMenuItem | |
type ParentTypes TearoffMenuItem Source # | |
Defined in GI.Gtk.Objects.TearoffMenuItem type ParentTypes TearoffMenuItem = MenuItem ': (Bin ': (Container ': (Widget ': (Object ': (ImplementorIface ': (Actionable ': (Activatable ': (Buildable ': ([] :: [Type]))))))))) |
class (GObject o, IsDescendantOf TearoffMenuItem o) => IsTearoffMenuItem o Source #
Type class for types which can be safely cast to TearoffMenuItem
, for instance with toTearoffMenuItem
.
Instances
(GObject o, IsDescendantOf TearoffMenuItem o) => IsTearoffMenuItem o Source # | |
Defined in GI.Gtk.Objects.TearoffMenuItem |
toTearoffMenuItem :: (MonadIO m, IsTearoffMenuItem o) => o -> m TearoffMenuItem Source #
Cast to TearoffMenuItem
, for types for which this is known to be safe. For general casts, use castTo
.
noTearoffMenuItem :: Maybe TearoffMenuItem Source #
A convenience alias for Nothing
:: Maybe
TearoffMenuItem
.
Methods
new
:: (HasCallStack, MonadIO m) | |
=> m TearoffMenuItem | Returns: a new |
Deprecated: (Since version 3.4)TearoffMenuItem
is deprecated and should not be used in newly written code.
Creates a new TearoffMenuItem
.