| Class | Tk::HTML_Widget |
| In: |
tk/lib/tkextlib/tkHTML/htmlwidget.rb
|
| Parent: | TkWindow |
| TkCommandNames | = | ['html'.freeze].freeze |
| WidgetClassName | = | 'Html'.freeze |
# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 140 def self.base64_decode(dat) tk_call('html', 'base64', 'encode', dat) end
# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 136 def self.base64_encode(dat) tk_call('html', 'base64', 'encode', dat) end
# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 156 def self.crc32(data) tk_call('html', 'crc32', data) end
# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 132 def self.gunzip_data(dat) tk_call('html', 'gunzip', 'data', filet) end
# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 124 def self.gunzip_file(file, dat) tk_call('html', 'gunzip', 'file', filet) end
# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 128 def self.gzip_data(dat) tk_call('html', 'gzip', 'data', file, dat) end
# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 120 def self.gzip_file(file, dat) tk_call('html', 'gzip', 'file', file, dat) end
# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 116 def self.lockcopy(src, dst) tk_call('html', 'lockcopy', src, dst) end
# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 19 def self.package_version begin TkPackage.require('Tkhtml') rescue '' end end
class methods
# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 104 def self.reformat(src, dst, txt) tk_call('html', 'reformat', src, dst, txt) end
# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 152 def self.stdchan(cmd, channel) tk_call('html', 'stdchan', cmd, channel) end
# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 144 def self.text_format(dat, len) tk_call('html', 'text', 'format', dat, len) end
# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 108 def self.url_join(*args) # args := sheme authority path query fragment tk_call('html', 'urljoin', *args) end
# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 112 def self.url_split(uri) tk_call('html', 'urlsplit', uri) end
# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 148 def self.xor(cmd, *args) tk_call('html', 'xor', cmd, *args) end
# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 169 def bgimage(image, tid=None) tk_send('bgimage', image, tid) self end
# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 303 def break_text(idx) tk_send('text', 'break', idx) end
instance methods
# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 163 def clipping_window ClippingWindow.new(self) end
# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 179 def coords(index=None, percent=None) tk_send('coords', index, percent) end
# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 421 def dom_attr(idx) tk_send('dom', 'attr', idx) end
# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 425 def dom_formel(name) tk_send('dom', 'formel', name) end
# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 409 def dom_id(*spec) tk_send('dom', 'id', *spec) end
# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 413 def dom_ids(*spec) list(tk_send('dom', 'ids', *spec)) end
# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 399 def dom_nameidx(tag, name) number(tk_send('dom', 'nameidx', tag, name)) end
# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 404 def dom_radioidx(tag, name) number(tk_send('dom', 'radioidx', tag, name)) end
# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 430 def dom_tree(idx, val) list(tk_send('dom', 'tree', idx, val)) end
# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 417 def dom_value(*spec) list(tk_send('dom', 'value', *spec)) end
# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 183 def forminfo(*args) tk_send('forminfo', *args) end
# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 188 def href(x, y) simplelist(tk_send('href', x, y)) end
# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 293 def html_text(first, last) tk_send('text', 'html', first, last) end
# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 192 def image_add(id, img) tk_send('imageadd', id, img) self end
# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 197 def image_at(x, y) tk_send('imageat', x, y) end
# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 205 def image_set(id, num) tk_send('imageset', id, num) self end
# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 210 def image_update(id, imgs) tk_send('imageupdate', id, imgs) self end
# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 215 def index(idx, count=None, unit=None) tk_send('index', idx, count, unit) end
# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 219 def insert_cursor(idx) tk_send('insert', idx) end
# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 227 def on_screen(id, x, y) bool(tk_send('onscreen', id, x, y)) end
# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 231 def over(x, y) list(tk_send('over', x, y)) end
# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 239 def over_attr(x, y, attrs) list(tk_send('overattr', x, y, attrs)) end
# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 235 def over_markup(x, y) list(tk_send('over', x, y, '-muponly')) end
# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 282 def plain_text(first, last) tk_send('text', 'ascii', first, last) end
# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 274 def postscript(*args) tk_send('postscript', *args) end
# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 262 def refresh(*opts) tk_send('refresh', *opts) end
# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 248 def resolver(*uri_args) tk_send('resolver', *uri_args) end
# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 252 def selection_clear() tk_send('selection', 'clear') self end
# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 257 def selection_set(first, last) tk_send('selection', 'set', first, last) self end
# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 270 def sizewindow(*args) tk_send('sizewindow', *args) end
# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 288 def text_delete(first, last) tk_send('text', 'delete', first, last) self end
# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 308 def text_find(txt, *args) tk_send('text', 'find', txt, *args) end
# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 298 def text_insert(idx, txt) tk_send('text', 'insert', idx, txt) self end
# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 312 def text_table(idx, imgs=None, attrs=None) tk_send('text', 'table', idx, imgs, attrs) end
# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 347 def token_DOM(first, last=None) list(tk_send('token', 'domtokens', first, last)) end
# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 316 def token_append(tag, *args) tk_send('token', 'append', tag, *args) self end
# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 387 def token_attrs(*args) list(tk_send('token', 'attrs', *args)) end
# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 326 def token_define(*args) tk_send('token', 'defile', *args) self end
# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 321 def token_delete(first, last=None) tk_send('token', 'delete', first, last) self end
# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 331 def token_find(tag, *args) list(tk_send('token', 'find', tag, *args)) end
# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 335 def token_get(first, last=None) list(tk_send('token', 'get', first, last)) end
# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 363 def token_get_attr(idx, name=None) list(tk_send('token', 'attr', idx, name)) end
# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 354 def token_get_end(idx) tk_send('token', 'getend', idx) end
# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 372 def token_handler(tag, cmd=nil, &b) cmd = Proc.new(&b) if !cmd && b if cmd tk_send('token', 'handler', tag, cmd) return self else return tk_send('token', 'handler', tag) end end
# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 382 def token_insert(idx, tag, *args) tk_send('token', 'insert', idx, tag, *args) self end
# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 339 def token_list(first, last=None) list(tk_send('token', 'list', first, last)) end
# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 343 def token_markup(first, last=None) list(tk_send('token', 'markup', first, last)) end
# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 359 def token_offset(start, num1, num2) list(tk_send('token', 'offset', start, num1, num2)) end
# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 395 def token_on_events(*args) list(tk_send('token', 'onEvents', *args)) end
# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 367 def token_set_attr(idx, name=None, val=None) tk_send('token', 'attr', idx, name, val) self end