|
Graphics.UI.Gtk.MenuComboToolbar.ImageMenuItem | Portability | portable (depends on GHC) | Stability | provisional | Maintainer | gtk2hs-users@lists.sourceforge.net |
|
|
|
|
|
Description |
A menu item with an icon
|
|
Synopsis |
|
|
|
|
Detail
|
|
A ImageMenuItem is a menu item which has an icon next to the text
label.
Note that the user can disable display of menu icons, so make sure to
still fill in the text label.
|
|
Class Hierarchy
|
|
| GObject
| +----Object
| +----Widget
| +----Container
| +----Bin
| +----Item
| +----MenuItem
| +----ImageMenuItem
|
|
Types
|
|
data ImageMenuItem |
Instances | |
|
|
class MenuItemClass o => ImageMenuItemClass o |
| Instances | |
|
|
castToImageMenuItem :: GObjectClass obj => obj -> ImageMenuItem |
|
Constructors
|
|
imageMenuItemNew :: IO ImageMenuItem |
Creates a new ImageMenuItem with an empty label.
|
|
imageMenuItemNewFromStock |
|
|
imageMenuItemNewWithLabel |
|
|
imageMenuItemNewWithMnemonic |
:: String | label - the text of the menu item, with an
underscore in front of the mnemonic character
| -> IO ImageMenuItem | | Creates a new ImageMenuItem containing a label. The label will be
created using labelNewWithMnemonic, so underscores in label indicate the
mnemonic for the menu item.
|
|
|
Methods
|
|
imageMenuItemSetImage |
:: (ImageMenuItemClass self, WidgetClass image) | | => self | | -> image | image - a widget to set as the image for the menu item.
| -> IO () | | Sets the image of the image menu item to the given widget. Note that it
depends on the "show-menu-images" setting whether the image will be
displayed or not.
|
|
|
imageMenuItemGetImage |
|
|
Attributes
|
|
imageMenuItemImage :: (ImageMenuItemClass self, WidgetClass image) => ReadWriteAttr self (Maybe Widget) image |
Child widget to appear next to the menu text.
|
|
Produced by Haddock version 0.7 |