Sha256: 231ba420ccb5210e84ee33af5d1c4fdff9f6b091bc61f3728cc3bd2fecb2b7e3

Contents?: true

Size: 707 Bytes

Versions: 9

Compression:

Stored size: 707 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-x64-mingw-ucrt lib/wx/pg/pg_property.rb
wxruby3-0.9.0.pre.rc.2-x64-mingw-ucrt lib/wx/pg/pg_property.rb
wxruby3-0.9.0.pre.rc.1-x64-mingw-ucrt lib/wx/pg/pg_property.rb
wxruby3-0.9.0.pre.beta.14-x64-mingw-ucrt lib/wx/pg/pg_property.rb
wxruby3-0.9.0.pre.beta.13-x64-mingw-ucrt lib/wx/pg/pg_property.rb
wxruby3-0.9.0.pre.beta.11-x64-mingw-ucrt lib/wx/pg/pg_property.rb
wxruby3-0.9.0.pre.beta.10-x64-mingw-ucrt lib/wx/pg/pg_property.rb
wxruby3-0.9.0.pre.beta.9-x64-mingw-ucrt lib/wx/pg/pg_property.rb
wxruby3-0.9.0.pre.beta.8-x64-mingw-ucrt lib/wx/pg/pg_property.rb