Class Tk::HTML_Widget
In: tk/lib/tkextlib/tkHTML/htmlwidget.rb
Parent: TkWindow

Methods

Included Modules

Scrollable

Classes and Modules

Class Tk::HTML_Widget::ClippingWindow

Constants

PACKAGE_NAME = 'Tkhtml'.freeze
TkCommandNames = ['html'.freeze].freeze
WidgetClassName = 'Html'.freeze

Public Class methods

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 151
  def self.base64_decode(dat)
    tk_call('html', 'base64', 'encode', dat)
  end

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 147
  def self.base64_encode(dat)
    tk_call('html', 'base64', 'encode', dat)
  end

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 167
  def self.crc32(data)
    tk_call('html', 'crc32', data)
  end

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 143
  def self.gunzip_data(dat)
    tk_call('html', 'gunzip', 'data', filet)
  end

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 135
  def self.gunzip_file(file, dat)
    tk_call('html', 'gunzip', 'file', filet)
  end

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 139
  def self.gzip_data(dat)
    tk_call('html', 'gzip', 'data', file, dat)
  end

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 131
  def self.gzip_file(file, dat)
    tk_call('html', 'gzip', 'file', file, dat)
  end

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 127
  def self.lockcopy(src, dst)
    tk_call('html', 'lockcopy', src, dst)
  end

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 20
    def self.package_name
      PACKAGE_NAME
    end

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 24
    def self.package_version
      begin
        TkPackage.require('Tkhtml')
      rescue
        ''
      end
    end

class methods

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 115
  def self.reformat(src, dst, txt)
    tk_call('html', 'reformat', src, dst, txt)
  end

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 163
  def self.stdchan(cmd, channel)
    tk_call('html', 'stdchan', cmd, channel)
  end

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 155
  def self.text_format(dat, len)
    tk_call('html', 'text', 'format', dat, len)
  end

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 119
  def self.url_join(*args) # args := sheme authority path query fragment
    tk_call('html', 'urljoin', *args)
  end

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 123
  def self.url_split(uri)
    tk_call('html', 'urlsplit', uri)
  end

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 159
  def self.xor(cmd, *args)
    tk_call('html', 'xor', cmd, *args)
  end

Public Instance methods

ascii_text(first, last)

Alias for plain_text

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 180
  def bgimage(image, tid=None)
    tk_send('bgimage', image, tid)
    self
  end

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 314
  def break_text(idx)
    tk_send('text', 'break', idx)
  end

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 185
  def clear()
    tk_send('clear')
    self
  end

instance methods

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 174
  def clipping_window
    ClippingWindow.new(self)
  end
clipwin()

Alias for clipping_window

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 190
  def coords(index=None, percent=None)
    tk_send('coords', index, percent)
  end

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 432
  def dom_attr(idx)
    tk_send('dom', 'attr', idx)
  end
dom_form_element(name)

Alias for dom_formel

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 436
  def dom_formel(name)
    tk_send('dom', 'formel', name)
  end

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 420
  def dom_id(*spec)
    tk_send('dom', 'id', *spec)
  end

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 424
  def dom_ids(*spec)
    list(tk_send('dom', 'ids', *spec))
  end
dom_name_index(tag, name)

Alias for dom_nameidx

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 410
  def dom_nameidx(tag, name)
    number(tk_send('dom', 'nameidx', tag, name))
  end
dom_radio_index(tag, name)

Alias for dom_radioidx

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 415
  def dom_radioidx(tag, name)
    number(tk_send('dom', 'radioidx', tag, name))
  end

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 441
  def dom_tree(idx, val)
    list(tk_send('dom', 'tree', idx, val))
  end

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 428
  def dom_value(*spec)
    list(tk_send('dom', 'value', *spec))
  end
form_info(*args)

Alias for forminfo

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 194
  def forminfo(*args)
    tk_send('forminfo', *args)
  end

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 199
  def href(x, y)
    simplelist(tk_send('href', x, y))
  end

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 304
  def html_text(first, last)
    tk_send('text', 'html', first, last)
  end
htmlclip()

Alias for clipping_window

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 203
  def image_add(id, img)
    tk_send('imageadd', id, img)
    self
  end

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 208
  def image_at(x, y)
    tk_send('imageat', x, y)
  end

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 216
  def image_set(id, num)
    tk_send('imageset', id, num)
    self
  end

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 221
  def image_update(id, imgs)
    tk_send('imageupdate', id, imgs)
    self
  end

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 212
  def images()
    list(tk_send('images'))
  end

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 226
  def index(idx, count=None, unit=None)
    tk_send('index', idx, count, unit)
  end

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 230
  def insert_cursor(idx)
    tk_send('insert', idx)
  end

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 277
  def layout()
    tk_send('layout')
  end

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 234
  def names()
    simple_list(tk_send('names'))
  end

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 238
  def on_screen(id, x, y)
    bool(tk_send('onscreen', id, x, y))
  end

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 242
  def over(x, y)
    list(tk_send('over', x, y))
  end

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 250
  def over_attr(x, y, attrs)
    list(tk_send('overattr', x, y, attrs))
  end

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 246
  def over_markup(x, y)
    list(tk_send('over', x, y, '-muponly'))
  end

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 254
  def parse(txt)
    tk_send('parse', txt)
    self
  end

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 293
  def plain_text(first, last)
    tk_send('text', 'ascii', first, last)
  end

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 285
  def postscript(*args)
    tk_send('postscript', *args)
  end

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 273
  def refresh(*opts)
    tk_send('refresh', *opts)
  end

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 259
  def resolver(*uri_args)
    tk_send('resolver', *uri_args)
  end

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 263
  def selection_clear()
    tk_send('selection', 'clear')
    self
  end

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 268
  def selection_set(first, last)
    tk_send('selection', 'set', first, last)
    self
  end

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 281
  def sizewindow(*args)
    tk_send('sizewindow', *args)
  end

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 289
  def source()
    tk_send('source')
  end
text_ascii(first, last)

Alias for plain_text

text_break(idx)

Alias for break_text

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 299
  def text_delete(first, last)
    tk_send('text', 'delete', first, last)
    self
  end

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 319
  def text_find(txt, *args)
    tk_send('text', 'find', txt, *args)
  end
text_html(first, last)

Alias for html_text

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 309
  def text_insert(idx, txt)
    tk_send('text', 'insert', idx, txt)
    self
  end

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 323
  def text_table(idx, imgs=None, attrs=None)
    tk_send('text', 'table', idx, imgs, attrs)
  end

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 358
  def token_DOM(first, last=None)
    list(tk_send('token', 'domtokens', first, last))
  end

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 327
  def token_append(tag, *args)
    tk_send('token', 'append', tag, *args)
    self
  end

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 398
  def token_attrs(*args)
    list(tk_send('token', 'attrs', *args))
  end

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 337
  def token_define(*args)
    tk_send('token', 'defile', *args)
    self
  end

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 332
  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

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 342
  def token_find(tag, *args)
    list(tk_send('token', 'find', tag, *args))
  end

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 346
  def token_get(first, last=None)
    list(tk_send('token', 'get', first, last))
  end

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 374
  def token_get_attr(idx, name=None)
    list(tk_send('token', 'attr', idx, name))
  end

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 365
  def token_get_end(idx)
    tk_send('token', 'getend', idx)
  end
token_getend(idx)

Alias for token_get_end

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 383
  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

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 393
  def token_insert(idx, tag, *args)
    tk_send('token', 'insert', idx, tag, *args)
    self
  end

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 350
  def token_list(first, last=None)
    list(tk_send('token', 'list', first, last))
  end

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 354
  def token_markup(first, last=None)
    list(tk_send('token', 'markup', first, last))
  end

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 370
  def token_offset(start, num1, num2)
    list(tk_send('token', 'offset', start, num1, num2))
  end

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 406
  def token_on_events(*args)
    list(tk_send('token', 'onEvents', *args))
  end

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 378
  def token_set_attr(idx, name=None, val=None)
    tk_send('token', 'attr', idx, name, val)
    self
  end

[Source]

# File tk/lib/tkextlib/tkHTML/htmlwidget.rb, line 402
  def token_unique(*args)
    list(tk_send('token', 'unique', *args))
  end

[Validate]