Module: FX::TabBarInterface
Instance Attribute Summary collapse
-
#tabs ⇒ Object
readonly
Returns the value of attribute tabs.
Instance Method Summary collapse
Instance Attribute Details
#tabs ⇒ Object (readonly)
Returns the value of attribute tabs.
884 885 886 |
# File 'lib/libGUIb16.rb', line 884 def tabs @tabs end |
Instance Method Details
#create_tab(text = "TabItem") ⇒ Object
885 886 887 888 889 890 891 |
# File 'lib/libGUIb16.rb', line 885 def create_tab(text = "TabItem") @tabs ||= [] TabItem.new(self) { |i| @tabs << i i.text = text } end |
#remove_tab(tab) ⇒ Object
893 894 895 896 |
# File 'lib/libGUIb16.rb', line 893 def remove_tab tab @tabs.delete tab removeChild(tab) end |