749N/A/* $XConsortium: ToggleP.h,v 1.9 94/04/17 20:13:19 converse Exp $ */
749N/A
749N/A/*
749N/A
749N/ACopyright (c) 1989 X Consortium
749N/A
749N/APermission is hereby granted, free of charge, to any person obtaining a copy
749N/Aof this software and associated documentation files (the "Software"), to deal
749N/Ain the Software without restriction, including without limitation the rights
749N/Ato use, copy, modify, merge, publish, distribute, sublicense, and/or sell
749N/Acopies of the Software, and to permit persons to whom the Software is
749N/Afurnished to do so, subject to the following conditions:
749N/A
749N/AThe above copyright notice and this permission notice shall be included in
749N/Aall copies or substantial portions of the Software.
749N/A
749N/ATHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
749N/AIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
749N/AFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
749N/AX CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
749N/AAN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
749N/ACONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
749N/A
749N/AExcept as contained in this notice, the name of the X Consortium shall not be
749N/Aused in advertising or otherwise to promote the sale, use or other dealings
749N/Ain this Software without prior written authorization from the X Consortium.
749N/A
749N/A*/
749N/A
749N/A/*
749N/A * ToggleP.h - Private definitions for Toggle widget
749N/A *
749N/A * Author: Chris D. Peterson
749N/A * MIT X Consortium
749N/A * kit@expo.lcs.mit.edu
749N/A *
749N/A * Date: January 12, 1989
749N/A *
749N/A */
749N/A
749N/A#ifndef _XawToggleP_h
749N/A#define _XawToggleP_h
749N/A
749N/A#include <X11/Xaw/Toggle.h>
749N/A#include <X11/Xaw/CommandP.h>
749N/A
749N/A/***********************************************************************
749N/A *
749N/A * Toggle Widget Private Data
749N/A *
749N/A ***********************************************************************/
749N/A
749N/A#define streq(a, b) ( strcmp((a), (b)) == 0 )
749N/A
749N/Atypedef struct _RadioGroup {
749N/A struct _RadioGroup *prev, *next; /* Pointers to other elements in group. */
749N/A Widget widget; /* Widget corrosponding to this element. */
749N/A} RadioGroup;
749N/A
749N/A/************************************
749N/A *
749N/A * Class structure
749N/A *
749N/A ***********************************/
749N/A
749N/A /* New fields for the Toggle widget class record */
749N/Atypedef struct _ToggleClass {
749N/A XtActionProc Set;
749N/A XtActionProc Unset;
749N/A XtPointer extension;
749N/A} ToggleClassPart;
749N/A
749N/A /* Full class record declaration */
749N/Atypedef struct _ToggleClassRec {
749N/A CoreClassPart core_class;
749N/A SimpleClassPart simple_class;
749N/A LabelClassPart label_class;
749N/A CommandClassPart command_class;
749N/A ToggleClassPart toggle_class;
749N/A} ToggleClassRec;
749N/A
749N/Aextern ToggleClassRec toggleClassRec;
749N/A
749N/A/***************************************
749N/A *
749N/A * Instance (widget) structure
749N/A *
749N/A **************************************/
749N/A
749N/A /* New fields for the Toggle widget record */
749N/Atypedef struct {
749N/A /* resources */
749N/A Widget widget;
749N/A XtPointer radio_data;
749N/A
749N/A /* private data */
749N/A RadioGroup * radio_group;
749N/A} TogglePart;
749N/A
749N/A /* Full widget declaration */
749N/Atypedef struct _ToggleRec {
749N/A CorePart core;
749N/A SimplePart simple;
749N/A LabelPart label;
749N/A CommandPart command;
749N/A TogglePart toggle;
749N/A} ToggleRec;
749N/A
749N/A#endif /* _XawToggleP_h */
749N/A
749N/A