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