Sha256: d6bbbc09f34b9455d0b1caf390e2bac7f613d826fd56ec262e751432d8d65a12

Contents?: true

Size: 756 Bytes

Versions: 5

Compression:

Stored size: 756 Bytes

Contents

# Copyright (c) 2023 M.J.N. Corino, The Netherlands
#
# This software is released under the MIT license.
# 
# Some parts are
# Copyright 2004-2007, wxRuby development team
# released under the MIT-like wxRuby2 license

# Base class for providing context-sensitive help. The main definition
# is in SWIG/C++

class Wx::HelpProvider
  class << self
    # We need to protect the currently set HelpProvider from GC as it is a
    # SWIG Director; it can't be reaped and re-wrapped later. The
    # easiest way is to make the currently set one an instance variable
    # of this class
    wx_set = instance_method :set
    wx_redefine_method(:set) do | help_provider |
      wx_set.bind(self).call(help_provider)
      @__hp__ = help_provider
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
wxruby3-1.5.1 lib/wx/core/helpprovider.rb
wxruby3-1.5.0 lib/wx/core/helpprovider.rb
wxruby3-1.4.2 lib/wx/core/helpprovider.rb
wxruby3-1.4.1 lib/wx/core/helpprovider.rb
wxruby3-1.4.0 lib/wx/core/helpprovider.rb