Sha256: 08fe4c2881c5c0a54e71217c63ceebf27bacb7bf090d2dd041ab2630927590fd

Contents?: true

Size: 517 Bytes

Versions: 9

Compression:

Stored size: 517 Bytes

Contents

class Wx::RBN::RibbonButtonBar

  def item_client_data_store
    @item_client_data ||= {}
  end
  private :item_client_data_store

  def set_item_client_data(item, data)
    item_client_data_store[item] = data
  end

  def get_item_client_data(item)
    item_client_data_store[item]
  end
  alias :item_client_data :get_item_client_data

  def items
    if block_given?
      button_count.times { |i| yield item(i) }
    else
      ::Enumerator.new { |y| button_count.times { |i| y << item(i) } }
    end
  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
wxruby3-0.9.0.pre.rc.3 lib/wx/rbn/ribbon_button_bar.rb
wxruby3-0.9.0.pre.rc.2 lib/wx/rbn/ribbon_button_bar.rb
wxruby3-0.9.0.pre.rc.1 lib/wx/rbn/ribbon_button_bar.rb
wxruby3-0.9.0.pre.beta.14 lib/wx/rbn/ribbon_button_bar.rb
wxruby3-0.9.0.pre.beta.13 lib/wx/rbn/ribbon_button_bar.rb
wxruby3-0.9.0.pre.beta.11 lib/wx/rbn/ribbon_button_bar.rb
wxruby3-0.9.0.pre.beta.10 lib/wx/rbn/ribbon_button_bar.rb
wxruby3-0.9.0.pre.beta.9 lib/wx/rbn/ribbon_button_bar.rb
wxruby3-0.9.0.pre.beta.8 lib/wx/rbn/ribbon_button_bar.rb