Resource
    XmNselectScrollVisible : Argument {
        Type = boolean;
    };
    XmNresizeColumnCallback : Argument {
        Type = boolean;
    };
    XmNwriteCellCallback : Argument {
        Type = reason;
    };
    XmNtraverseCellCallback : Argument {
        Type = reason;
    };
    XmNselectCellCallback : Argument {
        Type = reason;
    };
    XmNprocessDragCallback : Argument {
        Type = reason;
    };
    XmNleaveCellCallback : Argument {
        Type = reason;
    };
    XmNenterCellCallback : Argument {
        Type = reason;
    };
    XmNdrawCellCallback : Argument {
        Type = reason;
    };
    XmNrowLabelAlignment : Argument {
        Type = identifier;
    };
    XmNcolumnLabelAlignments : Argument {
        Type = identifier;
    };
    XmNcolumnAlignments : Argument {
        Type = identifier;
    };
    XmNtextBackground : Argument {
        Type = color;
    };
    XmNselectedBackground : Argument {
        Type = color;
    };
    XmNoddRowBackground : Argument {
        Type = color;
    };
    XmNevenRowBackground : Argument {
        Type = color;
    };
    XmNcolumnLabels : Argument {
        Type = identifier;
	XtRname = "StringArray";
    };
    XmNselectedCells : Argument {
        Type = identifier;
    };
    XmNhighlightedCells : Argument {
        Type = identifier;
    };
    XmNtrailingFixedRows : Argument {
        Type = integer;
    };
    XmNfixedRows : Argument {
        Type = integer;
    };
    XmNrowShadowTypes : Argument {
        Type = identifier;
    };
    XmNcolumnShadowTypes : Argument {
        Type = identifier;
    };
    XmNcellShadowTypes : Argument {
        Type = integer;
    };
    XmNrowLabelWidth : Argument {
        Type = integer;
    };
    XmNselectedForeground : Argument {
        Type = color;
    };
    XmNtrailingFixedColumns : Argument {
        Type = integer;
    };
    XmNfixedColumns : Argument {
        Type = integer;
    };
    XmNrowLabelColor : Argument {
        Type = color;
    };
    XmNcolumnLabelColor : Argument {
        Type = color;
    };
    XmNvisibleColumns : Argument {
        Type = integer;
    };
    XmNleftColumn : Argument {
        Type = integer;
    };
    XmNrowLabels : Argument {
        Type = asciz_table;
    };
    XmNcells : Argument {
        Type = identifier;
    };
    XmNspace : Argument {
        Type = integer;
    };
    XmNgridType : Argument {
        Type = integer; EnumerationSet = GridType;
    };
    XmNreverseSelect : Argument {
        Type = boolean;
    };
    XmNallowColumnResize : Argument {
        Type = boolean;
    };
    XmNcellBackgrounds : Argument {
        Type = identifier;
    };
    XmNlabelFont : Argument {
        Type = font_table;
    };
    XmNaltRowCount : Argument {
        Type = integer;
    };
    XmNtopRow : Argument {
        Type = integer;
    };
    XmNcolumnMaxLengths : Argument {
        Type = identifier;
	XtRname = "MaxLengthArray";
    };
    XmNcellMarginHeight : Argument {
        Type = integer;
    };
    XmNcellShadowType : Argument {
        Type = integer;
	XtRname = ShadowType;
    };
    XmNboldLabels : Argument {
        Type = boolean;
    };
    XmNcellShadowThickness : Argument {
        Type = integer;
    };
    XmNcellHighlightThickness : Argument {
        Type = integer;
    };
    XmNverticalScrollBarDisplayPolicy : Argument {
        Type = integer; EnumerationSet = ScrollBar;
    };
    XmNhorizontalScrollBarDisplayPolicy : Argument {
        Type = integer; EnumerationSet = ScrollBar;
    };
    XmNrowUserData : Argument {
        Type = identifier;
    };
    XmNcolumnUserData : Argument {
        Type = identifier;
    };
    XmNcellUserData : Argument {
        Type = identifier;
    };
    XmNcellMarginWidth : Argument {
        Type = integer;
    };
    XmNtextField : Argument {
        Type = widget_ref;
    };
    XmNgridLineColor : Argument {
        Type = color;
    };

    XmNoverwriteMode : Argument {
	Type = boolean;
    };
    XmNconvertCase : Argument {
	Type = boolean;
    };

    XmNlabelTextAlignment : Argument {
	Type = integer;
	EnumerationSet = Alignment;
    };
    XmNlabelPosition : Argument {
	Type = integer;
	EnumerationSet = XbaeLabelPosition;
    };
    XmNlabelAlignment : Argument {
	Type = integer;
	EnumerationSet = Alignment;
    };

Class XbaeMatrixClass : Widget
{
        IncludeFile = "<Xbae/Matrix.h>";
	XtLiteral = "xbaeMatrixWidgetClass";
	LiveObject = True;
        SuperClass = "XmManager";
	LoadLibrary = "/usr/X11R6/lib/libXbae.so";
	LinkLibrary = "-lXbae";
	ConvenienceFunction = "XbaeCreateMatrix";
        Resources {
            XmNtextTranslations;
            XmNselectScrollVisible;
            XmNresizeColumnCallback;
            XmNwriteCellCallback;
            XmNtraverseCellCallback;
            XmNselectCellCallback;
            XmNresizeCallback;
            XmNprocessDragCallback;
            XmNmodifyVerifyCallback;
            XmNleaveCellCallback;
            XmNenterCellCallback;
            XmNdrawCellCallback;
            XmNdefaultActionCallback;
            XmNrowLabelAlignment;
            XmNdoubleClickInterval;
            XmNcolumnLabelAlignments;
            XmNcolumnAlignments;
            XmNtextBackground;
            XmNselectedBackground;
            XmNoddRowBackground;
            XmNevenRowBackground;
            XmNverticalScrollBar;
            XmNhorizontalScrollBar;
            XmNcolumnLabels;
            XmNfontList;
            XmNselectedCells;
            XmNhighlightedCells;
            XmNtrailingFixedRows;
            XmNfixedRows;
            XmNcolumns {
		Default = "5";
	    };
            XmNrowShadowTypes;
            XmNcolumnShadowTypes;
            XmNcellShadowTypes;
            XmNrowLabelWidth;
            XmNselectedForeground;
            XmNtrailingFixedColumns;
            XmNfixedColumns;
            XmNrowLabelColor;
            XmNcolumnLabelColor;
            XmNvisibleColumns;
            XmNclipWindow;
            XmNleftColumn;
            XmNcolors;
            XmNrowLabels;
            XmNcells;
            XmNspace;
            XmNgridType;
            XmNcolumnWidths;
            XmNreverseSelect;
            XmNallowColumnResize;
            XmNcellBackgrounds;
            XmNlabelFont;
            XmNaltRowCount;
            XmNvisibleRows;
            XmNtopRow;
            XmNrows {
		Default = "5";
	    };
            XmNcolumnMaxLengths;
            XmNcellMarginHeight;
            XmNshadowType;
            XmNcellShadowType;
            XmNfill;
            XmNboldLabels;
            XmNcellShadowThickness;
            XmNcellHighlightThickness;
            XmNverticalScrollBarDisplayPolicy;
            XmNhorizontalScrollBarDisplayPolicy;
            XmNrowUserData;
            XmNcolumnUserData;
            XmNcellUserData;
            XmNcellMarginWidth;
            XmNtextField;
            XmNgridLineColor;
        };
    };

Class XbaeCaptionClass : Widget
{
        IncludeFile = "<Xbae/Caption.h>";
	XtLiteral = "xbaeCaptionWidgetClass";
	LiveObject = True;
        SuperClass = "XmManager";
	LoadLibrary = "/usr/X11R6/lib/libXbae.so";
	LinkLibrary = "-lXbae";
	ConvenienceFunction = "XbaeCreateCaption";
        Resources {
            XmNfontList;
	    XmNlabelAlignment;
	    XmNlabelOffset;
	    XmNlabelPixmap;
	    XmNlabelPosition;
	    XmNlabelString;
	    XmNlabelTextAlignment;
	    XmNlabelType;
        };
    };

Class XbaeInputClass : Widget
{
        IncludeFile = "<Xbae/Input.h>";
	XtLiteral = "xbaeInputWidgetClass";
	LiveObject = True;
        SuperClass = "XmText";
	LoadLibrary = "/usr/X11R6/lib/libXbae.so";
	LinkLibrary = "-lXbae";
	ConvenienceFunction = "XbaeCreateInput";
        Resources {
            XmNalignment;
	    XmNautoFill;
	    XmNconvertCase;
	    XmNoverwriteMode;
	    XmNpattern;
	    XmNvalidateCallback;
        };
    };

ControlList
        AllWidgetsAndGadgets {
            AllWidgetsAndGadgets;
            "XbaeMatrixClass";
	};

ControlList
        AllWidgets {
            AllWidgets;
            "XbaeMatrixClass";
	};

EnumerationSet
	GridType : integer {
		XmGRID_NONE;
		XmGRID_LINE;
		XmGRID_SHADOW_IN;
		XmGRID_SHADOW_OUT;
		XmGRID_ROW_SHADOW;
		XmGRID_COLUMN_SHADOW;
	};
	ScrollBar : integer {
		XmDISPLAY_NONE;
		XmDISPLAY_AS_NEEDED;
		XmDISPLAY_STATIC;
	};
	CellShadowType : integer {
		XmSHADOW_ETCHED_IN=5;
		XmSHADOW_ETCHED_OUT; 
		XmSHADOW_IN;
		XmSHADOW_OUT;
	};
	XbaeLabelPosition : integer {
		XbaePositionLeft;
		XbaePositionRight;
		XbaePositionTop;
		XbaePositionBottom;
	};
