gi-gtk-3.0.36: Gtk bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

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

Exported types

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

Instances details
(GObject o, IsDescendantOf TearoffMenuItem o) => IsTearoffMenuItem o Source # 
Instance details

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.

Methods

Overloaded methods

new

tearoffMenuItemNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m TearoffMenuItem

Returns: a new TearoffMenuItem.

Deprecated: (Since version 3.4)tTearoffMenuItem is deprecated and should not be used in newly written code.

Creates a new TearoffMenuItem.