gtk-0.12.4: Binding to the Gtk+ graphical user interface library.

Portabilityportable (depends on GHC)
Stabilityprovisional
Maintainergtk2hs-users@lists.sourceforge.net
Safe HaskellNone

Graphics.UI.Gtk.MenuComboToolbar.MenuToolButton

Contents

Description

A ToolItem containing a button with an additional dropdown menu

  • Module available since Gtk+ version 2.6

Synopsis

Detail

A MenuToolButton is a ToolItem that contains a button and a small additional button with an arrow. When clicked, the arrow button pops up a dropdown menu.

Use menuToolButtonNew to create a new MenuToolButton. Use menuToolButtonNewFromStock to create a new MenuToolButton containing a stock item.

Class Hierarchy

 | GObject
 | +----Object
 | +----Widget
 | +----Container
 | +----Bin
 | +----ToolItem
 | +----ToolButton
 | +----MenuToolButton

Types

Constructors

menuToolButtonNewSource

Arguments

:: WidgetClass iconWidget 
=> Maybe iconWidget

iconWidget - a widget that will be used as icon widget, or Nothing

-> Maybe String

label - a string that will be used as label, or Nothing

-> IO MenuToolButton 

Creates a new MenuToolButton using iconWidget as icon and label as label.

menuToolButtonNewFromStockSource

Arguments

:: StockId

stockId - the name of a stock item

-> IO MenuToolButton 

Creates a new MenuToolButton. The new MenuToolButton will contain an icon and label from the stock item indicated by stockId.

Methods

menuToolButtonSetMenuSource

Arguments

:: (MenuToolButtonClass self, MenuClass menu) 
=> self 
-> Maybe menu

menu - the Menu associated with MenuToolButton

-> IO () 

Sets the Menu that is popped up when the user clicks on the arrow. If menu is Nothing, the arrow button becomes insensitive.

menuToolButtonGetMenu :: MenuToolButtonClass self => self -> IO (Maybe Menu)Source

Gets the Menu associated with MenuToolButton.

menuToolButtonSetArrowTooltipSource

Arguments

:: MenuToolButtonClass self 
=> self 
-> Tooltips

tooltips - the Tooltips object to be used

-> String

tipText - text to be used as tooltip text for tool item

-> String

tipPrivate - text to be used as private tooltip text

-> IO () 

Sets the Tooltips object to be used for arrow button which pops up the menu. See toolItemSetTooltip for setting a tooltip on the whole MenuToolButton.

menuToolButtonSetArrowTooltipTextSource

Arguments

:: MenuToolButtonClass self 
=> self 
-> String

text - text to be used as tooltip text for button's arrow button

-> IO () 

Sets the tooltip text to be used as tooltip for the arrow button which pops up the menu. See toolItemSetTooltip for setting a tooltip on the whole MenuToolButton.

  • Available since Gtk+ version 2.12

menuToolButtonSetArrowTooltipMarkupSource

Arguments

:: MenuToolButtonClass self 
=> self 
-> Markup

markup - markup text to be used as tooltip text for button's arrow button

-> IO () 

Sets the tooltip markup text to be used as tooltip for the arrow button which pops up the menu. See toolItemSetTooltip for setting a tooltip on the whole MenuToolButton.

  • Available since Gtk+ version 2.12

Attributes

menuToolButtonMenu :: (MenuToolButtonClass self, MenuClass menu) => ReadWriteAttr self (Maybe Menu) (Maybe menu)Source

The dropdown menu.

Signals

onShowMenu :: MenuToolButtonClass self => self -> IO () -> IO (ConnectId self)Source

afterShowMenu :: MenuToolButtonClass self => self -> IO () -> IO (ConnectId self)Source