749N/A/*
749N/A * $XConsortium: ToggleP.h,v 1.6 89/12/11 15:23:04 kit Exp $
749N/A *
749N/A * Copyright 1989 Massachusetts Institute of Technology
749N/A *
749N/A * Permission to use, copy, modify, distribute, and sell this software and its
749N/A * documentation for any purpose is hereby granted without fee, provided that
749N/A * the above copyright notice appear in all copies and that both that
749N/A * copyright notice and this permission notice appear in supporting
749N/A * documentation, and that the name of M.I.T. not be used in advertising or
749N/A * publicity pertaining to distribution of the software without specific,
749N/A * written prior permission. M.I.T. makes no representations about the
749N/A * suitability of this software for any purpose. It is provided "as is"
749N/A * without express or implied warranty.
749N/A *
749N/A * M.I.T. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
749N/A * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL M.I.T.
749N/A * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
749N/A * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
749N/A * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
749N/A * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
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 <./Xaw3_1Toggle.h>
749N/A#include <./Xaw3_1CommandP.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 caddr_t 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