Module: Tk::Winfo
- Included in:
- Widget
- Defined in:
- lib/ffi-tk/command/winfo.rb
Instance Method Summary (collapse)
-
- (Object) atom(name, window = None)
Returns a decimal string giving the integer identifier for the atom whose name is name.
-
- (Object) atomname(id, window = None)
Returns the textual name for the atom whose integer identifier is id.
-
- (Object) cells(window)
Returns a decimal string giving the number of cells in the color map for window.
-
- (Object) children(window)
Returns a list containing the path names of all the children of window.
-
- (Object) class_name(window)
Returns the class name for window.
-
- (Object) colormapfull(window)
Returns true if the colormap for window is known to be full, false otherwise.
-
- (Object) containing(root_x, root_y, window = None)
Returns the path name for the window containing the point given by root_x and root_y.
-
- (Object) depth(window)
Returns a decimal string giving the depth of window (number of bits per pixel).
-
- (Object) exists(window)
Returns true if there exists a window named window, false if no such window exists.
-
- (Object) fpixels(window, number)
Returns a floating-point value giving the number of pixels in window corresponding to the distance given by number.
-
- (Object) geometry(window)
Returns the geometry for window, in the form widthxheight+x+y.
-
- (Object) height(window)
Returns a decimal string giving window's height in pixels.
-
- (Object) id(window)
Returns a hexadecimal string giving a low-level platform-specific identifier for window.
-
- (Object) interps(window = None)
Returns a list whose members are the names of all Tcl interpreters (e.g. all Tk-based applications) currently registered for a particular display.
-
- (Object) ismapped(window)
Returns true if window is currently mapped, false otherwise.
-
- (Object) manager(window)
Returns the name of the geometry manager currently responsible for window, or an empty string if window is not managed by any geometry manager.
-
- (Object) name(window)
Returns window's name (i.e. its name within its parent, as opposed to its full path name).
-
- (Object) parent(window)
Returns the path name of window's parent, or nil if window is the main window of the application.
-
- (Object) pathname(id, window = None)
Returns the path name of the window whose X identifier is id.
-
- (Object) pixels(window, number)
Returns the number of pixels in window corresponding to the distance given by number.
-
- (Object) pointerx(window)
If the mouse pointer is on the same screen as window, returns the pointer's x coordinate, measured in pixels in the screen's root window.
-
- (Object) pointerxy(window)
If the mouse pointer is on the same screen as window, returns a list with two elements, which are the pointer's x and y coordinates measured in pixels in the screen's root window.
-
- (Object) pointery(window)
If the mouse pointer is on the same screen as window, returns the pointer's y coordinate, measured in pixels in the screen's root window.
-
- (Object) reqheight(window)
Returns a decimal string giving window's requested height, in pixels.
-
- (Object) reqwidth(window)
Returns a decimal string giving window's requested width, in pixels.
-
- (Object) rgb(window, color)
Returns a list containing three decimal values in the range 0 to 65535, which are the red, green, and blue intensities that correspond to color in the window given by window.
-
- (Object) rootx(window)
Returns a decimal string giving the x-coordinate, in the root window of the screen, of the upper-left corner of window's border (or window if it has no border).
-
- (Object) rooty(window)
Returns a decimal string giving the y-coordinate, in the root window of the screen, of the upper-left corner of window's border (or window if it has no border).
-
- (Object) screen(window)
Returns the name of the screen associated with window, in the form displayName.screenIndex.
-
- (Object) screencells(window)
Returns a decimal string giving the number of cells in the default color map for window's screen.
-
- (Object) screendepth(window)
Returns a decimal string giving the depth of the root window of window's screen (number of bits per pixel).
-
- (Object) screenheight(window)
Returns a decimal string giving the height of window's screen, in pixels.
-
- (Object) screenmmheight(window)
Returns a decimal string giving the height of window's screen, in millimeters.
-
- (Object) screenmmwidth(window)
Returns a decimal string giving the width of window's screen, in millimeters.
-
- (Object) screenvisual(window)
Returns one of the following strings to indicate the default visual class for window's screen: directcolor, grayscale, pseudocolor, staticcolor, staticgray, or truecolor.
-
- (Object) screenwidth(window)
Returns a decimal string giving the width of window's screen, in pixels.
-
- (Object) server(window)
Returns a string containing information about the server for window's display.
-
- (Object) toplevel(window)
Returns the path name of the top-of-hierarchy window containing window.
-
- (Object) viewable(window)
Returns true if window and all of its ancestors up through the nearest toplevel window are mapped.
-
- (Object) visual(window)
Returns one of the following strings to indicate the visual class for window:.
-
- (Object) visualid(window)
Returns the X identifier for the visual for window.
-
- (Object) visualsavailable(window, includeids = None)
Returns a list whose elements describe the visuals available for window's screen.
-
- (Object) vrootheight(window)
Returns the height of the virtual root window associated with window if there is one; otherwise returns the height of window's screen.
-
- (Object) vrootwidth(window)
Returns the width of the virtual root window associated with window if there is one; otherwise returns the width of window's screen.
-
- (Object) vrootx(window)
Returns the x-offset of the virtual root window associated with window, relative to the root window of its screen.
-
- (Object) vrooty(window)
Returns the y-offset of the virtual root window associated with window, relative to the root window of its screen.
-
- (Object) width(window)
Returns a decimal string giving window's width in pixels.
- - (Object) winfo_atom(name)
- - (Object) winfo_atomname(id)
- - (Object) winfo_cells
- - (Object) winfo_children
- - (Object) winfo_class
- - (Object) winfo_colormapfull
- - (Object) winfo_containing(root_x, root_y)
- - (Object) winfo_depth
- - (Object) winfo_exists
- - (Object) winfo_fpixels(number)
- - (Object) winfo_geometry
- - (Object) winfo_height
- - (Object) winfo_id
- - (Object) winfo_interps
- - (Object) winfo_ismapped
- - (Object) winfo_manager
- - (Object) winfo_name
- - (Object) winfo_parent
- - (Object) winfo_pathname(id)
- - (Object) winfo_pixels(number)
- - (Object) winfo_pointerx
- - (Object) winfo_pointerxy
- - (Object) winfo_pointery
- - (Object) winfo_reqheight
- - (Object) winfo_reqwidth
- - (Object) winfo_rgb(color)
- - (Object) winfo_rootx
- - (Object) winfo_rooty
- - (Object) winfo_screen
- - (Object) winfo_screencells
- - (Object) winfo_screendepth
- - (Object) winfo_screenheight
- - (Object) winfo_screenmmheight
- - (Object) winfo_screenmmwidth
- - (Object) winfo_screenvisual
- - (Object) winfo_screenwidth
- - (Object) winfo_server
- - (Object) winfo_toplevel
- - (Object) winfo_viewable
- - (Object) winfo_visual
- - (Object) winfo_visualid
- - (Object) winfo_visualsavailable(includeids = None)
- - (Object) winfo_vrootheight
- - (Object) winfo_vrootwidth
- - (Object) winfo_vrootx
- - (Object) winfo_vrooty
- - (Object) winfo_width
- - (Object) winfo_x
- - (Object) winfo_y
-
- (Object) x(window)
Returns a decimal string giving the x-coordinate, in window's parent, of the upper-left corner of window's border (or window if it has no border).
-
- (Object) y(window)
Returns a decimal string giving the y-coordinate, in window's parent, of the upper-left corner of window's border (or window if it has no border).
Instance Method Details
- (Object) atom(name, window = None)
Returns a decimal string giving the integer identifier for the atom whose name is name. If no atom exists with the name then a new one is created. If window is given then the atom is looked up on the display of window; otherwise it is looked up on the display of the application's main window.
256 257 258 259 260 261 262 |
# File 'lib/ffi-tk/command/winfo.rb', line 256 def atom(name, window = None) if None == window Tk.execute(:winfo, :atom, name) else Tk.execute(:winfo, :atom, '-displayof', window, name) end end |
- (Object) atomname(id, window = None)
Returns the textual name for the atom whose integer identifier is id. If window is given then the identifier is looked up on the display of window; otherwise it is looked up on the display of the application's main window. This command is the inverse of the [atom] method. It generates an error if no such atom exists.
270 271 272 273 274 275 276 |
# File 'lib/ffi-tk/command/winfo.rb', line 270 def atomname(id, window = None) if None == window Tk.execute(:winfo, :atomname, id).to_s else Tk.execute(:winfo, :atomname, '-displayof', window, id).to_s end end |
- (Object) cells(window)
Returns a decimal string giving the number of cells in the color map for window.
280 281 282 |
# File 'lib/ffi-tk/command/winfo.rb', line 280 def cells(window) Tk.execute(:winfo, :cells, window) end |
- (Object) children(window)
Returns a list containing the path names of all the children of window. Top-level windows are returned as children of their logical parents. The list is in stacking order, with the lowest window first, except for Top-level windows which are not returned in stacking order. Use the wm stackorder command to query the stacking order of Top-level windows.
290 291 292 |
# File 'lib/ffi-tk/command/winfo.rb', line 290 def children(window) Tk.execute(:winfo, :children, window).to_a end |
- (Object) class_name(window)
Returns the class name for window.
Note: this shadows the class method, so we call it class_name.
297 298 299 |
# File 'lib/ffi-tk/command/winfo.rb', line 297 def class_name(window) Tk.execute(:winfo, :class, window).to_s end |
- (Object) colormapfull(window)
Returns true if the colormap for window is known to be full, false otherwise. The colormap for a window is "known" to be full if the last attempt to allocate a new color on that window failed and this application has not freed any colors in the colormap since the failed allocation.
306 307 308 |
# File 'lib/ffi-tk/command/winfo.rb', line 306 def colormapfull(window) Tk.execute(:winfo, :colormapfull, window).to_boolean end |
- (Object) containing(root_x, root_y, window = None)
Returns the path name for the window containing the point given by root_x and root_y. root_x and root_y are specified in screen units (i.e. any form acceptable to Tk_GetPixels) in the coordinate system of the root window (if a virtual-root window manager is in use then the coordinate system of the virtual root window is used). If window is given then the coordinates refer to the screen containing window; otherwise they refer to the screen of the application's main window. If no window in this application contains the point then nil is returned. In selecting the containing window, children are given higher priority than parents and among siblings the highest one in the stacking order is chosen.
323 324 325 326 327 328 329 |
# File 'lib/ffi-tk/command/winfo.rb', line 323 def containing(root_x, root_y, window = None) if None == window Tk.execute(:winfo, :containing, root_x, root_y).to_s? else Tk.execute(:winfo, :containing, '-displayof', window, root_x, root_y).to_s? end end |
- (Object) depth(window)
Returns a decimal string giving the depth of window (number of bits per pixel).
333 334 335 |
# File 'lib/ffi-tk/command/winfo.rb', line 333 def depth(window) Tk.execute(:winfo, :depth, window) end |
- (Object) exists(window)
Returns true if there exists a window named window, false if no such window exists.
339 340 341 |
# File 'lib/ffi-tk/command/winfo.rb', line 339 def exists(window) Tk.execute(:winfo, :exists, window).to_boolean end |
- (Object) fpixels(window, number)
Returns a floating-point value giving the number of pixels in window corresponding to the distance given by number. Number may be specified in any of the forms acceptable to Tk_GetScreenMM, such as "2.0c" or "1i". The return value may be fractional; for an integer value, use winfo pixels.
349 350 351 |
# File 'lib/ffi-tk/command/winfo.rb', line 349 def fpixels(window, number) Tk.execute(:winfo, :fpixels, window, number) end |
- (Object) geometry(window)
Returns the geometry for window, in the form widthxheight+x+y. All dimensions are in pixels.
355 356 357 |
# File 'lib/ffi-tk/command/winfo.rb', line 355 def geometry(window) TkGeometry.new(Tk.execute(:winfo, :geometry, window)) end |
- (Object) height(window)
Returns a decimal string giving window's height in pixels. When a window is first created its height will be 1 pixel; the height will eventually be changed by a geometry manager to fulfill the window's needs. If you need the true height immediately after creating a widget, invoke update to force the geometry manager to arrange it, or use winfo reqheight to get the window's requested height instead of its actual height.
366 367 368 |
# File 'lib/ffi-tk/command/winfo.rb', line 366 def height(window) Tk.execute(:winfo, :height, window) end |
- (Object) id(window)
Returns a hexadecimal string giving a low-level platform-specific identifier for window. On Unix platforms, this is the X window identifier. Under Windows, this is the Windows HWND. On the Macintosh the value has no meaning outside Tk.
375 376 377 |
# File 'lib/ffi-tk/command/winfo.rb', line 375 def id(window) Tk.execute(:winfo, :id, window).to_s end |
- (Object) interps(window = None)
Returns a list whose members are the names of all Tcl interpreters (e.g. all Tk-based applications) currently registered for a particular display. If the -displayof option is given then the return value refers to the display of window; otherwise it refers to the display of the application's main window.
384 385 386 387 388 389 390 |
# File 'lib/ffi-tk/command/winfo.rb', line 384 def interps(window = None) if None == window Tk.execute(:winfo, :interps).to_a else Tk.execute(:winfo, :interps, '-displayof', window).to_a end end |
- (Object) ismapped(window)
Returns true if window is currently mapped, false otherwise.
393 394 395 |
# File 'lib/ffi-tk/command/winfo.rb', line 393 def ismapped(window) Tk.execute(:winfo, :ismapped, window).to_boolean end |
- (Object) manager(window)
Returns the name of the geometry manager currently responsible for window, or an empty string if window is not managed by any geometry manager. The name is usually the name of the Tcl command for the geometry manager, such as pack or place. If the geometry manager is a widget, such as canvases or text, the name is the widget's class command, such as canvas.
403 404 405 |
# File 'lib/ffi-tk/command/winfo.rb', line 403 def manager(window) Tk.execute(:winfo, :manager, window).to_s? end |
- (Object) name(window)
Returns window's name (i.e. its name within its parent, as opposed to its full path name). `Winfo.name('.')` will return the name of the application.
410 411 412 |
# File 'lib/ffi-tk/command/winfo.rb', line 410 def name(window) Tk.execute(:winfo, :name, window).to_s end |
- (Object) parent(window)
Returns the path name of window's parent, or nil if window is the main window of the application.
416 417 418 |
# File 'lib/ffi-tk/command/winfo.rb', line 416 def parent(window) Tk.execute(:winfo, :parent, window).to_s? end |
- (Object) pathname(id, window = None)
Returns the path name of the window whose X identifier is id. id must be a decimal, hexadecimal, or octal integer and must correspond to a window in the invoking application. If window is given then the identifier is looked up on the display of window; otherwise it is looked up on the display of the application's main window.
426 427 428 429 430 431 432 |
# File 'lib/ffi-tk/command/winfo.rb', line 426 def pathname(id, window = None) if None == window Tk.execute(:winfo, :pathname, id).to_s else Tk.execute(:winfo, :pathname, '-displayo', window, id).to_s end end |
- (Object) pixels(window, number)
Returns the number of pixels in window corresponding to the distance given by number. Number may be specified in any of the forms acceptable to Tk_GetPixels, such as "2.0c" or "1i". The result is rounded to the nearest integer value; for a fractional result, use winfo fpixels.
440 441 442 |
# File 'lib/ffi-tk/command/winfo.rb', line 440 def pixels(window, number) Tk.execute(:winfo, :pixels, window, number).to_i end |
- (Object) pointerx(window)
If the mouse pointer is on the same screen as window, returns the pointer's x coordinate, measured in pixels in the screen's root window. If a virtual root window is in use on the screen, the position is measured in the virtual root. If the mouse pointer is not on the same screen as window then -1 is returned.
450 451 452 |
# File 'lib/ffi-tk/command/winfo.rb', line 450 def pointerx(window) Tk.execute(:winfo, :pointerx, window).to_i end |
- (Object) pointerxy(window)
If the mouse pointer is on the same screen as window, returns a list with two elements, which are the pointer's x and y coordinates measured in pixels in the screen's root window. If a virtual root window is in use on the screen, the position is computed in the virtual root. If the mouse pointer is not on the same screen as window then both of the returned coordinates are -1.
461 462 463 |
# File 'lib/ffi-tk/command/winfo.rb', line 461 def pointerxy(window) Tk.execute(:winfo, :pointerxy, window).to_a(&:to_i) end |
- (Object) pointery(window)
If the mouse pointer is on the same screen as window, returns the pointer's y coordinate, measured in pixels in the screen's root window. If a virtual root window is in use on the screen, the position is computed in the virtual root. If the mouse pointer is not on the same screen as window then -1 is returned.
471 472 473 |
# File 'lib/ffi-tk/command/winfo.rb', line 471 def pointery(window) Tk.execute(:winfo, :pointery, window).to_i end |
- (Object) reqheight(window)
Returns a decimal string giving window's requested height, in pixels. This is the value used by window's geometry manager to compute its geometry.
478 479 480 |
# File 'lib/ffi-tk/command/winfo.rb', line 478 def reqheight(window) Tk.execute(:winfo, :reqheight, window) end |
- (Object) reqwidth(window)
Returns a decimal string giving window's requested width, in pixels. This is the value used by window's geometry manager to compute its geometry.
485 486 487 |
# File 'lib/ffi-tk/command/winfo.rb', line 485 def reqwidth(window) Tk.execute(:winfo, :reqwidth, window) end |
- (Object) rgb(window, color)
Returns a list containing three decimal values in the range 0 to 65535, which are the red, green, and blue intensities that correspond to color in the window given by window. Color may be specified in any of the forms acceptable for a color option.
493 494 495 |
# File 'lib/ffi-tk/command/winfo.rb', line 493 def rgb(window, color) Tk.execute(:winfo, :rgb, window, color).to_a(&:to_i) end |
- (Object) rootx(window)
Returns a decimal string giving the x-coordinate, in the root window of the screen, of the upper-left corner of window's border (or window if it has no border).
500 501 502 |
# File 'lib/ffi-tk/command/winfo.rb', line 500 def rootx(window) Tk.execute(:winfo, :rootx, window) end |
- (Object) rooty(window)
Returns a decimal string giving the y-coordinate, in the root window of the screen, of the upper-left corner of window's border (or window if it has no border).
507 508 509 |
# File 'lib/ffi-tk/command/winfo.rb', line 507 def rooty(window) Tk.execute(:winfo, :rooty, window) end |
- (Object) screen(window)
Returns the name of the screen associated with window, in the form displayName.screenIndex.
513 514 515 |
# File 'lib/ffi-tk/command/winfo.rb', line 513 def screen(window) Tk.execute(:winfo, :screen, window) end |
- (Object) screencells(window)
Returns a decimal string giving the number of cells in the default color map for window's screen.
519 520 521 |
# File 'lib/ffi-tk/command/winfo.rb', line 519 def screencells(window) Tk.execute(:winfo, :screencells, window) end |
- (Object) screendepth(window)
Returns a decimal string giving the depth of the root window of window's screen (number of bits per pixel).
525 526 527 |
# File 'lib/ffi-tk/command/winfo.rb', line 525 def screendepth(window) Tk.execute(:winfo, :screendepth, window) end |
- (Object) screenheight(window)
Returns a decimal string giving the height of window's screen, in pixels.
530 531 532 |
# File 'lib/ffi-tk/command/winfo.rb', line 530 def screenheight(window) Tk.execute(:winfo, :screenheight, window) end |
- (Object) screenmmheight(window)
Returns a decimal string giving the height of window's screen, in millimeters.
536 537 538 |
# File 'lib/ffi-tk/command/winfo.rb', line 536 def screenmmheight(window) Tk.execute(:winfo, :screenmmheight, window) end |
- (Object) screenmmwidth(window)
Returns a decimal string giving the width of window's screen, in millimeters.
542 543 544 |
# File 'lib/ffi-tk/command/winfo.rb', line 542 def screenmmwidth(window) Tk.execute(:winfo, :screenmmwidth, window) end |
- (Object) screenvisual(window)
Returns one of the following strings to indicate the default visual class for window's screen: directcolor, grayscale, pseudocolor, staticcolor, staticgray, or truecolor.
549 550 551 |
# File 'lib/ffi-tk/command/winfo.rb', line 549 def screenvisual(window) Tk.execute(:winfo, :screenvisual, window).to_sym end |
- (Object) screenwidth(window)
Returns a decimal string giving the width of window's screen, in pixels.
554 555 556 |
# File 'lib/ffi-tk/command/winfo.rb', line 554 def screenwidth(window) Tk.execute(:winfo, :screenwidth, window) end |
- (Object) server(window)
Returns a string containing information about the server for window's display. The exact format of this string may vary from platform to platform. For X servers the string has the form:
"XmajorRminor vendor vendorVersion"
where major and minor are the version and revision numbers provided by the server (e.g., X11R5), vendor is the name of the vendor for the server, and vendorRelease is an integer release number provided by the server.
565 566 567 |
# File 'lib/ffi-tk/command/winfo.rb', line 565 def server(window) Tk.execute(:winfo, :server, window) end |
- (Object) toplevel(window)
Returns the path name of the top-of-hierarchy window containing window. In standard Tk this will always be a toplevel widget, but extensions may create other kinds of top-of-hierarchy widgets.
572 573 574 |
# File 'lib/ffi-tk/command/winfo.rb', line 572 def toplevel(window) Tk.execute(:winfo, :toplevel, window).to_s end |
- (Object) viewable(window)
Returns true if window and all of its ancestors up through the nearest toplevel window are mapped. Returns false if any of these windows are not mapped.
579 580 581 |
# File 'lib/ffi-tk/command/winfo.rb', line 579 def viewable(window) Tk.execute(:winfo, :viewable, window).to_boolean end |
- (Object) visual(window)
Returns one of the following strings to indicate the visual class for window:
:directcolor, :grayscale, :pseudocolor, :staticcolor, :staticgray,
:truecolor
587 588 589 |
# File 'lib/ffi-tk/command/winfo.rb', line 587 def visual(window) Tk.execute(:winfo, :visual, window).to_sym end |
- (Object) visualid(window)
Returns the X identifier for the visual for window.
592 593 594 |
# File 'lib/ffi-tk/command/winfo.rb', line 592 def visualid(window) Tk.execute(:winfo, :visualid, window).to_s end |
- (Object) visualsavailable(window, includeids = None)
Returns a list whose elements describe the visuals available for window's screen. Each element consists of a visual class followed by an integer depth. The class has the same form as returned by winfo visual. The depth gives the number of bits per pixel in the visual. In addition, if the includeids argument is provided, then the depth is followed by the X identifier for the visual.
602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 |
# File 'lib/ffi-tk/command/winfo.rb', line 602 def visualsavailable(window, includeids = None) if None == includeids list = Tk.execute(:winfo, :visualsavailable, window).to_a list.uniq.map{|string| klass, depth = string.split [klass, depth.to_i] } else list = Tk.execute(:winfo, :visualsavailable, window, :includeids).to_a list.uniq.map{|string| klass, depth, id = string.split [klass, depth.to_i, id] } end end |
- (Object) vrootheight(window)
Returns the height of the virtual root window associated with window if there is one; otherwise returns the height of window's screen.
620 621 622 |
# File 'lib/ffi-tk/command/winfo.rb', line 620 def vrootheight(window) Tk.execute(:winfo, :vrootheight, window) end |
- (Object) vrootwidth(window)
Returns the width of the virtual root window associated with window if there is one; otherwise returns the width of window's screen.
626 627 628 |
# File 'lib/ffi-tk/command/winfo.rb', line 626 def vrootwidth(window) Tk.execute(:winfo, :vrootwidth, window) end |
- (Object) vrootx(window)
Returns the x-offset of the virtual root window associated with window, relative to the root window of its screen. This is normally either zero or negative. Returns 0 if there is no virtual root window for window.
634 635 636 |
# File 'lib/ffi-tk/command/winfo.rb', line 634 def vrootx(window) Tk.execute(:winfo, :vrootx, window) end |
- (Object) vrooty(window)
Returns the y-offset of the virtual root window associated with window, relative to the root window of its screen. This is normally either zero or negative. Returns 0 if there is no virtual root window for window.
642 643 644 |
# File 'lib/ffi-tk/command/winfo.rb', line 642 def vrooty(window) Tk.execute(:winfo, :vrooty, window) end |
- (Object) width(window)
Returns a decimal string giving window's width in pixels. When a window is first created its width will be 1 pixel; the width will eventually be changed by a geometry manager to fulfill the window's needs. If you need the true width immediately after creating a widget, invoke update to force the geometry manager to arrange it, or use winfo reqwidth to get the window's requested width instead of its actual width.
652 653 654 |
# File 'lib/ffi-tk/command/winfo.rb', line 652 def width(window) Tk.execute(:winfo, :width, window) end |
- (Object) winfo_atom(name)
4 5 6 |
# File 'lib/ffi-tk/command/winfo.rb', line 4 def winfo_atom(name) Winfo.atom(name, self) end |
- (Object) winfo_atomname(id)
9 10 11 |
# File 'lib/ffi-tk/command/winfo.rb', line 9 def winfo_atomname(id) Winfo.atomname(id, self) end |
- (Object) winfo_cells
14 15 16 |
# File 'lib/ffi-tk/command/winfo.rb', line 14 def winfo_cells Winfo.cells(self) end |
- (Object) winfo_children
19 20 21 |
# File 'lib/ffi-tk/command/winfo.rb', line 19 def winfo_children Winfo.children(self) end |
- (Object) winfo_class
24 25 26 |
# File 'lib/ffi-tk/command/winfo.rb', line 24 def winfo_class Winfo.class_name(self) end |
- (Object) winfo_colormapfull
29 30 31 |
# File 'lib/ffi-tk/command/winfo.rb', line 29 def winfo_colormapfull Winfo.colormapfull(self) end |
- (Object) winfo_containing(root_x, root_y)
34 35 36 |
# File 'lib/ffi-tk/command/winfo.rb', line 34 def winfo_containing(root_x, root_y) Winfo.containing(root_x, root_y, self) end |
- (Object) winfo_depth
39 40 41 |
# File 'lib/ffi-tk/command/winfo.rb', line 39 def winfo_depth Winfo.depth(self) end |
- (Object) winfo_exists
44 45 46 |
# File 'lib/ffi-tk/command/winfo.rb', line 44 def winfo_exists Winfo.exists(self) end |
- (Object) winfo_fpixels(number)
49 50 51 |
# File 'lib/ffi-tk/command/winfo.rb', line 49 def winfo_fpixels(number) Winfo.fpixels(self, number) end |
- (Object) winfo_geometry
54 55 56 |
# File 'lib/ffi-tk/command/winfo.rb', line 54 def winfo_geometry Winfo.geometry(self) end |
- (Object) winfo_height
59 60 61 |
# File 'lib/ffi-tk/command/winfo.rb', line 59 def winfo_height Winfo.height(self) end |
- (Object) winfo_id
64 65 66 |
# File 'lib/ffi-tk/command/winfo.rb', line 64 def winfo_id Winfo.id(self) end |
- (Object) winfo_interps
69 70 71 |
# File 'lib/ffi-tk/command/winfo.rb', line 69 def winfo_interps Winfo.interps(self) end |
- (Object) winfo_ismapped
74 75 76 |
# File 'lib/ffi-tk/command/winfo.rb', line 74 def winfo_ismapped Winfo.ismapped(self) end |
- (Object) winfo_manager
79 80 81 |
# File 'lib/ffi-tk/command/winfo.rb', line 79 def winfo_manager Winfo.manager(self) end |
- (Object) winfo_name
84 85 86 |
# File 'lib/ffi-tk/command/winfo.rb', line 84 def winfo_name Winfo.name(self) end |
- (Object) winfo_parent
89 90 91 |
# File 'lib/ffi-tk/command/winfo.rb', line 89 def winfo_parent Winfo.parent(self) end |
- (Object) winfo_pathname(id)
94 95 96 |
# File 'lib/ffi-tk/command/winfo.rb', line 94 def winfo_pathname(id) Winfo.pathname(id, self) end |
- (Object) winfo_pixels(number)
99 100 101 |
# File 'lib/ffi-tk/command/winfo.rb', line 99 def winfo_pixels(number) Winfo.pixels(self, number) end |
- (Object) winfo_pointerx
104 105 106 |
# File 'lib/ffi-tk/command/winfo.rb', line 104 def winfo_pointerx Winfo.pointerx(self) end |
- (Object) winfo_pointerxy
109 110 111 |
# File 'lib/ffi-tk/command/winfo.rb', line 109 def winfo_pointerxy Winfo.pointerxy(self) end |
- (Object) winfo_pointery
114 115 116 |
# File 'lib/ffi-tk/command/winfo.rb', line 114 def winfo_pointery Winfo.pointery(self) end |
- (Object) winfo_reqheight
119 120 121 |
# File 'lib/ffi-tk/command/winfo.rb', line 119 def winfo_reqheight Winfo.reqheight(self) end |
- (Object) winfo_reqwidth
124 125 126 |
# File 'lib/ffi-tk/command/winfo.rb', line 124 def winfo_reqwidth Winfo.reqwidth(self) end |
- (Object) winfo_rgb(color)
129 130 131 |
# File 'lib/ffi-tk/command/winfo.rb', line 129 def winfo_rgb(color) Winfo.rgb(self, color) end |
- (Object) winfo_rootx
134 135 136 |
# File 'lib/ffi-tk/command/winfo.rb', line 134 def winfo_rootx Winfo.rootx(self) end |
- (Object) winfo_rooty
139 140 141 |
# File 'lib/ffi-tk/command/winfo.rb', line 139 def winfo_rooty Winfo.rooty(self) end |
- (Object) winfo_screen
144 145 146 |
# File 'lib/ffi-tk/command/winfo.rb', line 144 def winfo_screen Winfo.screen(self) end |
- (Object) winfo_screencells
149 150 151 |
# File 'lib/ffi-tk/command/winfo.rb', line 149 def winfo_screencells Winfo.screencells(self) end |
- (Object) winfo_screendepth
154 155 156 |
# File 'lib/ffi-tk/command/winfo.rb', line 154 def winfo_screendepth Winfo.screendepth(self) end |
- (Object) winfo_screenheight
159 160 161 |
# File 'lib/ffi-tk/command/winfo.rb', line 159 def winfo_screenheight Winfo.screenheight(self) end |
- (Object) winfo_screenmmheight
164 165 166 |
# File 'lib/ffi-tk/command/winfo.rb', line 164 def winfo_screenmmheight Winfo.screenmmheight(self) end |
- (Object) winfo_screenmmwidth
169 170 171 |
# File 'lib/ffi-tk/command/winfo.rb', line 169 def winfo_screenmmwidth Winfo.screenmmwidth(self) end |
- (Object) winfo_screenvisual
174 175 176 |
# File 'lib/ffi-tk/command/winfo.rb', line 174 def winfo_screenvisual Winfo.screenvisual(self) end |
- (Object) winfo_screenwidth
179 180 181 |
# File 'lib/ffi-tk/command/winfo.rb', line 179 def winfo_screenwidth Winfo.screenwidth(self) end |
- (Object) winfo_server
184 185 186 |
# File 'lib/ffi-tk/command/winfo.rb', line 184 def winfo_server Winfo.server(self) end |
- (Object) winfo_toplevel
189 190 191 |
# File 'lib/ffi-tk/command/winfo.rb', line 189 def winfo_toplevel Winfo.toplevel(self) end |
- (Object) winfo_viewable
194 195 196 |
# File 'lib/ffi-tk/command/winfo.rb', line 194 def winfo_viewable Winfo.viewable(self) end |
- (Object) winfo_visual
199 200 201 |
# File 'lib/ffi-tk/command/winfo.rb', line 199 def winfo_visual Winfo.visual(self) end |
- (Object) winfo_visualid
204 205 206 |
# File 'lib/ffi-tk/command/winfo.rb', line 204 def winfo_visualid Winfo.visualid(self) end |
- (Object) winfo_visualsavailable(includeids = None)
209 210 211 |
# File 'lib/ffi-tk/command/winfo.rb', line 209 def winfo_visualsavailable(includeids = None) Winfo.visualsavailable(self, includeids) end |
- (Object) winfo_vrootheight
214 215 216 |
# File 'lib/ffi-tk/command/winfo.rb', line 214 def winfo_vrootheight Winfo.vrootheight(self) end |
- (Object) winfo_vrootwidth
219 220 221 |
# File 'lib/ffi-tk/command/winfo.rb', line 219 def winfo_vrootwidth Winfo.vrootwidth(self) end |
- (Object) winfo_vrootx
224 225 226 |
# File 'lib/ffi-tk/command/winfo.rb', line 224 def winfo_vrootx Winfo.vrootx(self) end |
- (Object) winfo_vrooty
229 230 231 |
# File 'lib/ffi-tk/command/winfo.rb', line 229 def winfo_vrooty Winfo.vrooty(self) end |
- (Object) winfo_width
234 235 236 |
# File 'lib/ffi-tk/command/winfo.rb', line 234 def winfo_width Winfo.width(self) end |
- (Object) winfo_x
239 240 241 |
# File 'lib/ffi-tk/command/winfo.rb', line 239 def winfo_x Winfo.x(self) end |
- (Object) winfo_y
244 245 246 |
# File 'lib/ffi-tk/command/winfo.rb', line 244 def winfo_y Winfo.y(self) end |
- (Object) x(window)
Returns a decimal string giving the x-coordinate, in window's parent, of the upper-left corner of window's border (or window if it has no border).
658 659 660 |
# File 'lib/ffi-tk/command/winfo.rb', line 658 def x(window) Tk.execute(:winfo, :x, window) end |
- (Object) y(window)
Returns a decimal string giving the y-coordinate, in window's parent, of the upper-left corner of window's border (or window if it has no border).
664 665 666 |
# File 'lib/ffi-tk/command/winfo.rb', line 664 def y(window) Tk.execute(:winfo, :y, window) end |