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