749N/A/*
749N/A* $XConsortium: CommandI.h,v 1.16 89/05/11 01:05:05 kit Exp $
749N/A*/
749N/A
749N/A
749N/A/***********************************************************
749N/ACopyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts,
749N/Aand the Massachusetts Institute of Technology, Cambridge, Massachusetts.
749N/A
749N/A All Rights Reserved
749N/A
749N/APermission to use, copy, modify, and distribute this software and its
749N/Adocumentation for any purpose and without fee is hereby granted,
749N/Aprovided that the above copyright notice appear in all copies and that
749N/Aboth that copyright notice and this permission notice appear in
749N/Asupporting documentation, and that the names of Digital or MIT not be
749N/Aused in advertising or publicity pertaining to distribution of the
749N/Asoftware without specific, written prior permission.
749N/A
749N/ADIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
749N/AALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
749N/ADIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
749N/AANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
749N/AWHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
749N/AARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
749N/ASOFTWARE.
749N/A
749N/A******************************************************************/
749N/A
749N/A/*
749N/A *
749N/A * A few definitions to make Command.c easier to read.
749N/A *
749N/A */
749N/A
749N/A /* Yes, this is gross, but the code will be easier to read.
749N/A Trust me. */
749N/A#define ComWx cbw->core.x
749N/A#define ComWy cbw->core.y
749N/A#define ComWdepth cbw->core.depth
749N/A#define ComWwidth cbw->core.width
749N/A#define ComWheight cbw->core.height
749N/A#define ComWborder_width cbw->core.border_width
749N/A#define ComWbackground cbw->core.background_pixel
749N/A#define ComWforeground cbw->label.foreground
749N/A#define ComWfont cbw->label.font
749N/A#define ComWlabel cbw->label.label
749N/A#define ComWjustify cbw->label.justify
749N/A#define ComWinternalWidth cbw->label.internal_width
749N/A#define ComWinternalHeight cbw->label.internal_height
749N/A#define ComWlabelX cbw->label.label_x
749N/A#define ComWlabelY cbw->label.label_y + cbw->label.font->max_bounds.ascent
749N/A#define ComWlabelWidth cbw->label.label_width
749N/A#define ComWlabelHeight cbw->label.label_height
749N/A#define ComWlabelLen cbw->label.label_len
749N/A#define ComWlabelGC cbw->label.normal_GC
749N/A#define ComWnormalGC cbw->command.normal_GC
749N/A#define ComWgrayGC cbw->label.gray_GC
749N/A#define ComWgrayPixmap cbw->label.gray_pixmap
749N/A#define ComWsensitive cbw->core.sensitive
749N/A#define ComWcallbackList cbw->command.callback_list
749N/A#define ComWcallback cbw->command.callback
749N/A#define ComWclosure cbw->command.closure
749N/A#define ComWinverseGC cbw->command.inverse_GC
749N/A#define ComWhighlightThickness cbw->command.highlight_thickness
749N/A#define ComWset cbw->command.set
749N/A#define ComWhighlighted cbw->command.highlighted
749N/A
749N/A#define XtCBField(cbw,field) cbw->command.field
749N/A#define XtLField(cbw,field) cbw->label.field
749N/A#define XtCField(cbw,field) cbw->core.field
749N/A
749N/A
749N/Astatic void Initialize();
749N/Astatic void Redisplay();
749N/Astatic Boolean SetValues();
749N/Astatic void Set();
749N/Astatic void Reset();
749N/Astatic void Notify();
749N/Astatic void Unset();
749N/Astatic void Highlight();
749N/Astatic void Unhighlight();
749N/Astatic void Unset();
749N/Astatic void Destroy();