• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/tcl-105/tk84/tk/unix/

Lines Matching refs:menubar

81      * that holds the toplevel and the menubar, if any.  The information
82 * below is used to keep track of the wrapper and the menubar.
92 Tk_Window menubar; /* Pointer to information about the
93 * menubar, or NULL if there is no
94 * menubar for this toplevel. */
96 * menubar, measured in pixels. If
97 * menubar is non-NULL, this is >= 1 (X
276 * management of top-level and menubar windows.
292 "menubar", /* name */
495 if (wmPtr->menubar != NULL) {
496 Tk_DestroyWindow(wmPtr->menubar);
642 * menubar.
835 if (wmPtr->menubar != NULL) {
836 Tk_DestroyWindow(wmPtr->menubar);
3724 * Make sure that the toplevel and menubar are properly positioned within
3734 if ((wmPtr->menubar != NULL)
3735 && ((Tk_Width(wmPtr->menubar) != wrapperPtr->changes.width)
3736 || (Tk_Height(wmPtr->menubar) != wmPtr->menuHeight))) {
3737 Tk_MoveResizeWindow(wmPtr->menubar, 0, 0, wrapperPtr->changes.width,
4383 } else if ((wmPtr->menubar != NULL)
4384 && ((Tk_Width(wmPtr->menubar) != wmPtr->wrapperPtr->changes.width)
4385 || (Tk_Height(wmPtr->menubar) != wmPtr->menuHeight))) {
4391 Tk_MoveResizeWindow(wmPtr->menubar, 0, 0,
5222 && (winPtr->wmInfoPtr->menubar == (Tk_Window) winPtr)) {
5224 * This window is a special menubar; switch over to its
5405 * decide whether the coordinates are in the menubar or the actual
5417 winPtr = (TkWindow *) wmPtr->menubar;
6564 * window to use as a menubar for a given toplevel window.
6570 * The window given by menubar will be mapped and positioned inside
6574 * menubar specified for tkwin will be unmapped and ignored from
6581 TkUnixSetMenubar(tkwin, menubar)
6583 Tk_Window menubar; /* Token for window that is to serve as
6584 * menubar for tkwin. Must not be a
6586 * existing menubar is canceled and the
6591 TkWindow *menubarPtr = (TkWindow *) menubar;
6593 if (wmPtr->menubar != NULL) {
6595 * There's already a menubar for this toplevel. If it isn't the
6596 * same as the new menubar, unmap it so that it is out of the
6600 if (wmPtr->menubar == menubar) {
6603 ((TkWindow *) wmPtr->menubar)->wmInfoPtr = NULL;
6604 ((TkWindow *) wmPtr->menubar)->flags &= ~TK_REPARENTED;
6605 Tk_UnmapWindow(wmPtr->menubar);
6606 parent = Tk_Parent(wmPtr->menubar);
6609 XReparentWindow(Tk_Display(wmPtr->menubar),
6610 Tk_WindowId(wmPtr->menubar), Tk_WindowId(parent), 0, 0);
6612 Tk_DeleteEventHandler(wmPtr->menubar, StructureNotifyMask,
6613 MenubarDestroyProc, (ClientData) wmPtr->menubar);
6614 Tk_ManageGeometry(wmPtr->menubar, NULL, (ClientData) NULL);
6617 wmPtr->menubar = menubar;
6618 if (menubar == NULL) {
6622 || (Tk_Screen(menubar) != Tk_Screen(tkwin))) {
6623 Tcl_Panic("TkUnixSetMenubar got bad menubar");
6625 wmPtr->menuHeight = Tk_ReqHeight(menubar);
6630 Tk_MakeWindowExist(menubar);
6634 XReparentWindow(Tk_Display(menubar), Tk_WindowId(menubar),
6637 Tk_MoveResizeWindow(menubar, 0, 0, Tk_Width(tkwin), wmPtr->menuHeight);
6638 Tk_MapWindow(menubar);
6639 Tk_CreateEventHandler(menubar, StructureNotifyMask, MenubarDestroyProc,
6640 (ClientData) menubar);
6641 Tk_ManageGeometry(menubar, &menubarMgrType, (ClientData) wmPtr);
6658 * menubar window is destroyed (it's also invoked for a few other
6666 * so that the window is no longer considered to be a menubar.
6673 ClientData clientData; /* TkWindow pointer for menubar. */
6682 wmPtr->menubar = NULL;
6698 * whenever a menubar calls Tk_GeometryRequest to request a new
6714 Tk_Window tkwin; /* Handle for menubar window. */