Class gtk.Menu
Extends
gtk.Widget.
Defined in: jsgtk_merge_for_doc.js.
Constructor Attributes | Constructor Name and Description |
---|---|
gtk.Menu()
Menu is a class to create a list of menu items
|
Field Attributes | Field Name and Description |
---|---|
A registered signal name 'menuactivated'
|
|
A registered signal name 'menudeactivated'
|
|
A registered signal name 'menuselected'
|
Method Attributes | Method Name and Description |
---|---|
A method to add a separator amongst each menu items
|
|
anchorTo(x, y, index)
A method to set anchor of the menu
|
|
append(menuItem)
A method to add or append a menu item
|
|
A method to hide or deactivate the menu
|
|
A method to hide the menu item
|
|
resizeHeightComposite(height)
A method to resize its composite height
|
|
resizeWidthComposite(width)
A method to resize its composite width
|
|
selectItem(menuItem)
A method to set selected on any menu item
|
|
A method to show menu item
|
- Methods borrowed from class gtk.Widget:
- activate, disable, enable, getActivateSignal, getHeight, getMinHeightComposite, getMinWidthComposite, getNode, getParent, getSize, getSizeRequest, getTag, getWidth, hide, hideLoading, hideTooltip, isHidden, refresh, resetHeightComposite, resetMinHeight, resetMinSize, resetMinWidth, resetWidthComposite, setActivateSignal, setBoldTitle, setEnable, setHeight, setParent, setSize, setSizeRequest, setTag, setTooltip, setWidth, show, showLoading, showTooltip, sizeRequest
- Methods borrowed from class gobject.GObject:
- connect, disconnect, emit
Field Detail
MENU_MENUACTIVATED
A registered signal name 'menuactivated'
MENU_MENUDEACTIVATED
A registered signal name 'menudeactivated'
MENU_MENUSELECTED
A registered signal name 'menuselected'
Method Detail
addSeparator()
A method to add a separator amongst each menu items
anchorTo(x, y, index)
A method to set anchor of the menu
- Parameters:
- {Integer} x
- The x-axis value
- {Integer} y
- The y-axis value
- {Integer} index
- The index value of the menu item
append(menuItem)
A method to add or append a menu item
- Parameters:
- {Dom} menuItem
- The Dom object of the menu item to be set
deactivate()
A method to hide or deactivate the menu
hideMenuComposite()
A method to hide the menu item
resizeHeightComposite(height)
A method to resize its composite height
- Parameters:
- {Integer} height
- The integer height value to be set
resizeWidthComposite(width)
A method to resize its composite width
- Parameters:
- {Integer} width
- The integer width value to be set
selectItem(menuItem)
A method to set selected on any menu item
- Parameters:
- {Dom} menuItem
- The Dom object of the menu item to be set
showMenuComposite()
A method to show menu item