Sha256: 921b3d7c4df053da3db29a11a98064344a0d594701067005043cada186f2f61b
Contents?: true
Size: 734 Bytes
Versions: 3
Compression:
Stored size: 734 Bytes
Contents
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # Wx::PG property (and related) classes module Wx::PG class SystemColourProperty < EnumProperty # add some 'smart' conversions wx_initialize = instance_method :initialize wx_redefine_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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
wxruby3-1.4.2 | lib/wx/pg/pg_properties.rb |
wxruby3-1.4.1 | lib/wx/pg/pg_properties.rb |
wxruby3-1.4.0 | lib/wx/pg/pg_properties.rb |