Sha256: bd690560bc729a4e3ae0778d0213d31e314d7d5ca25d64b6cb745349e3f3c77a
Contents?: true
Size: 670 Bytes
Versions: 9
Compression:
Stored size: 670 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
9 entries across 9 versions & 1 rubygems