Sha256: 90533fc142e53070a30488e59a28046b1948505716ef7cd6242e19d69040e1a9

Contents?: true

Size: 1.34 KB

Versions: 17

Compression:

Stored size: 1.34 KB

Contents

---
:wxVariant:
  :detail:
    :pre:
      :detaileddescription:
        - :pattern: !ruby/regexp /.*/
          :replace: |

            A variant's value can be changed at run time, possibly to a different type of value.
            In wxRuby Wx::Variant is the only available Wx variant class (unlike in C++) and almost exclusively for
            use in combination with the property grid classes (see the {Wx::PG} module).

            By default Wx::Variant can store values of type bool, {Integer}, {Float}, {String}, {Time} (or {Date} / {DateTime}), {Array} of {String}, 
            {Array} of {Wx::Variant}, {Wx::Font}, {Wx::Colour} and {Wx::ColourPropertyValue}.
            In addition Wx::Variant can store any Ruby {Object}.
            
            An optional name member is associated with a Wx::Variant.
            
            In wxRuby Wx::Variant also provides the standard conversion methods #to_i, #to_s and #to_f for supported
            value types. In case of incompatible value types these methods will raise a {TypeError} exception.
:wxVariant.GetType:
  :detail:
    :post:
      - :pattern: !ruby/regexp /\-\s+\"void\*\"$/
        :subst: ''
      - :pattern: !ruby/regexp /\Z/
        :subst: |
          
          If the variant contains an arbitrary Ruby {Object}, the value type returned is the result of `variant.get_object.class.name`.

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
wxruby3-1.3.1 rakelib/lib/generate/doc/variant.yaml
wxruby3-1.3.0 rakelib/lib/generate/doc/variant.yaml
wxruby3-1.2.1 rakelib/lib/generate/doc/variant.yaml
wxruby3-1.2.0 rakelib/lib/generate/doc/variant.yaml
wxruby3-1.1.2 rakelib/lib/generate/doc/variant.yaml
wxruby3-1.1.1 rakelib/lib/generate/doc/variant.yaml
wxruby3-1.1.0 rakelib/lib/generate/doc/variant.yaml
wxruby3-1.0.1 rakelib/lib/generate/doc/variant.yaml
wxruby3-0.9.8 rakelib/lib/generate/doc/variant.yaml
wxruby3-0.9.7 rakelib/lib/generate/doc/variant.yaml
wxruby3-0.9.5 rakelib/lib/generate/doc/variant.yaml
wxruby3-0.9.4 rakelib/lib/generate/doc/variant.yaml
wxruby3-0.9.3 rakelib/lib/generate/doc/variant.yaml
wxruby3-0.9.2 rakelib/lib/generate/doc/variant.yaml
wxruby3-0.9.1 rakelib/lib/generate/doc/variant.yaml
wxruby3-0.9.0 rakelib/lib/generate/doc/variant.yaml
wxruby3-0.9.0.pre.rc.3 rakelib/lib/generate/doc/variant.yaml