Module: TkWinfo

Module | TkWinfo
In: | tk/lib/tk/winfo.rb

tk/winfo.rb : methods for winfo command

### 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

### Included Modules

Tk

### Constants

TkCommandNames | = | ['winfo'.freeze].freeze

### Public Class methods

appname(win)

[Source]

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

atom(name, win=nil)

[Source]

    # File tk/lib/tk/winfo.rb, line 15
      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)

[Source]

    # File tk/lib/tk/winfo.rb, line 27
      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)

[Source]

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

children(win)

[Source]

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

classname(win)

[Source]

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

colormapfull(win)

[Source]

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

containing(rootX, rootY, win=nil)

[Source]

    # File tk/lib/tk/winfo.rb, line 68
      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)

[Source]

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

exist?(win)

[Source]

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

fpixels(win, dist)

[Source]

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

geometry(win)

[Source]

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

height(win)

[Source]

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

id(win)

[Source]

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

interps(win=nil)

[Source]

    # File tk/lib/tk/winfo.rb, line 122
      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)

[Source]

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

mapped?(win)

[Source]

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

parent(win)

[Source]

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

pixels(win, dist)

[Source]

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

pointerx(win)

[Source]

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

pointerxy(win)

[Source]

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

pointery(win)

[Source]

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

reqheight(win)

[Source]

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

reqwidth(win)

[Source]

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

rgb(win, color)

[Source]

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

rootx(win)

[Source]

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

rooty(win)

[Source]

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

screen(win)

[Source]

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

screencells(win)

[Source]

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

screendepth(win)

[Source]

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

screenheight(win)

[Source]

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

screenmmheight(win)

[Source]

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

screenmmwidth(win)

[Source]

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

screenvisual(win)

[Source]

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

screenwidth(win)

[Source]

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

server(win)

[Source]

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

toplevel(win)

[Source]

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

viewable(win)

[Source]

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

visual(win)

[Source]

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

visualid(win)

[Source]

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

visualsavailable(win, includeids=false)

[Source]

    # File tk/lib/tk/winfo.rb, line 304
      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)

[Source]

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

vrootwidth(win)

[Source]

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

vrootx(win)

[Source]

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

vrooty(win)

[Source]

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

widget(id, win=nil)

[Source]

    # File tk/lib/tk/winfo.rb, line 167
      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)

[Source]

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

x(win)

[Source]

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

y(win)

[Source]

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

### Public Instance methods

winfo_appname()

[Source]

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

winfo_atom(name)

[Source]

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

winfo_atomname(id)

[Source]

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

winfo_cells()

[Source]

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

winfo_children()

[Source]

    # File tk/lib/tk/winfo.rb, line 49
      def winfo_children
        TkWinfo.children self
      end

winfo_class()

Alias for winfo_classname

winfo_classname()

[Source]

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

winfo_colormapfull()

[Source]

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

winfo_containing(x, y)

[Source]

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

winfo_depth()

[Source]

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

winfo_exist?()

[Source]

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

winfo_fpixels(dist)

[Source]

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

winfo_geometry()

[Source]

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

winfo_height()

[Source]

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

winfo_id()

[Source]

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

winfo_interps()

[Source]

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

winfo_manager()

[Source]

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

winfo_mapped?()

[Source]

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

winfo_parent()

[Source]

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

winfo_pixels(dist)

[Source]

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

winfo_pointerx()

[Source]

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

winfo_pointerxy()

[Source]

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

winfo_pointery()

[Source]

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

winfo_reqheight()

[Source]

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

winfo_reqwidth()

[Source]

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

winfo_rgb(color)

[Source]

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

winfo_rootx()

[Source]

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

winfo_rooty()

[Source]

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

winfo_screen()

[Source]

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

winfo_screencells()

[Source]

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

winfo_screendepth()

[Source]

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

winfo_screenheight()

[Source]

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

winfo_screenmmheight()

[Source]

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

winfo_screenmmwidth()

[Source]

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

winfo_screenvisual()

[Source]

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

winfo_screenwidth()

[Source]

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

winfo_server()

[Source]

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

winfo_toplevel()

[Source]

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

winfo_viewable()

[Source]

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

winfo_visual()

[Source]

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

winfo_visualid()

[Source]

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

winfo_visualsavailable(includeids=false)

[Source]

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

winfo_vrootheight()

[Source]

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

winfo_vrootwidth()

[Source]

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

winfo_vrootx()

[Source]

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

winfo_vrooty()

[Source]

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

winfo_widget(id)

[Source]

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

winfo_width()

[Source]

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

winfo_x()

[Source]

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

winfo_y()

[Source]

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

[Validate]