Sha256: 780b79e7f49b1966894fa5b62e63bd56c96729e8c3c8039c1922a06ee9920945
Contents?: true
Size: 566 Bytes
Versions: 3
Compression:
Stored size: 566 Bytes
Contents
module Wx def self.Cursor(name, bmp_type = nil, *rest) art_path = File.dirname(caller_path = caller_locations(1).first.absolute_path || caller_locations(1).first.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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
wxruby3-0.9.0.pre.rc.3 | lib/wx/core/cursor.rb |
wxruby3-0.9.0.pre.rc.2 | lib/wx/core/cursor.rb |
wxruby3-0.9.0.pre.rc.1 | lib/wx/core/cursor.rb |