Name
XtCallAcceptFocus — call a widget’s accept_focus procedure.
Synopsis
Boolean XtCallAcceptFocus(w, time)
Widget w;
Time ∗time;
Arguments
wSpecifies the widget.
timeSpecifies the X time of the event that is causing the accept focus.
Description
XtCallAcceptFocus calls the specified widget’s accept_focus method, passing it the specified widget and time, and returns whatever the accept_focus method returns. If the accept_focus method is NULL, XtCallAcceptFocus returns False.
XtCallAcceptFocus does not actually set the keyboard focus; it is used to determine if the widget would take the focus if offered. XtSetKeyboardFocus and the Xlib function XSetInputFocus actually pass the focus to a child.
The accept_focus method is part of the Core class structure.