| 647 | } |
| 648 | |
| 649 | void |
| 650 | get_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" */ |
| 669 | char * |
no test coverage detected