Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
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 => 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 :: TearoffMenuItem -> IO GType # | |
IsImplementorIface TearoffMenuItem Source # | |
Defined in GI.Gtk.Objects.TearoffMenuItem | |
IsObject TearoffMenuItem Source # | |
Defined in GI.Gtk.Objects.TearoffMenuItem | |
IsActionable TearoffMenuItem Source # | |
Defined in GI.Gtk.Objects.TearoffMenuItem | |
IsActivatable TearoffMenuItem Source # | |
Defined in GI.Gtk.Objects.TearoffMenuItem | |
IsBuildable TearoffMenuItem Source # | |
Defined in GI.Gtk.Objects.TearoffMenuItem | |
IsBin TearoffMenuItem Source # | |
Defined in GI.Gtk.Objects.TearoffMenuItem | |
IsContainer TearoffMenuItem Source # | |
Defined in GI.Gtk.Objects.TearoffMenuItem | |
IsMenuItem TearoffMenuItem Source # | |
Defined in GI.Gtk.Objects.TearoffMenuItem | |
IsWidget TearoffMenuItem Source # | |
Defined in GI.Gtk.Objects.TearoffMenuItem | |
IsTearoffMenuItem TearoffMenuItem Source # | |
Defined in GI.Gtk.Objects.TearoffMenuItem |
class GObject o => IsTearoffMenuItem o Source #
Type class for types which can be safely cast to TearoffMenuItem
, for instance with toTearoffMenuItem
.
Instances
(GObject a, (UnknownAncestorError TearoffMenuItem a :: Constraint)) => IsTearoffMenuItem a Source # | |
Defined in GI.Gtk.Objects.TearoffMenuItem | |
IsTearoffMenuItem TearoffMenuItem 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
.