Tk_WindowId
NAMESYNOPSIS
ARGUMENTS
DESCRIPTION
KEYWORDS
___________________________
NAME
Tk_WindowId, Tk_Parent, Tk_Display, Tk_DisplayName, Tk_ScreenNumber, Tk_Screen, Tk_X, Tk_Y, Tk_Width, Tk_Height, Tk_Changes, Tk_Attributes, Tk_IsContainer, Tk_IsEmbedded, Tk_IsMapped, Tk_IsTopLevel, Tk_ReqWidth, Tk_ReqHeight, Tk_MinReqWidth, Tk_MinReqHeight, Tk_InternalBorderLeft, Tk_InternalBorderRight, Tk_InternalBorderTop, Tk_InternalBorderBottom, Tk_Visual, Tk_Depth, Tk_Colormap, Tk_Interp − retrieve information from Tk’s local data structure
SYNOPSIS
#include <tk.h>
Window
Tk_WindowId(tkwin)
Tk_Window
Tk_Parent(tkwin)
Display *
Tk_Display(tkwin)
const char *
Tk_DisplayName(tkwin)
int
Tk_ScreenNumber(tkwin)
Screen *
Tk_Screen(tkwin)
int
Tk_X(tkwin)
int
Tk_Y(tkwin)
int
Tk_Width(tkwin)
int
Tk_Height(tkwin)
XWindowChanges
*
Tk_Changes(tkwin)
XSetWindowAttributes
*
Tk_Attributes(tkwin)
int
Tk_IsContainer(tkwin)
int
Tk_IsEmbedded(tkwin)
int
Tk_IsMapped(tkwin)
int
Tk_IsTopLevel(tkwin)
int
Tk_ReqWidth(tkwin)
int
Tk_ReqHeight(tkwin)
int
Tk_MinReqWidth(tkwin)
int
Tk_MinReqHeight(tkwin)
int
Tk_InternalBorderLeft(tkwin)
int
Tk_InternalBorderRight(tkwin)
int
Tk_InternalBorderTop(tkwin)
int
Tk_InternalBorderBottom(tkwin)
Visual *
Tk_Visual(tkwin)
int
Tk_Depth(tkwin)
Colormap
Tk_Colormap(tkwin)
Tcl_Interp *
Tk_Interp(tkwin)
ARGUMENTS
Tk_Window tkwin (in) |
Token for window. |
______________
DESCRIPTION
Tk_WindowId and the other names listed above are all macros that return fields from Tk’s local data structure for tkwin. None of these macros requires any interaction with the server; it is safe to assume that all are fast.
Tk_WindowId returns the X identifier for tkwin, or NULL if no X window has been created for tkwin yet.
Tk_Parent returns Tk’s token for the logical parent of tkwin. The parent is the token that was specified when tkwin was created, or NULL for main windows.
Tk_Interp returns the Tcl interpreter associated with a tkwin or NULL if there is an error.
Tk_Display returns a pointer to the Xlib display structure corresponding to tkwin. Tk_DisplayName returns an ASCII string identifying tkwin’s display. Tk_ScreenNumber returns the index of tkwin’s screen among all the screens of tkwin’s display. Tk_Screen returns a pointer to the Xlib structure corresponding to tkwin’s screen.
Tk_X, Tk_Y, Tk_Width, and Tk_Height return information about tkwin’s location within its parent and its size. The location information refers to the upper-left pixel in the window, or its border if there is one. The width and height information refers to the interior size of the window, not including any border. Tk_Changes returns a pointer to a structure containing all of the above information plus a few other fields. Tk_Attributes returns a pointer to an XSetWindowAttributes structure describing all of the attributes of the tkwin’s window, such as background pixmap, event mask, and so on (Tk keeps track of all this information as it is changed by the application). Note: it is essential that applications use Tk procedures like Tk_ResizeWindow instead of X procedures like XResizeWindow, so that Tk can keep its data structures up-to-date.
Tk_IsContainer returns a non-zero value if tkwin is a container, and that some other application may be embedding itself inside tkwin.
Tk_IsEmbedded returns a non-zero value if tkwin is not a free-standing window, but rather is embedded in some other application.
Tk_IsMapped returns a non-zero value if tkwin is mapped and zero if tkwin is not mapped.
Tk_IsTopLevel returns a non-zero value if tkwin is a top-level window (its X parent is the root window of the screen) and zero if tkwin is not a top-level window.
Tk_ReqWidth and Tk_ReqHeight return information about the window’s requested size. These values correspond to the last call to Tk_GeometryRequest for tkwin.
Tk_MinReqWidth and Tk_MinReqHeight return information about the window’s minimum requested size. These values correspond to the last call to Tk_SetMinimumRequestSize for tkwin.
Tk_InternalBorderLeft, Tk_InternalBorderRight, Tk_InternalBorderTop and Tk_InternalBorderBottom return the width of one side of the internal border that has been requested for tkwin, or 0 if no internal border was requested. The return value is simply the last value passed to Tk_SetInternalBorder or Tk_SetInternalBorderEx for tkwin.
Tk_Visual, Tk_Depth, and Tk_Colormap return information about the visual characteristics of a window. Tk_Visual returns the visual type for the window, Tk_Depth returns the number of bits per pixel, and Tk_Colormap returns the current colormap for the window. The visual characteristics are normally set from the defaults for the window’s screen, but they may be overridden by calling Tk_SetWindowVisual.
KEYWORDS
attributes, colormap, depth, display, height, geometry manager, identifier, mapped, requested size, screen, top-level, visual, width, window, x, y
More Linux Commands
manpages/mbind.2.html
mbind(2) - Set memory policy for a memory range (Man Page)
mbind() sets the NUMA memory policy, which consists of a policy mode and zero or more nodes, for the memory range starting with addr and continuing for len byte
manpages/pam.8.html
pam(8) - Pluggable Authentication Modules for Linux.........
pam.8 - This manual is intended to offer a quick introduction to Linux-PAM. For more information the reader is directed to the Linux-PAM system administrators g
manpages/posix_memalign.3.html
posix_memalign(3) - Allocate aligned memory - Linux man page
The function posix_memalign() allocates size bytes and places the address of the allocated memory in *memptr. The address of the allocated memory will be a mult
manpages/rtcwake.8.html
rtcwake(8) - enter a system sleep state until specified wake
This program is used to enter a system sleep state until specified wakeup time. This uses cross-platform Linux interfaces to enter a system sleep state, and lea
manpages/pam_time.8.html
pam_time(8) - PAM module for time control access (Man Page)
pam_time.8 - The pam_time PAM module does not authenticate the user, but instead it restricts access to a system and or specific applications at various times o
manpages/ldap_url.3.html
ldap_url(3) - LDAP Uniform Resource Locator routines........
These routines support the use of LDAP URLs (Uniform Resource Locators) as detailed in RFC 4516. LDAP URLs look like this: ldap://hostport/dn[?attrs[?scope[?fil
manpages/glColor3sv.3gl.html
glColor3sv(3gl) - set the current color - Linux manual page
The GL stores both a current single-valued color index and a current four-valued RGBA color. glColor sets a new four-valued RGBA color. glColor has two major va
manpages/CPANPLUS::Internals::Search.3pm.html
CPANPLUS::Internals::Search(3pm) - (unknown subject)........
The functions in this module are designed to find module(objects) based on certain criteria and return them. METHODS _search_module_tree( type => TYPE , allow =
manpages/getpgid.2.html
getpgid(2) - set/get process group - Linux manual page......
All of these interfaces are available on Linux, and are used for getting and setting the process group ID (PGID) of a process. The preferred, POSIX.1-specified
manpages/encoding.n.html
encoding(n) - Manipulate encodings - Linux manual page......
Performs one of several encoding related operations, depending on option. The legal options are: encoding convertfrom ?encoding? data Convert data to Unicode fr
manpages/getsockopt.2.html
getsockopt(2) - get and set options on sockets (Man Page)...
getsockopt() and setsockopt() manipulate options for the socket referred to by the file descriptor sockfd. Options may exist at multiple protocol levels; they a
manpages/ksymoops.8.html
ksymoops(8) - a utility to decode Linux kernel Oops.........
ksymoops extracts kernel Oops reports from the Oops.file and uses various sources of symbol information to convert the addresses and code to meaningful text. Re
