Sha256: af9bfac9621fdf0fe0dc96563cdee394dcf3ef3687bc54b30047b36f9c89772d

Contents?: true

Size: 969 Bytes

Versions: 5

Compression:

Stored size: 969 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 )
  if Wx.has_feature?(:USE_HTML) && Wx::WXWIDGETS_VERSION >= '3.3'
    DF_HTML        = DataFormat.new( Wx::DataFormatId::DF_HTML )
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
wxruby3-0.9.0.pre.rc.3 lib/wx/core/dataformat.rb
wxruby3-0.9.0.pre.rc.2 lib/wx/core/dataformat.rb
wxruby3-0.9.0.pre.rc.1 lib/wx/core/dataformat.rb
wxruby3-0.9.0.pre.beta.14 lib/wx/core/dataformat.rb
wxruby3-0.9.0.pre.beta.13 lib/wx/core/dataformat.rb