Sha256: 210745f47d2a0c72ecead088730081ec868b2460d96549bd7f0a36d89ae7a127
Contents?: true
Size: 544 Bytes
Versions: 2
Compression:
Stored size: 544 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-x64-mingw-ucrt | lib/wx/core/cursor.rb |
wxruby3-0.9.0.pre.beta.13-x64-mingw-ucrt | lib/wx/core/cursor.rb |