| Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.Gtk.Objects.TearoffMenuItem
Description
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.
t'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.
Constructors
| TearoffMenuItem (ManagedPtr TearoffMenuItem) |
Instances
| Eq TearoffMenuItem Source # | |
Defined in GI.Gtk.Objects.TearoffMenuItem Methods (==) :: TearoffMenuItem -> TearoffMenuItem -> Bool # (/=) :: TearoffMenuItem -> TearoffMenuItem -> Bool # | |
| IsGValue TearoffMenuItem Source # | Convert |
Defined in GI.Gtk.Objects.TearoffMenuItem | |
| GObject TearoffMenuItem Source # | |
Defined in GI.Gtk.Objects.TearoffMenuItem Methods 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] | |
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
Overloaded methods
new
Arguments
| :: (HasCallStack, MonadIO m) | |
| => m TearoffMenuItem | Returns: a new |
Deprecated: (Since version 3.4)tTearoffMenuItem is deprecated and should not be used in newly written code.
Creates a new TearoffMenuItem.