Module: TkWinfo (Ruby 2.3.4)

In Files

  • tk/lib/tk/winfo.rb

Class/Module Index [+]

Quicksearch

TkWinfo

Constants

TkCommandNames

Public Class Methods

appname(win)
 
               # File tk/lib/tk/winfo.rb, line 154
def TkWinfo.appname(win)
  tk_call('winfo', 'name', win)
end
            
atom(name, win=nil)
 
               # File tk/lib/tk/winfo.rb, line 16
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
            
atomname(id, win=nil)
 
               # File tk/lib/tk/winfo.rb, line 28
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
            
cells(win)
 
               # File tk/lib/tk/winfo.rb, line 40
def TkWinfo.cells(win)
  number(tk_call_without_enc('winfo', 'cells', win))
end
            
children(win)
 
               # File tk/lib/tk/winfo.rb, line 47
def TkWinfo.children(win)
  list(tk_call_without_enc('winfo', 'children', win))
end
            
classname(win)
 
               # File tk/lib/tk/winfo.rb, line 54
def TkWinfo.classname(win)
  tk_call_without_enc('winfo', 'class', win)
end
            
colormapfull(win)
 
               # File tk/lib/tk/winfo.rb, line 62
def TkWinfo.colormapfull(win)
   bool(tk_call_without_enc('winfo', 'colormapfull', win))
end
            
containing(rootX, rootY, win=nil)
 
               # File tk/lib/tk/winfo.rb, line 69
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
            
depth(win)
 
               # File tk/lib/tk/winfo.rb, line 81
def TkWinfo.depth(win)
  number(tk_call_without_enc('winfo', 'depth', win))
end
            
exist?(win)
 
               # File tk/lib/tk/winfo.rb, line 88
def TkWinfo.exist?(win)
  bool(tk_call_without_enc('winfo', 'exists', win))
end
            
fpixels(win, dist)
 
               # File tk/lib/tk/winfo.rb, line 95
def TkWinfo.fpixels(win, dist)
  number(tk_call_without_enc('winfo', 'fpixels', win, dist))
end
            
geometry(win)
 
               # File tk/lib/tk/winfo.rb, line 102
def TkWinfo.geometry(win)
  tk_call_without_enc('winfo', 'geometry', win)
end
            
height(win)
 
               # File tk/lib/tk/winfo.rb, line 109
def TkWinfo.height(win)
  number(tk_call_without_enc('winfo', 'height', win))
end
            
id(win)
 
               # File tk/lib/tk/winfo.rb, line 116
def TkWinfo.id(win)
  tk_call_without_enc('winfo', 'id', win)
end
            
interps(win=nil)
 
               # File tk/lib/tk/winfo.rb, line 123
def TkWinfo.interps(win=nil)
  if win
    #tk_split_simplelist(tk_call_without_enc('winfo', 'interps',
    #                                        '-displayof', win))
    tk_split_simplelist(tk_call_without_enc('winfo', 'interps',
                                            '-displayof', win),
                        false, true)
  else
    #tk_split_simplelist(tk_call_without_enc('winfo', 'interps'))
    tk_split_simplelist(tk_call_without_enc('winfo', 'interps'),
                        false, true)
  end
end
            
manager(win)
 
               # File tk/lib/tk/winfo.rb, line 147
def TkWinfo.manager(win)
  tk_call_without_enc('winfo', 'manager', win)
end
            
mapped?(win)
 
               # File tk/lib/tk/winfo.rb, line 140
def TkWinfo.mapped?(win)
  bool(tk_call_without_enc('winfo', 'ismapped', win))
end
            
parent(win)
 
               # File tk/lib/tk/winfo.rb, line 161
def TkWinfo.parent(win)
  window(tk_call_without_enc('winfo', 'parent', win))
end
            
pixels(win, dist)
 
               # File tk/lib/tk/winfo.rb, line 179
def TkWinfo.pixels(win, dist)
  number(tk_call_without_enc('winfo', 'pixels', win, dist))
end
            
pointerx(win)
 
               # File tk/lib/tk/winfo.rb, line 373
def TkWinfo.pointerx(win)
  number(tk_call_without_enc('winfo', 'pointerx', win))
end
            
pointerxy(win)
 
               # File tk/lib/tk/winfo.rb, line 387
def TkWinfo.pointerxy(win)
  list(tk_call_without_enc('winfo', 'pointerxy', win))
end
            
pointery(win)
 
               # File tk/lib/tk/winfo.rb, line 380
def TkWinfo.pointery(win)
  number(tk_call_without_enc('winfo', 'pointery', win))
end
            
reqheight(win)
 
               # File tk/lib/tk/winfo.rb, line 186
def TkWinfo.reqheight(win)
  number(tk_call_without_enc('winfo', 'reqheight', win))
end
            
reqwidth(win)
 
               # File tk/lib/tk/winfo.rb, line 193
def TkWinfo.reqwidth(win)
  number(tk_call_without_enc('winfo', 'reqwidth', win))
end
            
rgb(win, color)
 
               # File tk/lib/tk/winfo.rb, line 200
def TkWinfo.rgb(win, color)
  list(tk_call_without_enc('winfo', 'rgb', win, color))
end
            
rootx(win)
 
               # File tk/lib/tk/winfo.rb, line 207
def TkWinfo.rootx(win)
  number(tk_call_without_enc('winfo', 'rootx', win))
end
            
rooty(win)
 
               # File tk/lib/tk/winfo.rb, line 214
def TkWinfo.rooty(win)
  number(tk_call_without_enc('winfo', 'rooty', win))
end
            
screen(win)
 
               # File tk/lib/tk/winfo.rb, line 221
def TkWinfo.screen(win)
  tk_call('winfo', 'screen', win)
end
            
screencells(win)
 
               # File tk/lib/tk/winfo.rb, line 228
def TkWinfo.screencells(win)
  number(tk_call_without_enc('winfo', 'screencells', win))
end
            
screendepth(win)
 
               # File tk/lib/tk/winfo.rb, line 235
def TkWinfo.screendepth(win)
  number(tk_call_without_enc('winfo', 'screendepth', win))
end
            
screenheight(win)
 
               # File tk/lib/tk/winfo.rb, line 242
def TkWinfo.screenheight (win)
  number(tk_call_without_enc('winfo', 'screenheight', win))
end
            
screenmmheight(win)
 
               # File tk/lib/tk/winfo.rb, line 249
def TkWinfo.screenmmheight(win)
  number(tk_call_without_enc('winfo', 'screenmmheight', win))
end
            
screenmmwidth(win)
 
               # File tk/lib/tk/winfo.rb, line 256
def TkWinfo.screenmmwidth(win)
  number(tk_call_without_enc('winfo', 'screenmmwidth', win))
end
            
screenvisual(win)
 
               # File tk/lib/tk/winfo.rb, line 263
def TkWinfo.screenvisual(win)
  tk_call_without_enc('winfo', 'screenvisual', win)
end
            
screenwidth(win)
 
               # File tk/lib/tk/winfo.rb, line 270
def TkWinfo.screenwidth(win)
  number(tk_call_without_enc('winfo', 'screenwidth', win))
end
            
server(win)
 
               # File tk/lib/tk/winfo.rb, line 277
def TkWinfo.server(win)
  tk_call('winfo', 'server', win)
end
            
toplevel(win)
 
               # File tk/lib/tk/winfo.rb, line 284
def TkWinfo.toplevel(win)
  window(tk_call_without_enc('winfo', 'toplevel', win))
end
            
viewable(win)
 
               # File tk/lib/tk/winfo.rb, line 366
def TkWinfo.viewable(win)
  bool(tk_call_without_enc('winfo', 'viewable', win))
end
            
visual(win)
 
               # File tk/lib/tk/winfo.rb, line 291
def TkWinfo.visual(win)
  tk_call_without_enc('winfo', 'visual', win)
end
            
visualid(win)
 
               # File tk/lib/tk/winfo.rb, line 298
def TkWinfo.visualid(win)
  tk_call_without_enc('winfo', 'visualid', win)
end
            
visualsavailable(win, includeids=false)
 
               # File tk/lib/tk/winfo.rb, line 305
def TkWinfo.visualsavailable(win, includeids=false)
  if includeids
    list(tk_call_without_enc('winfo', 'visualsavailable',
                             win, "includeids"))
  else
    list(tk_call_without_enc('winfo', 'visualsavailable', win))
  end
end
            
vrootheight(win)
 
               # File tk/lib/tk/winfo.rb, line 317
def TkWinfo.vrootheight(win)
  number(tk_call_without_enc('winfo', 'vrootheight', win))
end
            
vrootwidth(win)
 
               # File tk/lib/tk/winfo.rb, line 324
def TkWinfo.vrootwidth(win)
  number(tk_call_without_enc('winfo', 'vrootwidth', win))
end
            
vrootx(win)
 
               # File tk/lib/tk/winfo.rb, line 331
def TkWinfo.vrootx(win)
  number(tk_call_without_enc('winfo', 'vrootx', win))
end
            
vrooty(win)
 
               # File tk/lib/tk/winfo.rb, line 338
def TkWinfo.vrooty(win)
  number(tk_call_without_enc('winfo', 'vrooty', win))
end
            
widget(id, win=nil)
 
               # File tk/lib/tk/winfo.rb, line 168
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
            
width(win)
 
               # File tk/lib/tk/winfo.rb, line 345
def TkWinfo.width(win)
  number(tk_call_without_enc('winfo', 'width', win))
end
            
x(win)
 
               # File tk/lib/tk/winfo.rb, line 352
def TkWinfo.x(win)
  number(tk_call_without_enc('winfo', 'x', win))
end
            
y(win)
 
               # File tk/lib/tk/winfo.rb, line 359
def TkWinfo.y(win)
  number(tk_call_without_enc('winfo', 'y', win))
end
            

Public Instance Methods

winfo_appname()
 
               # File tk/lib/tk/winfo.rb, line 157
def winfo_appname
  TkWinfo.appname self
end
            
winfo_atom(name)
 
               # File tk/lib/tk/winfo.rb, line 24
def winfo_atom(name)
  TkWinfo.atom(name, self)
end
            
winfo_atomname(id)
 
               # File tk/lib/tk/winfo.rb, line 36
def winfo_atomname(id)
  TkWinfo.atomname(id, self)
end
            
winfo_cells()
 
               # File tk/lib/tk/winfo.rb, line 43
def winfo_cells
  TkWinfo.cells self
end
            
winfo_children()
 
               # File tk/lib/tk/winfo.rb, line 50
def winfo_children
  TkWinfo.children self
end
            
winfo_class()
Alias for: winfo_classname
winfo_classname()
 
               # File tk/lib/tk/winfo.rb, line 57
def winfo_classname
  TkWinfo.classname self
end
            
Also aliased as: winfo_class
winfo_colormapfull()
 
               # File tk/lib/tk/winfo.rb, line 65
def winfo_colormapfull
  TkWinfo.colormapfull self
end
            
winfo_containing(x, y)
 
               # File tk/lib/tk/winfo.rb, line 77
def winfo_containing(x, y)
  TkWinfo.containing(x, y, self)
end
            
winfo_depth()
 
               # File tk/lib/tk/winfo.rb, line 84
def winfo_depth
  TkWinfo.depth self
end
            
winfo_exist?()
 
               # File tk/lib/tk/winfo.rb, line 91
def winfo_exist?
  TkWinfo.exist? self
end
            
winfo_fpixels(dist)
 
               # File tk/lib/tk/winfo.rb, line 98
def winfo_fpixels(dist)
  TkWinfo.fpixels self, dist
end
            
winfo_geometry()
 
               # File tk/lib/tk/winfo.rb, line 105
def winfo_geometry
  TkWinfo.geometry self
end
            
winfo_height()
 
               # File tk/lib/tk/winfo.rb, line 112
def winfo_height
  TkWinfo.height self
end
            
winfo_id()
 
               # File tk/lib/tk/winfo.rb, line 119
def winfo_id
  TkWinfo.id self
end
            
winfo_interps()
 
               # File tk/lib/tk/winfo.rb, line 136
def winfo_interps
  TkWinfo.interps self
end
            
winfo_manager()
 
               # File tk/lib/tk/winfo.rb, line 150
def winfo_manager
  TkWinfo.manager self
end
            
winfo_mapped?()
 
               # File tk/lib/tk/winfo.rb, line 143
def winfo_mapped?
  TkWinfo.mapped? self
end
            
winfo_parent()
 
               # File tk/lib/tk/winfo.rb, line 164
def winfo_parent
  TkWinfo.parent self
end
            
winfo_pixels(dist)
 
               # File tk/lib/tk/winfo.rb, line 182
def winfo_pixels(dist)
  TkWinfo.pixels self, dist
end
            
winfo_pointerx()
 
               # File tk/lib/tk/winfo.rb, line 376
def winfo_pointerx
  TkWinfo.pointerx self
end
            
winfo_pointerxy()
 
               # File tk/lib/tk/winfo.rb, line 390
def winfo_pointerxy
  TkWinfo.pointerxy self
end
            
winfo_pointery()
 
               # File tk/lib/tk/winfo.rb, line 383
def winfo_pointery
  TkWinfo.pointery self
end
            
winfo_reqheight()
 
               # File tk/lib/tk/winfo.rb, line 189
def winfo_reqheight
  TkWinfo.reqheight self
end
            
winfo_reqwidth()
 
               # File tk/lib/tk/winfo.rb, line 196
def winfo_reqwidth
  TkWinfo.reqwidth self
end
            
winfo_rgb(color)
 
               # File tk/lib/tk/winfo.rb, line 203
def winfo_rgb(color)
  TkWinfo.rgb self, color
end
            
winfo_rootx()
 
               # File tk/lib/tk/winfo.rb, line 210
def winfo_rootx
  TkWinfo.rootx self
end
            
winfo_rooty()
 
               # File tk/lib/tk/winfo.rb, line 217
def winfo_rooty
  TkWinfo.rooty self
end
            
winfo_screen()
 
               # File tk/lib/tk/winfo.rb, line 224
def winfo_screen
  TkWinfo.screen self
end
            
winfo_screencells()
 
               # File tk/lib/tk/winfo.rb, line 231
def winfo_screencells
  TkWinfo.screencells self
end
            
winfo_screendepth()
 
               # File tk/lib/tk/winfo.rb, line 238
def winfo_screendepth
  TkWinfo.screendepth self
end
            
winfo_screenheight()
 
               # File tk/lib/tk/winfo.rb, line 245
def winfo_screenheight
  TkWinfo.screenheight self
end
            
winfo_screenmmheight()
 
               # File tk/lib/tk/winfo.rb, line 252
def winfo_screenmmheight
  TkWinfo.screenmmheight self
end
            
winfo_screenmmwidth()
 
               # File tk/lib/tk/winfo.rb, line 259
def winfo_screenmmwidth
  TkWinfo.screenmmwidth self
end
            
winfo_screenvisual()
 
               # File tk/lib/tk/winfo.rb, line 266
def winfo_screenvisual
  TkWinfo.screenvisual self
end
            
winfo_screenwidth()
 
               # File tk/lib/tk/winfo.rb, line 273
def winfo_screenwidth
  TkWinfo.screenwidth self
end
            
winfo_server()
 
               # File tk/lib/tk/winfo.rb, line 280
def winfo_server
  TkWinfo.server self
end
            
winfo_toplevel()
 
               # File tk/lib/tk/winfo.rb, line 287
def winfo_toplevel
  TkWinfo.toplevel self
end
            
winfo_viewable()
 
               # File tk/lib/tk/winfo.rb, line 369
def winfo_viewable
  TkWinfo.viewable self
end
            
winfo_visual()
 
               # File tk/lib/tk/winfo.rb, line 294
def winfo_visual
  TkWinfo.visual self
end
            
winfo_visualid()
 
               # File tk/lib/tk/winfo.rb, line 301
def winfo_visualid
  TkWinfo.visualid self
end
            
winfo_visualsavailable(includeids=false)
 
               # File tk/lib/tk/winfo.rb, line 313
def winfo_visualsavailable(includeids=false)
  TkWinfo.visualsavailable self, includeids
end
            
winfo_vrootheight()
 
               # File tk/lib/tk/winfo.rb, line 320
def winfo_vrootheight
  TkWinfo.vrootheight self
end
            
winfo_vrootwidth()
 
               # File tk/lib/tk/winfo.rb, line 327
def winfo_vrootwidth
  TkWinfo.vrootwidth self
end
            
winfo_vrootx()
 
               # File tk/lib/tk/winfo.rb, line 334
def winfo_vrootx
  TkWinfo.vrootx self
end
            
winfo_vrooty()
 
               # File tk/lib/tk/winfo.rb, line 341
def winfo_vrooty
  TkWinfo.vrooty self
end
            
winfo_widget(id)
 
               # File tk/lib/tk/winfo.rb, line 175
def winfo_widget(id)
  TkWinfo.widget id, self
end
            
winfo_width()
 
               # File tk/lib/tk/winfo.rb, line 348
def winfo_width
  TkWinfo.width self
end
            
winfo_x()
 
               # File tk/lib/tk/winfo.rb, line 355
def winfo_x
  TkWinfo.x self
end
            
winfo_y()
 
               # File tk/lib/tk/winfo.rb, line 362
def winfo_y
  TkWinfo.y self
end