Sha256: 722425818197e97d377490dcb7ed48190d3b90256fd0525b112827850b49f23b
Contents?: true
Size: 330 Bytes
Versions: 3
Compression:
Stored size: 330 Bytes
Contents
module IconLoader IconBasePath = File.expand_path(File.join(File.dirname(__FILE__), "..", "icons")) def get_icon(name) icon = File.join(IconBasePath, name) case name[-3..-1].downcase when "png" bitmap_type = BITMAP_TYPE_PNG else bitmap_type = BITMAP_TYPE_GIF end Wx::Bitmap.new(icon, bitmap_type) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tekkub-fugit-0.0.5 | lib/fugit/icon_loader.rb |
tekkub-fugit-0.0.6 | lib/fugit/icon_loader.rb |
tekkub-fugit-0.0.7 | lib/fugit/icon_loader.rb |