Methods
- C
- D
- E
- H
- M
- N
- S
- W
Constants
TkCommandNames | = | ['::blt::bitmap'.freeze].freeze |
BITMAP_ID_TBL | = | TkCore::INTERP.create_table |
BITMAP_ID | = | ['blt_bitmap_id'.freeze, TkUtil.untrust('00000')]).instance_eval{ @mutex = Mutex.new |
Class Public methods
data(name)
Link
exist?(name)
Link
height(name)
Link
new(type, name, data, keys = {})
Link
# File ext/tk/lib/tkextlib/blt/bitmap.rb, line 72 def initialize(type, name, data, keys = {}) if name @id = name else BITMAP_ID.mutex.synchronize{ @id = BITMAP_ID.join(TkCore::INTERP._ip_id_) BITMAP_ID[1].succ! } BITMAP_ID_TBL.mutex.synchronize{ BITMAP_ID_TBL[@id] = self } end @path = @id unless bool(tk_call('::blt::bitmap', 'exists', @id)) if type == :text tk_call('::blt::bitmap', 'compose', @id, data, *hash_kv(keys)) else # :data tk_call('::blt::bitmap', 'define', @id, data, *hash_kv(keys)) end end end
source(name)
Link
width(name)
Link
Instance Public methods
compose(text, keys={})
Link
compose_with_name(name, text, keys={})
Link
exist?()
Link
height()
Link
mutex()
Link
new(data, keys={})
Link
new_with_name(name, data, keys={})
Link
source()
Link