Lines Matching defs:window
54 ClientData clientData; /* Main window associated with interpreter. */
64 " ?-displayof window?\"", (char *) NULL);
106 ClientData clientData; /* Main window associated with interpreter. */
117 " window ?pattern? ?command?\"", (char *) NULL);
185 TkWindow *winPtr; /* Pointer to info about window. */
203 * Make a copy of the tags for the window, replacing window names
204 * with pointers to the pathName from the appropriate window.
270 ClientData clientData; /* Main window associated with interpreter. */
282 " window ?tags?\"", (char *) NULL);
329 * name in the window table and use the corresponding window,
351 * associated with a window; typically it is only invoked where
352 * there are window-specific tags.
406 ClientData clientData; /* Main window associated with
412 Tk_Window window;
417 window = Tk_NameToWindow(interp, argv[i], tkwin);
418 if (window == NULL) {
421 Tk_DestroyWindow(window);
447 ClientData clientData; /* Main window associated with
458 argv[0], " window ?belowThis?\"", (char *) NULL);
503 ClientData clientData; /* Main window associated with
514 argv[0], " window ?aboveThis?\"", (char *) NULL);
559 ClientData clientData; /* Main window associated with
617 ClientData clientData; /* Main window associated with
629 argv[0], " variable|visibility|window name\"", (char *) NULL);
650 Tk_Window window;
652 window = Tk_NameToWindow(interp, argv[2], tkwin);
653 if (window == NULL) {
656 Tk_CreateEventHandler(window, VisibilityChangeMask|StructureNotifyMask,
665 * was deleted automatically when the window was destroyed.
669 Tcl_AppendResult(interp, "window \"", argv[2],
674 Tk_DeleteEventHandler(window, VisibilityChangeMask|StructureNotifyMask,
676 } else if ((c == 'w') && (strncmp(argv[1], "window", length) == 0)) {
677 Tk_Window window;
679 window = Tk_NameToWindow(interp, argv[2], tkwin);
680 if (window == NULL) {
683 Tk_CreateEventHandler(window, StructureNotifyMask,
691 * deleted automatically when the window was destroyed.
695 "\": must be variable, visibility, or window", (char *) NULL);
772 ClientData clientData; /* Main window associated with
846 ClientData clientData; /* Main window associated with
855 Tk_Window window;
863 window = Tk_NameToWindow(interp, argv[2], tkwin); \
864 if (window == NULL) { \
888 argv[0], " atom ?-displayof window? name\"",
908 argv[0], " atomname ?-displayof window? id\"",
925 sprintf(interp->result, "%d", Tk_Visual(window)->map_entries);
929 for (winPtr = ((TkWindow *) window)->childList; winPtr != NULL;
936 interp->result = Tk_Class(window);
940 interp->result = (TkCmapStressed(window, Tk_Colormap(window)))
956 argv[0], " containing ?-displayof window? rootX rootY\"",
965 window = Tk_CoordsToWindow(rootX, rootY, tkwin);
966 if (window != NULL) {
967 interp->result = Tk_PathName(window);
971 sprintf(interp->result, "%d", Tk_Depth(window));
977 window = Tk_NameToWindow(interp, argv[2], tkwin);
978 if ((window == NULL)
979 || (((TkWindow *) window)->flags & TK_ALREADY_DEAD)) {
990 argv[0], " fpixels window number\"", (char *) NULL);
993 window = Tk_NameToWindow(interp, argv[2], tkwin);
994 if (window == NULL) {
997 if (Tk_GetScreenMM(interp, window, argv[3], &mm) != TCL_OK) {
1000 pixels = mm * WidthOfScreen(Tk_Screen(window))
1001 / WidthMMOfScreen(Tk_Screen(window));
1005 sprintf(interp->result, "%dx%d+%d+%d", Tk_Width(window),
1006 Tk_Height(window), Tk_X(window), Tk_Y(window));
1009 sprintf(interp->result, "%d", Tk_Height(window));
1012 Tk_MakeWindowExist(window);
1013 sprintf(interp->result, "0x%x", (unsigned int) Tk_WindowId(window));
1023 argv[0], " interps ?-displayof window?\"",
1031 interp->result = Tk_IsMapped(window) ? "1" : "0";
1034 winPtr = (TkWindow *) window;
1040 interp->result = Tk_Name(window);
1043 winPtr = (TkWindow *) window;
1061 argv[0], " pathname ?-displayof window? id\"",
1068 window = Tk_IdToWindow(Tk_Display(tkwin), (Window) id);
1069 if ((window == NULL) || (((TkWindow *) window)->mainPtr
1071 Tcl_AppendResult(interp, "window id \"", argv[index],
1075 interp->result = Tk_PathName(window);
1082 argv[0], " pixels window number\"", (char *) NULL);
1085 window = Tk_NameToWindow(interp, argv[2], tkwin);
1086 if (window == NULL) {
1089 if (Tk_GetPixels(interp, window, argv[3], &pixels) != TCL_OK) {
1097 winPtr = GetToplevel(window);
1108 winPtr = GetToplevel(window);
1119 winPtr = GetToplevel(window);
1129 sprintf(interp->result, "%d", Tk_ReqHeight(window));
1133 sprintf(interp->result, "%d", Tk_ReqWidth(window));
1140 argv[0], " rgb window colorName\"", (char *) NULL);
1143 window = Tk_NameToWindow(interp, argv[2], tkwin);
1144 if (window == NULL) {
1147 colorPtr = Tk_GetColor(interp, window, argv[3]);
1158 Tk_GetRootCoords(window, &x, &y);
1164 Tk_GetRootCoords(window, &x, &y);
1170 sprintf(string, "%d", Tk_ScreenNumber(window));
1171 Tcl_AppendResult(interp, Tk_DisplayName(window), ".", string,
1176 sprintf(interp->result, "%d", CellsOfScreen(Tk_Screen(window)));
1180 sprintf(interp->result, "%d", DefaultDepthOfScreen(Tk_Screen(window)));
1184 sprintf(interp->result, "%d", HeightOfScreen(Tk_Screen(window)));
1188 sprintf(interp->result, "%d", HeightMMOfScreen(Tk_Screen(window)));
1192 sprintf(interp->result, "%d", WidthMMOfScreen(Tk_Screen(window)));
1196 switch (DefaultVisualOfScreen(Tk_Screen(window))->class) {
1208 sprintf(interp->result, "%d", WidthOfScreen(Tk_Screen(window)));
1212 TkGetServerInfo(interp, window);
1215 winPtr = GetToplevel(window);
1222 for (winPtr = (TkWindow *) window; ; winPtr = winPtr->parentPtr) {
1234 switch (Tk_Visual(window)->class) {
1247 XVisualIDFromVisual(Tk_Visual(window)));
1262 argv[0], " visualsavailable window ?includeids?\"",
1267 window = Tk_NameToWindow(interp, argv[2], tkwin);
1268 if (window == NULL) {
1272 template.screen = Tk_ScreenNumber(window);
1273 visInfoPtr = XGetVisualInfo(Tk_Display(window), VisualScreenMask,
1304 Tk_GetVRootGeometry(window, &x, &y, &width, &height);
1312 Tk_GetVRootGeometry(window, &x, &y, &width, &height);
1319 Tk_GetVRootGeometry(window, &x, &y, &width, &height);
1326 Tk_GetVRootGeometry(window, &x, &y, &width, &height);
1330 sprintf(interp->result, "%d", Tk_Width(window));
1333 sprintf(interp->result, "%d", Tk_X(window));
1336 sprintf(interp->result, "%d", Tk_Y(window));
1358 argv[0], " ", argName, " window\"", (char *) NULL);
1371 * The return value is a token for the window specified in
1384 Tk_Window tkwin; /* Window to use for looking up window
1388 * must be window name. */
1439 * Retrieves the toplevel window which is the nearest ancestor of
1440 * of the specified window.
1443 * Returns the toplevel window or NULL if the window has no