Sha256: 7b66d66e7de7b07922289417248503b8573d777a37ca99f7274433eed5cb5f57
Contents?: true
Size: 1.3 KB
Versions: 3
Compression:
Stored size: 1.3 KB
Contents
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Some parts are # Copyright 2004-2007, wxRuby development team # released under the MIT-like wxRuby2 license # 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 other.is_a?(Wx::DataFormatId) self.get_type == other elsif other.is_a?(self.class) if self.get_type > Wx::DataFormatId::DF_INVALID self.get_type == other.get_type else self.id == other.id end else false 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
wxruby3-1.4.2 | lib/wx/core/dataformat.rb |
wxruby3-1.4.1 | lib/wx/core/dataformat.rb |
wxruby3-1.4.0 | lib/wx/core/dataformat.rb |