gi-gtk-3.0.31: Gtk bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (inaki@blueleaf.cc)
Safe HaskellNone
LanguageHaskell2010

GI.Gtk.Objects.TearoffMenuItem

Contents

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.

'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

newtype TearoffMenuItem Source #

Memory-managed wrapper 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.

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

new

tearoffMenuItemNew Source #

Arguments

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

Returns: a new TearoffMenuItem.

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

Creates a new TearoffMenuItem.