Sha256: 875f685de9deb7a73ecf0cbe67909aea210fc0d813a8626c093be730314ed23a
Contents?: true
Size: 532 Bytes
Versions: 2
Compression:
Stored size: 532 Bytes
Contents
module Wx def self.Cursor(name, bmp_type = nil, *rest) art_path = File.dirname(caller_path = caller_locations(1).first.absolute_path) art_owner = File.basename(caller_path, '.*') art_file = ArtLocator.find_art(name, art_type: :icon, art_path: art_path, art_section: art_owner, bmp_type: bmp_type) ::Kernel.raise ArgumentError, "Cannot locate art file for #{name}:Cursor" unless art_file Cursor.new(art_file, bmp_type || Wx::Bitmap::BITMAP_TYPE_GUESS[File.extname(art_file).sub(/\A\./,'')], *rest) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
wxruby3-0.9.0.pre.beta.14 | lib/wx/core/cursor.rb |
wxruby3-0.9.0.pre.beta.13 | lib/wx/core/cursor.rb |