class Iup::SubMenu

A menu item that, when selected, opens another menu.

Attributes

image

Image to show on menu.

title

Label of menu.

wid

read-only Native widget identifier.

Public Class Methods

new(title, item, &block) click to toggle source

Creates instance of a SubMenu.

title

Label of menu

item

child menu to open

block

optional block to set menu's attributes

# File lib/wrapped/submenu.rb, line 18
def initialize title, item, &block
  @handle = IupLib.IupSubmenu title, item.handle

  # run any provided block on instance, to set up further attributes
  self.instance_eval &block if block_given?
end