|
Graphics.UI.Gtk.MenuComboToolbar.ToolItem | Portability | portable (depends on GHC) | Stability | provisional | Maintainer | gtk2hs-users@lists.sourceforge.net |
|
|
|
|
|
Description |
The base class of widgets that can be added to Toolbar
- Module available since Gtk+ version 2.4
|
|
Synopsis |
|
|
|
|
Detail
|
|
ToolItems are widgets that can appear on a toolbar. To create a toolbar
item that contain something else than a button, use toolItemNew. Use
containerAdd to add a child widget to the tool item.
For toolbar items that contain buttons, see the ToolButton,
ToggleToolButton and RadioToolButton classes.
|
|
Class Hierarchy
|
|
| GObject
| +----Object
| +----Widget
| +----Container
| +----Bin
| +----ToolItem
| +----ToolButton
| +----SeparatorToolItem
|
|
Types
|
|
|
|
|
|
|
|
|
|
|
|
|
Constructors
|
|
|
Creates a new ToolItem
|
|
Methods
|
|
|
:: ToolItemClass self | | => self | homogeneous - whether toolItem is the same size as other
homogeneous items
| -> Bool | | -> IO () | | Sets whether the tool item is to be allocated the same size as other
homogeneous items. The effect is that all homogeneous items will have the
same width as the widest of the items.
|
|
|
|
Returns whether the tool item is the same size as other homogeneous items.
See toolItemSetHomogeneous.
|
|
|
Sets whether the tool item is allocated extra space when there is more room
on the toolbar then needed for the items. The effect is that the item gets
bigger when the toolbar gets bigger and smaller when the toolbar gets
smaller.
|
|
|
Returns whether the tool item is allocated extra space. See
toolItemSetExpand.
|
|
|
:: ToolItemClass self | | => self | tooltips - The Tooltips object to be used
| -> Tooltips | tipText - text to be used as tooltip text for toolItem
| -> String | tipPrivate - text to be used as private tooltip text
| -> String | | -> IO () | | Sets the Tooltips object to be used for the tool item, the text to be
displayed as tooltip on the item and the private text to be used. See
tooltipsSetTip.
|
|
|
|
Sets whether toolitem has a drag window. When True the tool item can be
used as a drag source through dragSourceSet. When the tool item has a drag
window it will intercept all events, even those that would otherwise be sent
to a child widget.
|
|
|
Returns whether the tool item has a drag window. See
toolItemSetUseDragWindow.
|
|
|
Sets whether the tool item is visible when the toolbar is docked
horizontally.
|
|
|
Returns whether the tool item is visible on toolbars that are docked
horizontally.
|
|
|
Sets whether the tool item is visible when the toolbar is docked vertically.
Some tool items, such as text entries, are too wide to be useful on a
vertically docked toolbar. If False the tool item will
not appear on toolbars that are docked vertically.
|
|
|
Returns whether the tool item is visible when the toolbar is docked
vertically. See toolItemSetVisibleVertical.
|
|
|
Sets whether the tool item should be considered important. The ToolButton
class uses this property to determine whether to show or hide its label when
the toolbar style is ToolbarBothHoriz. The result is that only tool
buttons with the "is important" property set have labels, an effect known
as "priority text".
|
|
|
Returns whether the tool item is considered important. See
toolItemSetIsImportant
|
|
|
The size of an icon in pixels.
- This enumeration contains one case that is not exported and which
is used when new sizes are registered using
Graphics.UI.Gtk.General.IconFactory.iconSizeRegister.
- Applying show to this type will reveal the name of the size
that is registered with Gtk+.
|
|
|
|
Returns the icon size used for the tool item.
|
|
|
Orientation is good
| Constructors | OrientationHorizontal | | OrientationVertical | |
|
|
|
|
Returns the orientation used for the tool item.
|
|
|
Where to place the toolbar?
| Constructors | ToolbarIcons | | ToolbarText | | ToolbarBoth | | ToolbarBothHoriz | |
|
|
|
|
Returns the toolbar style used for the tool item.
Possibilities are:
[ToolbarBoth] meaning the tool item should show both an icon and a label,
stacked vertically
[ToolbarIcons] meaning the toolbar shows only icons
[ToolbarText] meaning the tool item should only show text
[ToolbarBothHoriz] meaning the tool item should show both an icon and a
label, arranged horizontally
|
|
|
I don't have a clue.
| Constructors | ReliefNormal | | ReliefHalf | | ReliefNone | |
|
|
|
|
Returns the relief style of the tool item. See buttonSetReliefStyle.
|
|
|
Returns the MenuItem that was last set by toolItemSetProxyMenuItem,
ie. the MenuItem that is going to appear in the overflow menu.
|
|
toolItemGetProxyMenuItem | Source |
|
|
|
toolItemSetProxyMenuItem | Source |
|
|
|
Attributes
|
|
|
Whether the toolbar item is visible when the toolbar is in a horizontal
orientation.
Default value: True
|
|
|
Whether the toolbar item is visible when the toolbar is in a vertical
orientation.
Default value: True
|
|
|
Whether the toolbar item is considered important. When True, toolbar
buttons show text in ToolbarBothHoriz mode.
Default value: False
|
|
|
'expand' property. See toolItemGetExpand and toolItemSetExpand
|
|
|
'homogeneous' property. See toolItemGetHomogeneous and
toolItemSetHomogeneous
|
|
|
'useDragWindow' property. See toolItemGetUseDragWindow and
toolItemSetUseDragWindow
|
|
Produced by Haddock version 2.6.0 |