Class: RUI::GuiBuilder::Menu

Inherits:
Object
  • Object
show all
Includes:
RUI::GuiBuilder
Defined in:
lib/rui/toolkits/qtbase/gui_builder.rb

Overview

A menu.

This tag must be a child of a menu_bar descriptor.

Instance Method Summary collapse

Methods included from RUI::GuiBuilder

build, #build, #builder, #setup_widget

Instance Method Details

#create_element(window, parent, desc) ⇒ Object



74
75
76
77
78
# File 'lib/rui/toolkits/qtbase/gui_builder.rb', line 74

def create_element(window, parent, desc)
  menu = Qt::Menu.new(desc.opts[:text].to_s, window)
  parent.add_menu(menu)
  menu
end