Sha256: 84f1ea9f144787408d1e029095a558417b00c6a3be57a2f175d39bd43e87f112
Contents?: true
Size: 925 Bytes
Versions: 6
Compression:
Stored size: 925 Bytes
Contents
# Make this easier to use for multi-typed data objects. Comparison # doesn't work correctly in the SWIG binding class Wx::DataFormat def ==(other) if self.get_type > Wx::DataFormatId::DF_INVALID self.get_type == other.get_type else self.id == other.id end end end # Provide pre-cooked data formats for the standard types module Wx DF_TEXT = DataFormat.new( Wx::DataFormatId::DF_TEXT ) DF_BITMAP = DataFormat.new( Wx::DataFormatId::DF_BITMAP ) if Wx::PLATFORM != 'WXGTK' DF_METAFILE = DataFormat.new( Wx::DataFormatId::DF_METAFILE ) end if Wx::PLATFORM == 'WXMSW' DF_DIB = DataFormat.new( Wx::DataFormatId::DF_DIB ) end DF_FILENAME = DataFormat.new( Wx::DataFormatId::DF_FILENAME ) DF_UNICODETEXT = DataFormat.new( Wx::DataFormatId::DF_UNICODETEXT ) # DF_HTML is only supported on Windows + MSVC, so don't offer it end
Version data entries
6 entries across 6 versions & 1 rubygems