Namespace
Methods
A
B
C
D
F
G
H
I
L
N
O
P
R
S
T
U
X
Included Modules
Constants
PACKAGE_NAME = 'Tkhtml'.freeze
 
TkCommandNames = ['html'.freeze].freeze
 
WidgetClassName = 'Html'.freeze
 
Class Public methods
base64_decode(dat)
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 160
def self.base64_decode(dat)
  tk_call('html', 'base64', 'encode', dat)
end
base64_encode(dat)
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 156
def self.base64_encode(dat)
  tk_call('html', 'base64', 'encode', dat)
end
crc32(data)
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 176
def self.crc32(data)
  tk_call('html', 'crc32', data)
end
gunzip_data(dat)
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 152
def self.gunzip_data(dat)
  tk_call('html', 'gunzip', 'data', filet)
end
gunzip_file(file, dat)
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 144
def self.gunzip_file(file, dat)
  tk_call('html', 'gunzip', 'file', filet)
end
gzip_data(dat)
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 148
def self.gzip_data(dat)
  tk_call('html', 'gzip', 'data', file, dat)
end
gzip_file(file, dat)
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 140
def self.gzip_file(file, dat)
  tk_call('html', 'gzip', 'file', file, dat)
end
lockcopy(src, dst)
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 136
def self.lockcopy(src, dst)
  tk_call('html', 'lockcopy', src, dst)
end
package_name()
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 20
def self.package_name
  PACKAGE_NAME
end
package_version()
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 24
def self.package_version
  begin
    TkPackage.require('Tkhtml')
  rescue
    ''
  end
end
reformat(src, dst, txt)

class methods

# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 124
def self.reformat(src, dst, txt)
  tk_call('html', 'reformat', src, dst, txt)
end
stdchan(cmd, channel)
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 172
def self.stdchan(cmd, channel)
  tk_call('html', 'stdchan', cmd, channel)
end
text_format(dat, len)
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 164
def self.text_format(dat, len)
  tk_call('html', 'text', 'format', dat, len)
end
url_join(*args)
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 128
def self.url_join(*args) # args := sheme authority path query fragment
  tk_call('html', 'urljoin', *args)
end
url_split(uri)
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 132
def self.url_split(uri)
  tk_call('html', 'urlsplit', uri)
end
xor(cmd, *args)
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 168
def self.xor(cmd, *args)
  tk_call('html', 'xor', cmd, *args)
end
Instance Public methods
ascii_text(first, last)
Alias for: plain_text
bgimage(image, tid=None)
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 189
def bgimage(image, tid=None)
  tk_send('bgimage', image, tid)
  self
end
break_text(idx)
Also aliased as: text_break
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 323
def break_text(idx)
  tk_send('text', 'break', idx)
end
clear()
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 194
def clear()
  tk_send('clear')
  self
end
clipping_window()

instance methods

Also aliased as: clipwin, htmlclip
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 183
def clipping_window
  ClippingWindow.new(self)
end
clipwin()
Alias for: clipping_window
coords(index=None, percent=None)
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 199
def coords(index=None, percent=None)
  tk_send('coords', index, percent)
end
dom_attr(idx)
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 441
def dom_attr(idx)
  tk_send('dom', 'attr', idx)
end
dom_form_element(name)
Alias for: dom_formel
dom_formel(name)
Also aliased as: dom_form_element
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 445
def dom_formel(name)
  tk_send('dom', 'formel', name)
end
dom_id(*spec)
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 429
def dom_id(*spec)
  tk_send('dom', 'id', *spec)
end
dom_ids(*spec)
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 433
def dom_ids(*spec)
  list(tk_send('dom', 'ids', *spec))
end
dom_name_index(tag, name)
Alias for: dom_nameidx
dom_nameidx(tag, name)
Also aliased as: dom_name_index
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 419
def dom_nameidx(tag, name)
  number(tk_send('dom', 'nameidx', tag, name))
end
dom_radio_index(tag, name)
Alias for: dom_radioidx
dom_radioidx(tag, name)
Also aliased as: dom_radio_index
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 424
def dom_radioidx(tag, name)
  number(tk_send('dom', 'radioidx', tag, name))
end
dom_tree(idx, val)
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 450
def dom_tree(idx, val)
  list(tk_send('dom', 'tree', idx, val))
end
dom_value(*spec)
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 437
def dom_value(*spec)
  list(tk_send('dom', 'value', *spec))
end
form_info(*args)
Alias for: forminfo
forminfo(*args)
Also aliased as: form_info
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 203
def forminfo(*args)
  tk_send('forminfo', *args)
end
href(x, y)
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 208
def href(x, y)
  simplelist(tk_send('href', x, y))
end
html_text(first, last)
Also aliased as: text_html
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 313
def html_text(first, last)
  tk_send('text', 'html', first, last)
end
htmlclip()
Alias for: clipping_window
image_add(id, img)
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 212
def image_add(id, img)
  tk_send('imageadd', id, img)
  self
end
image_at(x, y)
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 217
def image_at(x, y)
  tk_send('imageat', x, y)
end
image_set(id, num)
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 225
def image_set(id, num)
  tk_send('imageset', id, num)
  self
end
image_update(id, imgs)
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 230
def image_update(id, imgs)
  tk_send('imageupdate', id, imgs)
  self
end
images()
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 221
def images()
  list(tk_send('images'))
end
index(idx, count=None, unit=None)
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 235
def index(idx, count=None, unit=None)
  tk_send('index', idx, count, unit)
end
insert_cursor(idx)
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 239
def insert_cursor(idx)
  tk_send('insert', idx)
end
layout()
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 286
def layout()
  tk_send('layout')
end
names()
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 243
def names()
  simple_list(tk_send('names'))
end
on_screen(id, x, y)
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 247
def on_screen(id, x, y)
  bool(tk_send('onscreen', id, x, y))
end
over(x, y)
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 251
def over(x, y)
  list(tk_send('over', x, y))
end
over_attr(x, y, attrs)
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 259
def over_attr(x, y, attrs)
  list(tk_send('overattr', x, y, attrs))
end
over_markup(x, y)
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 255
def over_markup(x, y)
  list(tk_send('over', x, y, '-muponly'))
end
parse(txt)
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 263
def parse(txt)
  tk_send('parse', txt)
  self
end
plain_text(first, last)
Also aliased as: ascii_text, text_ascii
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 302
def plain_text(first, last)
  tk_send('text', 'ascii', first, last)
end
postscript(*args)
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 294
def postscript(*args)
  tk_send('postscript', *args)
end
refresh(*opts)
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 282
def refresh(*opts)
  tk_send('refresh', *opts)
end
resolver(*uri_args)
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 268
def resolver(*uri_args)
  tk_send('resolver', *uri_args)
end
selection_clear()
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 272
def selection_clear()
  tk_send('selection', 'clear')
  self
end
selection_set(first, last)
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 277
def selection_set(first, last)
  tk_send('selection', 'set', first, last)
  self
end
sizewindow(*args)
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 290
def sizewindow(*args)
  tk_send('sizewindow', *args)
end
source()
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 298
def source()
  tk_send('source')
end
text_ascii(first, last)
Alias for: plain_text
text_break(idx)
Alias for: break_text
text_delete(first, last)
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 308
def text_delete(first, last)
  tk_send('text', 'delete', first, last)
  self
end
text_find(txt, *args)
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 328
def text_find(txt, *args)
  tk_send('text', 'find', txt, *args)
end
text_html(first, last)
Alias for: html_text
text_insert(idx, txt)
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 318
def text_insert(idx, txt)
  tk_send('text', 'insert', idx, txt)
  self
end
text_table(idx, imgs=None, attrs=None)
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 332
def text_table(idx, imgs=None, attrs=None)
  tk_send('text', 'table', idx, imgs, attrs)
end
token_DOM(first, last=None)
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 367
def token_DOM(first, last=None)
  list(tk_send('token', 'domtokens', first, last))
end
token_append(tag, *args)
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 336
def token_append(tag, *args)
  tk_send('token', 'append', tag, *args)
  self
end
token_attrs(*args)
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 407
def token_attrs(*args)
  list(tk_send('token', 'attrs', *args))
end
token_define(*args)
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 346
def token_define(*args)
  tk_send('token', 'defile', *args)
  self
end
token_delete(first, last=None)
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 341
def token_delete(first, last=None)
  tk_send('token', 'delete', first, last)
  self
end
token_dom(first, last=None)
Alias for: token_DOM
token_dom_tokens(first, last=None)
Alias for: token_DOM
token_domtokens(first, last=None)
Alias for: token_DOM
token_find(tag, *args)
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 351
def token_find(tag, *args)
  list(tk_send('token', 'find', tag, *args))
end
token_get(first, last=None)
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 355
def token_get(first, last=None)
  list(tk_send('token', 'get', first, last))
end
token_get_attr(idx, name=None)
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 383
def token_get_attr(idx, name=None)
  list(tk_send('token', 'attr', idx, name))
end
token_get_end(idx)
Also aliased as: token_getend
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 374
def token_get_end(idx)
  tk_send('token', 'getend', idx)
end
token_getend(idx)
Alias for: token_get_end
token_handler(tag, cmd=nil, &b)
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 392
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
token_insert(idx, tag, *args)
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 402
def token_insert(idx, tag, *args)
  tk_send('token', 'insert', idx, tag, *args)
  self
end
token_list(first, last=None)
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 359
def token_list(first, last=None)
  list(tk_send('token', 'list', first, last))
end
token_markup(first, last=None)
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 363
def token_markup(first, last=None)
  list(tk_send('token', 'markup', first, last))
end
token_offset(start, num1, num2)
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 379
def token_offset(start, num1, num2)
  list(tk_send('token', 'offset', start, num1, num2))
end
token_on_events(*args)
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 415
def token_on_events(*args)
  list(tk_send('token', 'onEvents', *args))
end
token_set_attr(idx, name=None, val=None)
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 387
def token_set_attr(idx, name=None, val=None)
  tk_send('token', 'attr', idx, name, val)
  self
end
token_unique(*args)
# File ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 411
def token_unique(*args)
  list(tk_send('token', 'unique', *args))
end