a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync/************************************************************
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncCopyright (c) 1993 by Silicon Graphics Computer Systems, Inc.
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncPermission to use, copy, modify, and distribute this
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncsoftware and its documentation for any purpose and without
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncfee is hereby granted, provided that the above copyright
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncnotice appear in all copies and that both that copyright
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncnotice and this permission notice appear in supporting
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncdocumentation, and that the name of Silicon Graphics not be
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncused in advertising or publicity pertaining to distribution
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncof the software without specific prior written permission.
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncSilicon Graphics makes no representation about the suitability
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncof this software for any purpose. It is provided "as is"
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncwithout any express or implied warranty.
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncSILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncSOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncAND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncGRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncDAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncDATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncOR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncTHE USE OR PERFORMANCE OF THIS SOFTWARE.
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync********************************************************/
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync#define XkbAddGeomOverlayRow SrvXkbAddGeomOverlayRow
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync#define XkbAddGeomOverlayKey SrvXkbAddGeomOverlayKey
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync#define XkbFreeGeomKeyAliases SrvXkbFreeGeomKeyAliases
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync#define XkbFreeGeomProperties SrvXkbFreeGeomProperties
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync#define XkbOutlineIndex(s,o) ((int)((o)-&(s)->outlines[0]))
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync#define XkbShapeDoodadColor(g,d) (&(g)->colors[(d)->color_ndx])
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync#define XkbShapeDoodadShape(g,d) (&(g)->shapes[(d)->shape_ndx])
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync#define XkbSetShapeDoodadColor(g,d,c) ((d)->color_ndx= (c)-&(g)->colors[0])
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync#define XkbSetShapeDoodadShape(g,d,s) ((d)->shape_ndx= (s)-&(g)->shapes[0])
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync#define XkbTextDoodadColor(g,d) (&(g)->colors[(d)->color_ndx])
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync#define XkbSetTextDoodadColor(g,d,c) ((d)->color_ndx= (c)-&(g)->colors[0])
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync#define XkbIndicatorDoodadShape(g,d) (&(g)->shapes[(d)->shape_ndx])
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync#define XkbIndicatorDoodadOnColor(g,d) (&(g)->colors[(d)->on_color_ndx])
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync#define XkbIndicatorDoodadOffColor(g,d) (&(g)->colors[(d)->off_color_ndx])
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync#define XkbLogoDoodadColor(g,d) (&(g)->colors[(d)->color_ndx])
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync#define XkbLogoDoodadShape(g,d) (&(g)->shapes[(d)->shape_ndx])
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync#define XkbSetLogoDoodadColor(g,d,c) ((d)->color_ndx= (c)-&(g)->colors[0])
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync#define XkbSetLogoDoodadShape(g,d,s) ((d)->shape_ndx= (s)-&(g)->shapes[0])
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync#define XkbKeyShape(g,k) (&(g)->shapes[(k)->shape_ndx])
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync#define XkbKeyColor(g,k) (&(g)->colors[(k)->color_ndx])
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync#define XkbSetKeyShape(g,k,s) ((k)->shape_ndx= (s)-&(g)->shapes[0])
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync#define XkbSetKeyColor(g,k,c) ((k)->color_ndx= (c)-&(g)->colors[0])
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync#define XkbGeomColorIndex(g,c) ((int)((c)-&(g)->colors[0]))
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * Specifies which items should be cleared in an XKB geometry array
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * when the array is reallocated.
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsynctypedef enum {
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync XKB_GEOM_CLEAR_NONE, /* Don't clear any items, just reallocate. */
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync XKB_GEOM_CLEAR_EXCESS, /* Clear new extra items after reallocation. */
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync XKB_GEOM_CLEAR_ALL /* Clear all items after reallocation. */
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern XkbPropertyPtr XkbAddGeomProperty(XkbGeometryPtr /* geom */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync char * /* name */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync char * /* value */
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern XkbKeyAliasPtr XkbAddGeomKeyAlias(XkbGeometryPtr /* geom */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync char * /* alias */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync char * /* real */
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern XkbColorPtr XkbAddGeomColor(XkbGeometryPtr /* geom */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync char * /* spec */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync unsigned int /* pixel */
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern XkbOutlinePtr XkbAddGeomOutline(XkbShapePtr /* shape */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int /* sz_points */
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern XkbShapePtr XkbAddGeomShape(XkbGeometryPtr /* geom */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int /* sz_outlines */
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern XkbRowPtr XkbAddGeomRow(XkbSectionPtr /* section */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int /* sz_keys */
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern XkbSectionPtr XkbAddGeomSection(XkbGeometryPtr /* geom */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int /* sz_rows */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int /* sz_doodads */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int /* sz_overlays */
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern XkbOverlayPtr XkbAddGeomOverlay(XkbSectionPtr /* section */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int /* sz_rows */
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern XkbOverlayRowPtr XkbAddGeomOverlayRow(XkbOverlayPtr /* overlay */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int /* row_under */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int /* sz_keys */
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern XkbOverlayKeyPtr XkbAddGeomOverlayKey(XkbOverlayPtr /* overlay */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync char * /* over */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync char * /* under */
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern XkbDoodadPtr XkbAddGeomDoodad(XkbGeometryPtr /* geom */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int /* first */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int /* count */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int /* first */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int /* count */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int /* nDoodads */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int /* first */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int /* count */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync XkbFreeGeomOverlayKeys(XkbOverlayRowPtr /* row */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int /* first */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int /* count */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync XkbFreeGeomOverlayRows(XkbOverlayPtr /* overlay */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int /* first */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int /* count */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int /* first */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int /* count */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int /* first */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int /* count */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int /* first */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int /* count */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int /* first */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int /* count */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int /* first */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int /* count */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int /* first */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int /* count */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int /* first */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int /* count */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync unsigned int /* which */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int /* szItems */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int /* nrItems */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int /* itemSize */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern Status XkbAllocGeomProps(XkbGeometryPtr /* geom */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int /* nProps */
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern Status XkbAllocGeomKeyAliases(XkbGeometryPtr /* geom */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int /* nAliases */
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern Status XkbAllocGeomColors(XkbGeometryPtr /* geom */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int /* nColors */
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern Status XkbAllocGeomShapes(XkbGeometryPtr /* geom */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int /* nShapes */
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern Status XkbAllocGeomSections(XkbGeometryPtr /* geom */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int /* nSections */
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern Status XkbAllocGeomOverlays(XkbSectionPtr /* section */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int /* num_needed */
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern Status XkbAllocGeomOverlayRows(XkbOverlayPtr /* overlay */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int /* num_needed */
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern Status XkbAllocGeomOverlayKeys(XkbOverlayRowPtr /* row */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int /* num_needed */
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern Status XkbAllocGeomDoodads(XkbGeometryPtr /* geom */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int /* nDoodads */
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern Status XkbAllocGeomSectionDoodads(XkbSectionPtr /* section */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int /* nDoodads */
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern Status XkbAllocGeomOutlines(XkbShapePtr /* shape */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int /* nOL */
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern Status XkbAllocGeomRows(XkbSectionPtr /* section */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int /* nRows */
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern Status XkbAllocGeomPoints(XkbOutlinePtr /* ol */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int /* nPts */
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern Status XkbAllocGeomKeys(XkbRowPtr /* row */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int /* nKeys */
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern Status XkbAllocGeometry(XkbDescPtr /* xkb */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync XkbComputeSectionBounds(XkbGeometryPtr /* geom */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern char *XkbFindOverlayForKey(XkbGeometryPtr /* geom */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync char * /* under */
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync#endif /* _XKBGEOM_H_ */