TkWinfo (Module)

In: tk/lib/tk/winfo.rb

Methods

appname   atom   atomname   cells   children   classname   colormapfull   containing   depth   exist?   fpixels   geometry   height   id   interps   manager   mapped?   parent   pixels   pointerx   pointerxy   pointery   reqheight   reqwidth   rgb   rootx   rooty   screen   screencells   screendepth   screenheight   screenmmheight   screenmmwidth   screenvisual   screenwidth   server   toplevel   viewable   visual   visualid   visualsavailable   vrootheight   vrootwidth   vrootx   vrooty   widget   width   winfo_appname   winfo_atom   winfo_atomname   winfo_cells   winfo_children   winfo_class   winfo_classname   winfo_colormapfull   winfo_containing   winfo_depth   winfo_exist?   winfo_fpixels   winfo_geometry   winfo_height   winfo_id   winfo_interps   winfo_manager   winfo_mapped?   winfo_parent   winfo_pixels   winfo_pointerx   winfo_pointerxy   winfo_pointery   winfo_reqheight   winfo_reqwidth   winfo_rgb   winfo_rootx   winfo_rooty   winfo_screen   winfo_screencells   winfo_screendepth   winfo_screenheight   winfo_screenmmheight   winfo_screenmmwidth   winfo_screenvisual   winfo_screenwidth   winfo_server   winfo_toplevel   winfo_viewable   winfo_visual   winfo_visualid   winfo_visualsavailable   winfo_vrootheight   winfo_vrootwidth   winfo_vrootx   winfo_vrooty   winfo_widget   winfo_width   winfo_x   winfo_y   x   y  

Constants

TkCommandNames = ['winfo'.freeze].freeze

Included Modules

Tk

Public Class methods

[Source]

# File tk/lib/tk/winfo.rb, line 145
  def TkWinfo.appname(window)
    tk_call('winfo', 'name', window)
  end

[Source]

# File tk/lib/tk/winfo.rb, line 12
  def TkWinfo.atom(name, win=nil)
    if win
      number(tk_call_without_enc('winfo', 'atom', '-displayof', win, 
                                 _get_eval_enc_str(name)))
    else
      number(tk_call_without_enc('winfo', 'atom', _get_eval_enc_str(name)))
    end
  end

[Source]

# File tk/lib/tk/winfo.rb, line 24
  def TkWinfo.atomname(id, win=nil)
    if win
      _fromUTF8(tk_call_without_enc('winfo', 'atomname', 
                                    '-displayof', win, id))
    else
      _fromUTF8(tk_call_without_enc('winfo', 'atomname', id))
    end
  end

[Source]

# File tk/lib/tk/winfo.rb, line 36
  def TkWinfo.cells(window)
    number(tk_call_without_enc('winfo', 'cells', window))
  end

[Source]

# File tk/lib/tk/winfo.rb, line 43
  def TkWinfo.children(window)
    list(tk_call_without_enc('winfo', 'children', window))
  end

[Source]

# File tk/lib/tk/winfo.rb, line 50
  def TkWinfo.classname(window)
    tk_call_without_enc('winfo', 'class', window)
  end

[Source]

# File tk/lib/tk/winfo.rb, line 58
  def TkWinfo.colormapfull(window)
     bool(tk_call_without_enc('winfo', 'colormapfull', window))
  end

[Source]

# File tk/lib/tk/winfo.rb, line 65
  def TkWinfo.containing(rootX, rootY, win=nil)
    if win
      window(tk_call_without_enc('winfo', 'containing', 
                                 '-displayof', win, rootX, rootY))
    else
      window(tk_call_without_enc('winfo', 'containing', rootX, rootY))
    end
  end

[Source]

# File tk/lib/tk/winfo.rb, line 77
  def TkWinfo.depth(window)
    number(tk_call_without_enc('winfo', 'depth', window))
  end

[Source]

# File tk/lib/tk/winfo.rb, line 84
  def TkWinfo.exist?(window)
    bool(tk_call_without_enc('winfo', 'exists', window))
  end

[Source]

# File tk/lib/tk/winfo.rb, line 91
  def TkWinfo.fpixels(window, dist)
    number(tk_call_without_enc('winfo', 'fpixels', window, dist))
  end

[Source]

# File tk/lib/tk/winfo.rb, line 98
  def TkWinfo.geometry(window)
    tk_call_without_enc('winfo', 'geometry', window)
  end

[Source]

# File tk/lib/tk/winfo.rb, line 105
  def TkWinfo.height(window)
    number(tk_call_without_enc('winfo', 'height', window))
  end

[Source]

# File tk/lib/tk/winfo.rb, line 112
  def TkWinfo.id(window)
    tk_call_without_enc('winfo', 'id', window)
  end

[Source]

# File tk/lib/tk/winfo.rb, line 119
  def TkWinfo.interps(window=nil)
    if window
      tk_split_simplelist(tk_call_without_enc('winfo', 'interps',
                                              '-displayof', window))
    else
      tk_split_simplelist(tk_call_without_enc('winfo', 'interps'))
    end
  end

[Source]

# File tk/lib/tk/winfo.rb, line 138
  def TkWinfo.manager(window)
    tk_call_without_enc('winfo', 'manager', window)
  end

[Source]

# File tk/lib/tk/winfo.rb, line 131
  def TkWinfo.mapped?(window)
    bool(tk_call_without_enc('winfo', 'ismapped', window))
  end

[Source]

# File tk/lib/tk/winfo.rb, line 152
  def TkWinfo.parent(window)
    window(tk_call_without_enc('winfo', 'parent', window))
  end

[Source]

# File tk/lib/tk/winfo.rb, line 170
  def TkWinfo.pixels(window, dist)
    number(tk_call_without_enc('winfo', 'pixels', window, dist))
  end

[Source]

# File tk/lib/tk/winfo.rb, line 364
  def TkWinfo.pointerx(window)
    number(tk_call_without_enc('winfo', 'pointerx', window))
  end

[Source]

# File tk/lib/tk/winfo.rb, line 378
  def TkWinfo.pointerxy(window)
    list(tk_call_without_enc('winfo', 'pointerxy', window))
  end

[Source]

# File tk/lib/tk/winfo.rb, line 371
  def TkWinfo.pointery(window)
    number(tk_call_without_enc('winfo', 'pointery', window))
  end

[Source]

# File tk/lib/tk/winfo.rb, line 177
  def TkWinfo.reqheight(window)
    number(tk_call_without_enc('winfo', 'reqheight', window))
  end

[Source]

# File tk/lib/tk/winfo.rb, line 184
  def TkWinfo.reqwidth(window)
    number(tk_call_without_enc('winfo', 'reqwidth', window))
  end

[Source]

# File tk/lib/tk/winfo.rb, line 191
  def TkWinfo.rgb(window, color)
    list(tk_call_without_enc('winfo', 'rgb', window, color))
  end

[Source]

# File tk/lib/tk/winfo.rb, line 198
  def TkWinfo.rootx(window)
    number(tk_call_without_enc('winfo', 'rootx', window))
  end

[Source]

# File tk/lib/tk/winfo.rb, line 205
  def TkWinfo.rooty(window)
    number(tk_call_without_enc('winfo', 'rooty', window))
  end

[Source]

# File tk/lib/tk/winfo.rb, line 212
  def TkWinfo.screen(window)
    tk_call('winfo', 'screen', window)
  end

[Source]

# File tk/lib/tk/winfo.rb, line 219
  def TkWinfo.screencells(window)
    number(tk_call_without_enc('winfo', 'screencells', window))
  end

[Source]

# File tk/lib/tk/winfo.rb, line 226
  def TkWinfo.screendepth(window)
    number(tk_call_without_enc('winfo', 'screendepth', window))
  end

[Source]

# File tk/lib/tk/winfo.rb, line 233
  def TkWinfo.screenheight (window)
    number(tk_call_without_enc('winfo', 'screenheight', window))
  end

[Source]

# File tk/lib/tk/winfo.rb, line 240
  def TkWinfo.screenmmheight(window)
    number(tk_call_without_enc('winfo', 'screenmmheight', window))
  end

[Source]

# File tk/lib/tk/winfo.rb, line 247
  def TkWinfo.screenmmwidth(window)
    number(tk_call_without_enc('winfo', 'screenmmwidth', window))
  end

[Source]

# File tk/lib/tk/winfo.rb, line 254
  def TkWinfo.screenvisual(window)
    tk_call_without_enc('winfo', 'screenvisual', window)
  end

[Source]

# File tk/lib/tk/winfo.rb, line 261
  def TkWinfo.screenwidth(window)
    number(tk_call_without_enc('winfo', 'screenwidth', window))
  end

[Source]

# File tk/lib/tk/winfo.rb, line 268
  def TkWinfo.server(window)
    tk_call('winfo', 'server', window)
  end

[Source]

# File tk/lib/tk/winfo.rb, line 275
  def TkWinfo.toplevel(window)
    window(tk_call_without_enc('winfo', 'toplevel', window))
  end

[Source]

# File tk/lib/tk/winfo.rb, line 357
  def TkWinfo.viewable(window)
    bool(tk_call_without_enc('winfo', 'viewable', window))
  end

[Source]

# File tk/lib/tk/winfo.rb, line 282
  def TkWinfo.visual(window)
    tk_call_without_enc('winfo', 'visual', window)
  end

[Source]

# File tk/lib/tk/winfo.rb, line 289
  def TkWinfo.visualid(window)
    tk_call_without_enc('winfo', 'visualid', window)
  end

[Source]

# File tk/lib/tk/winfo.rb, line 296
  def TkWinfo.visualsavailable(window, includeids=false)
    if includeids
      list(tk_call_without_enc('winfo', 'visualsavailable', 
                               window, "includeids"))
    else
      list(tk_call_without_enc('winfo', 'visualsavailable', window))
    end
  end

[Source]

# File tk/lib/tk/winfo.rb, line 308
  def TkWinfo.vrootheight(window)
    number(tk_call_without_enc('winfo', 'vrootheight', window))
  end

[Source]

# File tk/lib/tk/winfo.rb, line 315
  def TkWinfo.vrootwidth(window)
    number(tk_call_without_enc('winfo', 'vrootwidth', window))
  end

[Source]

# File tk/lib/tk/winfo.rb, line 322
  def TkWinfo.vrootx(window)
    number(tk_call_without_enc('winfo', 'vrootx', window))
  end

[Source]

# File tk/lib/tk/winfo.rb, line 329
  def TkWinfo.vrooty(window)
    number(tk_call_without_enc('winfo', 'vrooty', window))
  end

[Source]

# File tk/lib/tk/winfo.rb, line 159
  def TkWinfo.widget(id, win=nil)
    if win
      window(tk_call_without_enc('winfo', 'pathname', '-displayof', win, id))
    else
      window(tk_call_without_enc('winfo', 'pathname', id))
    end
  end

[Source]

# File tk/lib/tk/winfo.rb, line 336
  def TkWinfo.width(window)
    number(tk_call_without_enc('winfo', 'width', window))
  end

[Source]

# File tk/lib/tk/winfo.rb, line 343
  def TkWinfo.x(window)
    number(tk_call_without_enc('winfo', 'x', window))
  end

[Source]

# File tk/lib/tk/winfo.rb, line 350
  def TkWinfo.y(window)
    number(tk_call_without_enc('winfo', 'y', window))
  end

Public Instance methods

[Source]

# File tk/lib/tk/winfo.rb, line 148
  def winfo_appname
    TkWinfo.appname self
  end

[Source]

# File tk/lib/tk/winfo.rb, line 20
  def winfo_atom(name)
    TkWinfo.atom(name, self)
  end

[Source]

# File tk/lib/tk/winfo.rb, line 32
  def winfo_atomname(id)
    TkWinfo.atomname(id, self)
  end

[Source]

# File tk/lib/tk/winfo.rb, line 39
  def winfo_cells
    TkWinfo.cells self
  end

[Source]

# File tk/lib/tk/winfo.rb, line 46
  def winfo_children
    TkWinfo.children self
  end
winfo_class()

Alias for winfo_classname

[Source]

# File tk/lib/tk/winfo.rb, line 53
  def winfo_classname
    TkWinfo.classname self
  end

[Source]

# File tk/lib/tk/winfo.rb, line 61
  def winfo_colormapfull
    TkWinfo.colormapfull self
  end

[Source]

# File tk/lib/tk/winfo.rb, line 73
  def winfo_containing(x, y)
    TkWinfo.containing(x, y, self)
  end

[Source]

# File tk/lib/tk/winfo.rb, line 80
  def winfo_depth
    TkWinfo.depth self
  end

[Source]

# File tk/lib/tk/winfo.rb, line 87
  def winfo_exist?
    TkWinfo.exist? self
  end

[Source]

# File tk/lib/tk/winfo.rb, line 94
  def winfo_fpixels(dist)
    TkWinfo.fpixels self, dist
  end

[Source]

# File tk/lib/tk/winfo.rb, line 101
  def winfo_geometry
    TkWinfo.geometry self
  end

[Source]

# File tk/lib/tk/winfo.rb, line 108
  def winfo_height
    TkWinfo.height self
  end

[Source]

# File tk/lib/tk/winfo.rb, line 115
  def winfo_id
    TkWinfo.id self
  end

[Source]

# File tk/lib/tk/winfo.rb, line 127
  def winfo_interps
    TkWinfo.interps self
  end

[Source]

# File tk/lib/tk/winfo.rb, line 141
  def winfo_manager
    TkWinfo.manager self
  end

[Source]

# File tk/lib/tk/winfo.rb, line 134
  def winfo_mapped?
    TkWinfo.mapped? self
  end

[Source]

# File tk/lib/tk/winfo.rb, line 155
  def winfo_parent
    TkWinfo.parent self
  end

[Source]

# File tk/lib/tk/winfo.rb, line 173
  def winfo_pixels(dist)
    TkWinfo.pixels self, dist
  end

[Source]

# File tk/lib/tk/winfo.rb, line 367
  def winfo_pointerx
    TkWinfo.pointerx self
  end

[Source]

# File tk/lib/tk/winfo.rb, line 381
  def winfo_pointerxy
    TkWinfo.pointerxy self
  end

[Source]

# File tk/lib/tk/winfo.rb, line 374
  def winfo_pointery
    TkWinfo.pointery self
  end

[Source]

# File tk/lib/tk/winfo.rb, line 180
  def winfo_reqheight
    TkWinfo.reqheight self
  end

[Source]

# File tk/lib/tk/winfo.rb, line 187
  def winfo_reqwidth
    TkWinfo.reqwidth self
  end

[Source]

# File tk/lib/tk/winfo.rb, line 194
  def winfo_rgb(color)
    TkWinfo.rgb self, color
  end

[Source]

# File tk/lib/tk/winfo.rb, line 201
  def winfo_rootx
    TkWinfo.rootx self
  end

[Source]

# File tk/lib/tk/winfo.rb, line 208
  def winfo_rooty
    TkWinfo.rooty self
  end

[Source]

# File tk/lib/tk/winfo.rb, line 215
  def winfo_screen
    TkWinfo.screen self
  end

[Source]

# File tk/lib/tk/winfo.rb, line 222
  def winfo_screencells
    TkWinfo.screencells self
  end

[Source]

# File tk/lib/tk/winfo.rb, line 229
  def winfo_screendepth
    TkWinfo.screendepth self
  end

[Source]

# File tk/lib/tk/winfo.rb, line 236
  def winfo_screenheight
    TkWinfo.screenheight self
  end

[Source]

# File tk/lib/tk/winfo.rb, line 243
  def winfo_screenmmheight
    TkWinfo.screenmmheight self
  end

[Source]

# File tk/lib/tk/winfo.rb, line 250
  def winfo_screenmmwidth
    TkWinfo.screenmmwidth self
  end

[Source]

# File tk/lib/tk/winfo.rb, line 257
  def winfo_screenvisual
    TkWinfo.screenvisual self
  end

[Source]

# File tk/lib/tk/winfo.rb, line 264
  def winfo_screenwidth
    TkWinfo.screenwidth self
  end

[Source]

# File tk/lib/tk/winfo.rb, line 271
  def winfo_server
    TkWinfo.server self
  end

[Source]

# File tk/lib/tk/winfo.rb, line 278
  def winfo_toplevel
    TkWinfo.toplevel self
  end

[Source]

# File tk/lib/tk/winfo.rb, line 360
  def winfo_viewable
    TkWinfo.viewable self
  end

[Source]

# File tk/lib/tk/winfo.rb, line 285
  def winfo_visual
    TkWinfo.visual self
  end

[Source]

# File tk/lib/tk/winfo.rb, line 292
  def winfo_visualid
    TkWinfo.visualid self
  end

[Source]

# File tk/lib/tk/winfo.rb, line 304
  def winfo_visualsavailable(includeids=false)
    TkWinfo.visualsavailable self, includeids
  end

[Source]

# File tk/lib/tk/winfo.rb, line 311
  def winfo_vrootheight
    TkWinfo.vrootheight self
  end

[Source]

# File tk/lib/tk/winfo.rb, line 318
  def winfo_vrootwidth
    TkWinfo.vrootwidth self
  end

[Source]

# File tk/lib/tk/winfo.rb, line 325
  def winfo_vrootx
    TkWinfo.vrootx self
  end

[Source]

# File tk/lib/tk/winfo.rb, line 332
  def winfo_vrooty
    TkWinfo.vrooty self
  end

[Source]

# File tk/lib/tk/winfo.rb, line 166
  def winfo_widget(id)
    TkWinfo.widget id, self
  end

[Source]

# File tk/lib/tk/winfo.rb, line 339
  def winfo_width
    TkWinfo.width self
  end

[Source]

# File tk/lib/tk/winfo.rb, line 346
  def winfo_x
    TkWinfo.x self
  end

[Source]

# File tk/lib/tk/winfo.rb, line 353
  def winfo_y
    TkWinfo.y self
  end

[Validate]