Sha256: 8956ea9307df5c179d1d38c4e0b423692f9189cbc77b380f20236a96c888814d

Contents?: true

Size: 659 Bytes

Versions: 7

Compression:

Stored size: 659 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

7 entries across 7 versions & 1 rubygems

Version Path
wxruby3-0.9.7-x64-mingw-ucrt lib/wx/rbn/ribbon_tool_bar.rb
wxruby3-0.9.5-x64-mingw-ucrt lib/wx/rbn/ribbon_tool_bar.rb
wxruby3-0.9.4-x64-mingw-ucrt lib/wx/rbn/ribbon_tool_bar.rb
wxruby3-0.9.3-x64-mingw-ucrt lib/wx/rbn/ribbon_tool_bar.rb
wxruby3-0.9.2-x64-mingw-ucrt lib/wx/rbn/ribbon_tool_bar.rb
wxruby3-0.9.1-x64-mingw-ucrt lib/wx/rbn/ribbon_tool_bar.rb
wxruby3-0.9.0-x64-mingw-ucrt lib/wx/rbn/ribbon_tool_bar.rb