MCPcopy Create free account
hub / github.com/NetHack/NetHack / get_widget_window_geometry

Function get_widget_window_geometry

win/X11/winX.c:649–666  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

647}
648
649void
650get_widget_window_geometry(
651 Widget w,
652 int *x, int *y,
653 int *width, int *height)
654{
655 long top, bottom, left, right;
656 Arg args[5];
657
658 XtSetArg(args[0], nhStr(XtNx), x);
659 XtSetArg(args[1], nhStr(XtNy), y);
660 XtSetArg(args[2], nhStr(XtNwidth), width);
661 XtSetArg(args[3], nhStr(XtNheight), height);
662 XtGetValues(w, args, 4);
663 get_window_frame_extents(w, &top, &bottom, &left, &right);
664 *x -= left;
665 *y -= top;
666}
667
668/* Change the full font name string so the weight is "bold" */
669char *

Callers 2

menu_size_change_handlerFunction · 0.85
X11_select_menuFunction · 0.85

Calls 1

get_window_frame_extentsFunction · 0.85

Tested by

no test coverage detected