blob: 3acdfdf5ec745bde4485c5f14062f6a8f1cf4549 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# frozen_string_literal: false
#
# tkextlib/bwidget/bitmap.rb
# by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
#
require 'tk'
require 'tk/image'
require 'tkextlib/bwidget.rb'
module Tk
module BWidget
class Bitmap < TkPhotoImage
end
end
end
class Tk::BWidget::Bitmap
def initialize(name)
@path = tk_call_without_enc('Bitmap::get', name)
Tk_IMGTBL[@path] = self
end
end
|