Sha256: d793bae0d7fcc569ec8affe1fe9ebdf505223c14560578406f29e9d463526be9

Contents?: true

Size: 630 Bytes

Versions: 16

Compression:

Stored size: 630 Bytes

Contents

# Copyright (c) 2023 M.J.N. Corino, The Netherlands
#
# This software is released under the MIT license.

class Wx::RBN::RibbonToolBar

  def tool_client_data_store
    @tool_client_data ||= {}
  end
  private :tool_client_data_store

  def set_tool_client_data(tool, data)
    tool_client_data_store[tool] = data
  end

  def get_tool_client_data(tool)
    tool_client_data_store[tool]
  end
  alias :tool_client_data :get_tool_client_data

  def tools
    if block_given?
      tool_count.times { |i| yield tool_by_pos(i) }
    else
      ::Enumerator.new { |y| tool_count.times { |i| y << tool_by_pos(i) } }
    end
  end

end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
wxruby3-1.3.1 lib/wx/rbn/ribbon_tool_bar.rb
wxruby3-1.3.0 lib/wx/rbn/ribbon_tool_bar.rb
wxruby3-1.2.1 lib/wx/rbn/ribbon_tool_bar.rb
wxruby3-1.2.0 lib/wx/rbn/ribbon_tool_bar.rb
wxruby3-1.1.2 lib/wx/rbn/ribbon_tool_bar.rb
wxruby3-1.1.1 lib/wx/rbn/ribbon_tool_bar.rb
wxruby3-1.1.0 lib/wx/rbn/ribbon_tool_bar.rb
wxruby3-1.0.1 lib/wx/rbn/ribbon_tool_bar.rb
wxruby3-0.9.8 lib/wx/rbn/ribbon_tool_bar.rb
wxruby3-0.9.7 lib/wx/rbn/ribbon_tool_bar.rb
wxruby3-0.9.5 lib/wx/rbn/ribbon_tool_bar.rb
wxruby3-0.9.4 lib/wx/rbn/ribbon_tool_bar.rb
wxruby3-0.9.3 lib/wx/rbn/ribbon_tool_bar.rb
wxruby3-0.9.2 lib/wx/rbn/ribbon_tool_bar.rb
wxruby3-0.9.1 lib/wx/rbn/ribbon_tool_bar.rb
wxruby3-0.9.0 lib/wx/rbn/ribbon_tool_bar.rb