Lines Matching refs:toggle
60 * The order of toggle and notify are important, as the state has
67 <Btn1Down>,<Btn1Up>: toggle() notify()";
75 offset(toggle.widget), XtRWidget, (caddr_t) NULL },
77 offset(toggle.radio_data), XtRPointer, (caddr_t) NULL },
96 {"toggle", Toggle},
174 /* The actions table should really be retrieved from the toggle widget's
214 tw->toggle.radio_group = NULL;
216 if (tw->toggle.radio_data == NULL)
217 tw->toggle.radio_data = (caddr_t) new->core.name;
219 if (tw->toggle.widget != NULL) {
220 if ( GetRadioGroup(tw->toggle.widget) == NULL)
221 CreateRadioGroup(new, tw->toggle.widget);
223 AddToRadioGroup( GetRadioGroup(tw->toggle.widget), new);
234 * I want to set the toggle if the user set the state to "On" in
304 if (oldtw->toggle.widget != tw->toggle.widget)
305 XawToggleChangeRadioGroup(new, tw->toggle.widget);
315 * Description: Destroy Callback for toggle widget.
316 * Arguments: w - the toggle widget that is being destroyed.
333 * radio toggle buttons.
338 * Description: Gets the radio group associated with a give toggle
340 * Arguments: w - the toggle widget who's radio group we are getting.
341 * Returns: the radio group associated with this toggle group.
351 return( tw->toggle.radio_group );
356 * Arguments: w1, w2 - the toggle widgets to add to the radio group.
371 if ( (tw1->toggle.radio_group != NULL) || (tw2->toggle.radio_group != NULL) ) {
373 "to create a new toggle group, when one already exists.");
382 * Description: Adds a toggle to the radio group.
384 * w - the new toggle widget to add to the group.
398 tw->toggle.radio_group = local;
414 * Arguments: widget - a toggle widget.
443 * Description: Removes a toggle from a RadioGroup.
444 * Arguments: w - the toggle widget to remove.
469 * Description: Allows a toggle widget to change radio groups.
470 * Arguments: w - The toggle widget to change groups.
484 * If the toggle that we are about to add is set then we will
494 * Description: Returns the RadioData associated with the toggle
495 * widget that is currently active in a toggle group.
496 * Arguments: w - any toggle widget in the toggle group.
497 * Returns: The XtNradioData associated with the toggle widget.
512 return( local_tog->toggle.radio_data );
521 * Arguments: radio_group - any toggle widget in the toggle group.
522 * radio_data - radio data of the toggle widget to set.
538 if ( (local_tog->toggle.radio_data == radio_data) )
558 if ( (local_tog->toggle.radio_data == radio_data) ) {
571 * Arguments: radio_group - any toggle widget in the toggle group.