Sha256: dc28100d840923aece6ee8c743009ff8fca1644ce9fdb14b248f097a42c81ce0

Contents?: true

Size: 680 Bytes

Versions: 9

Compression:

Stored size: 680 Bytes

Contents

# Wx::PG::PGProperty
# Copyright (c) M.J.N. Corino, The Netherlands

module Wx::PG

  NullProperty = nil
  PGChoicesEmptyData = nil

  PG_LABEL_STRING = '@!' unless self.const_defined?(:PG_LABEL_STRING) # disappeared >= wxWidgets 3.3.0
  PG_LABEL = Wx::PG::PG_LABEL_STRING

  PG_DEFAULT_IMAGE_SIZE = Wx::DEFAULT_SIZE

  class PGProperty

    wx_each_attribute = instance_method :each_attribute
    define_method :each_attribute do |id|
      if block_given?
        wx_each_attribute.bind(self).call(id)
      else
        ::Enumerator.new { |y| wx_each_attribute.bind(self).call(id) { |variant| y << variant } }
      end
    end
    alias :attributes :each_attribute
  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

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