Sha256: d6ace7b8f0c1ece44d61be5ec1b3326a6e7d748a58a64fd3fc23a951698ea66d

Contents?: true

Size: 694 Bytes

Versions: 11

Compression:

Stored size: 694 Bytes

Contents

# Wx::PG property (and related) classes
# Copyright (c) M.J.N. Corino, The Netherlands

module Wx::PG

  class SystemColourProperty < EnumProperty

    # add some 'smart' conversions
    wx_initialize = instance_method :initialize
    define_method :initialize do |label=Wx::PG_LABEL, name=Wx::PG_LABEL, value=Wx::PG::ColourPropertyValue.new|
      value = case value
              when Wx::Colour
                Wx::PG::ColourPropertyValue.new(value)
              when Integer
                Wx::PG::ColourPropertyValue.new(value)
              else
                value
              end
      wx_initialize.bind(self).call(label, name, value)
    end

  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
wxruby3-0.9.0.pre.rc.3-x64-mingw-ucrt lib/wx/pg/pg_properties.rb
wxruby3-0.9.0.pre.rc.2-x64-mingw-ucrt lib/wx/pg/pg_properties.rb
wxruby3-0.9.0.pre.rc.1-x64-mingw-ucrt lib/wx/pg/pg_properties.rb
wxruby3-0.9.0.pre.beta.14-x64-mingw-ucrt lib/wx/pg/pg_properties.rb
wxruby3-0.9.0.pre.beta.13-x64-mingw-ucrt lib/wx/pg/pg_properties.rb
wxruby3-0.9.0.pre.beta.11-x64-mingw-ucrt lib/wx/pg/pg_properties.rb
wxruby3-0.9.0.pre.beta.10-x64-mingw-ucrt lib/wx/pg/pg_properties.rb
wxruby3-0.9.0.pre.beta.9-x64-mingw-ucrt lib/wx/pg/pg_properties.rb
wxruby3-0.9.0.pre.beta.8-x64-mingw-ucrt lib/wx/pg/pg_properties.rb
wxruby3-0.9.0.pre.beta.2-x64-mingw-ucrt-3.2-3.2.2 lib/wx/pg/pg_properties.rb
wxruby3-0.9.0.pre.beta.1-x64-mingw-ucrt-3.2 lib/wx/pg/pg_properties.rb