Module: FX::TabBarInterface

Included in:
TabBar, TabBook
Defined in:
lib/libGUIb16.rb,
lib/libGUIb14.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#tabsObject (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