Compare commits
9 Commits
master
...
submit/xkb
Author | SHA1 | Date | |
---|---|---|---|
|
6b1d95ad96 | ||
|
be00adc39f | ||
|
8e74034426 | ||
|
3b91f8217d | ||
|
9a1e9a348f | ||
|
c52e3069d1 | ||
|
799c65a296 | ||
|
2c6cbc2591 | ||
|
86fa60ea88 |
|
@ -236,17 +236,6 @@ XkbFreeGeomShapes(XkbGeometryPtr geom, int first, int count, Bool freeAll)
|
||||||
|
|
||||||
/***====================================================================***/
|
/***====================================================================***/
|
||||||
|
|
||||||
void
|
|
||||||
XkbFreeGeomOverlayKeys(XkbOverlayRowPtr row, int first, int count, Bool freeAll)
|
|
||||||
{
|
|
||||||
_XkbFreeGeomLeafElems(freeAll, first, count,
|
|
||||||
&row->num_keys, &row->sz_keys,
|
|
||||||
(char **) &row->keys, sizeof(XkbOverlayKeyRec));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
/***====================================================================***/
|
|
||||||
|
|
||||||
void
|
void
|
||||||
XkbFreeGeomKeys(XkbRowPtr row, int first, int count, Bool freeAll)
|
XkbFreeGeomKeys(XkbRowPtr row, int first, int count, Bool freeAll)
|
||||||
{
|
{
|
||||||
|
|
120
xkb/xkbgeom.h
120
xkb/xkbgeom.h
|
@ -27,6 +27,8 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
#ifndef _XKBGEOM_H_
|
#ifndef _XKBGEOM_H_
|
||||||
#define _XKBGEOM_H_
|
#define _XKBGEOM_H_
|
||||||
|
|
||||||
|
#include <X11/Xdefs.h>
|
||||||
|
|
||||||
#include "xkbstr.h"
|
#include "xkbstr.h"
|
||||||
|
|
||||||
#define XkbAddGeomKeyAlias SrvXkbAddGeomKeyAlias
|
#define XkbAddGeomKeyAlias SrvXkbAddGeomKeyAlias
|
||||||
|
@ -74,9 +76,6 @@ typedef struct _XkbBounds {
|
||||||
short x2, y2;
|
short x2, y2;
|
||||||
} XkbBoundsRec, *XkbBoundsPtr;
|
} XkbBoundsRec, *XkbBoundsPtr;
|
||||||
|
|
||||||
#define XkbBoundsWidth(b) (((b)->x2)-((b)->x1))
|
|
||||||
#define XkbBoundsHeight(b) (((b)->y2)-((b)->y1))
|
|
||||||
|
|
||||||
typedef struct _XkbOutline {
|
typedef struct _XkbOutline {
|
||||||
unsigned short num_points;
|
unsigned short num_points;
|
||||||
unsigned short sz_points;
|
unsigned short sz_points;
|
||||||
|
@ -109,8 +108,6 @@ typedef struct _XkbShapeDoodad {
|
||||||
|
|
||||||
#define XkbShapeDoodadColor(g,d) (&(g)->colors[(d)->color_ndx])
|
#define XkbShapeDoodadColor(g,d) (&(g)->colors[(d)->color_ndx])
|
||||||
#define XkbShapeDoodadShape(g,d) (&(g)->shapes[(d)->shape_ndx])
|
#define XkbShapeDoodadShape(g,d) (&(g)->shapes[(d)->shape_ndx])
|
||||||
#define XkbSetShapeDoodadColor(g,d,c) ((d)->color_ndx= (c)-&(g)->colors[0])
|
|
||||||
#define XkbSetShapeDoodadShape(g,d,s) ((d)->shape_ndx= (s)-&(g)->shapes[0])
|
|
||||||
|
|
||||||
typedef struct _XkbTextDoodad {
|
typedef struct _XkbTextDoodad {
|
||||||
Atom name;
|
Atom name;
|
||||||
|
@ -127,7 +124,6 @@ typedef struct _XkbTextDoodad {
|
||||||
} XkbTextDoodadRec, *XkbTextDoodadPtr;
|
} XkbTextDoodadRec, *XkbTextDoodadPtr;
|
||||||
|
|
||||||
#define XkbTextDoodadColor(g,d) (&(g)->colors[(d)->color_ndx])
|
#define XkbTextDoodadColor(g,d) (&(g)->colors[(d)->color_ndx])
|
||||||
#define XkbSetTextDoodadColor(g,d,c) ((d)->color_ndx= (c)-&(g)->colors[0])
|
|
||||||
|
|
||||||
typedef struct _XkbIndicatorDoodad {
|
typedef struct _XkbIndicatorDoodad {
|
||||||
Atom name;
|
Atom name;
|
||||||
|
@ -144,12 +140,6 @@ typedef struct _XkbIndicatorDoodad {
|
||||||
#define XkbIndicatorDoodadShape(g,d) (&(g)->shapes[(d)->shape_ndx])
|
#define XkbIndicatorDoodadShape(g,d) (&(g)->shapes[(d)->shape_ndx])
|
||||||
#define XkbIndicatorDoodadOnColor(g,d) (&(g)->colors[(d)->on_color_ndx])
|
#define XkbIndicatorDoodadOnColor(g,d) (&(g)->colors[(d)->on_color_ndx])
|
||||||
#define XkbIndicatorDoodadOffColor(g,d) (&(g)->colors[(d)->off_color_ndx])
|
#define XkbIndicatorDoodadOffColor(g,d) (&(g)->colors[(d)->off_color_ndx])
|
||||||
#define XkbSetIndicatorDoodadOnColor(g,d,c) \
|
|
||||||
((d)->on_color_ndx= (c)-&(g)->colors[0])
|
|
||||||
#define XkbSetIndicatorDoodadOffColor(g,d,c) \
|
|
||||||
((d)->off_color_ndx= (c)-&(g)->colors[0])
|
|
||||||
#define XkbSetIndicatorDoodadShape(g,d,s) \
|
|
||||||
((d)->shape_ndx= (s)-&(g)->shapes[0])
|
|
||||||
|
|
||||||
typedef struct _XkbLogoDoodad {
|
typedef struct _XkbLogoDoodad {
|
||||||
Atom name;
|
Atom name;
|
||||||
|
@ -165,8 +155,6 @@ typedef struct _XkbLogoDoodad {
|
||||||
|
|
||||||
#define XkbLogoDoodadColor(g,d) (&(g)->colors[(d)->color_ndx])
|
#define XkbLogoDoodadColor(g,d) (&(g)->colors[(d)->color_ndx])
|
||||||
#define XkbLogoDoodadShape(g,d) (&(g)->shapes[(d)->shape_ndx])
|
#define XkbLogoDoodadShape(g,d) (&(g)->shapes[(d)->shape_ndx])
|
||||||
#define XkbSetLogoDoodadColor(g,d,c) ((d)->color_ndx= (c)-&(g)->colors[0])
|
|
||||||
#define XkbSetLogoDoodadShape(g,d,s) ((d)->shape_ndx= (s)-&(g)->shapes[0])
|
|
||||||
|
|
||||||
typedef struct _XkbAnyDoodad {
|
typedef struct _XkbAnyDoodad {
|
||||||
Atom name;
|
Atom name;
|
||||||
|
@ -201,8 +189,6 @@ typedef struct _XkbKey {
|
||||||
|
|
||||||
#define XkbKeyShape(g,k) (&(g)->shapes[(k)->shape_ndx])
|
#define XkbKeyShape(g,k) (&(g)->shapes[(k)->shape_ndx])
|
||||||
#define XkbKeyColor(g,k) (&(g)->colors[(k)->color_ndx])
|
#define XkbKeyColor(g,k) (&(g)->colors[(k)->color_ndx])
|
||||||
#define XkbSetKeyShape(g,k,s) ((k)->shape_ndx= (s)-&(g)->shapes[0])
|
|
||||||
#define XkbSetKeyColor(g,k,c) ((k)->color_ndx= (c)-&(g)->colors[0])
|
|
||||||
|
|
||||||
typedef struct _XkbRow {
|
typedef struct _XkbRow {
|
||||||
short top;
|
short top;
|
||||||
|
@ -398,27 +384,6 @@ extern void
|
||||||
Bool /* freeAll */
|
Bool /* freeAll */
|
||||||
);
|
);
|
||||||
|
|
||||||
extern void
|
|
||||||
XkbFreeGeomOverlayKeys(XkbOverlayRowPtr /* row */ ,
|
|
||||||
int /* first */ ,
|
|
||||||
int /* count */ ,
|
|
||||||
Bool /* freeAll */
|
|
||||||
);
|
|
||||||
|
|
||||||
extern void
|
|
||||||
XkbFreeGeomOverlayRows(XkbOverlayPtr /* overlay */ ,
|
|
||||||
int /* first */ ,
|
|
||||||
int /* count */ ,
|
|
||||||
Bool /* freeAll */
|
|
||||||
);
|
|
||||||
|
|
||||||
extern void
|
|
||||||
XkbFreeGeomOverlays(XkbSectionPtr /* section */ ,
|
|
||||||
int /* first */ ,
|
|
||||||
int /* count */ ,
|
|
||||||
Bool /* freeAll */
|
|
||||||
);
|
|
||||||
|
|
||||||
extern void
|
extern void
|
||||||
XkbFreeGeomKeys(XkbRowPtr /* row */ ,
|
XkbFreeGeomKeys(XkbRowPtr /* row */ ,
|
||||||
int /* first */ ,
|
int /* first */ ,
|
||||||
|
@ -475,89 +440,8 @@ extern Bool
|
||||||
XkbGeomClearance /* clearance */
|
XkbGeomClearance /* clearance */
|
||||||
);
|
);
|
||||||
|
|
||||||
extern Status XkbAllocGeomProps(XkbGeometryPtr /* geom */ ,
|
|
||||||
int /* nProps */
|
|
||||||
);
|
|
||||||
|
|
||||||
extern Status XkbAllocGeomKeyAliases(XkbGeometryPtr /* geom */ ,
|
|
||||||
int /* nAliases */
|
|
||||||
);
|
|
||||||
|
|
||||||
extern Status XkbAllocGeomColors(XkbGeometryPtr /* geom */ ,
|
|
||||||
int /* nColors */
|
|
||||||
);
|
|
||||||
|
|
||||||
extern Status XkbAllocGeomShapes(XkbGeometryPtr /* geom */ ,
|
|
||||||
int /* nShapes */
|
|
||||||
);
|
|
||||||
|
|
||||||
extern Status XkbAllocGeomSections(XkbGeometryPtr /* geom */ ,
|
|
||||||
int /* nSections */
|
|
||||||
);
|
|
||||||
|
|
||||||
extern Status XkbAllocGeomOverlays(XkbSectionPtr /* section */ ,
|
|
||||||
int /* num_needed */
|
|
||||||
);
|
|
||||||
|
|
||||||
extern Status XkbAllocGeomOverlayRows(XkbOverlayPtr /* overlay */ ,
|
|
||||||
int /* num_needed */
|
|
||||||
);
|
|
||||||
|
|
||||||
extern Status XkbAllocGeomOverlayKeys(XkbOverlayRowPtr /* row */ ,
|
|
||||||
int /* num_needed */
|
|
||||||
);
|
|
||||||
|
|
||||||
extern Status XkbAllocGeomDoodads(XkbGeometryPtr /* geom */ ,
|
|
||||||
int /* nDoodads */
|
|
||||||
);
|
|
||||||
|
|
||||||
extern Status XkbAllocGeomSectionDoodads(XkbSectionPtr /* section */ ,
|
|
||||||
int /* nDoodads */
|
|
||||||
);
|
|
||||||
|
|
||||||
extern Status XkbAllocGeomOutlines(XkbShapePtr /* shape */ ,
|
|
||||||
int /* nOL */
|
|
||||||
);
|
|
||||||
|
|
||||||
extern Status XkbAllocGeomRows(XkbSectionPtr /* section */ ,
|
|
||||||
int /* nRows */
|
|
||||||
);
|
|
||||||
|
|
||||||
extern Status XkbAllocGeomPoints(XkbOutlinePtr /* ol */ ,
|
|
||||||
int /* nPts */
|
|
||||||
);
|
|
||||||
|
|
||||||
extern Status XkbAllocGeomKeys(XkbRowPtr /* row */ ,
|
|
||||||
int /* nKeys */
|
|
||||||
);
|
|
||||||
|
|
||||||
extern Status XkbAllocGeometry(XkbDescPtr /* xkb */ ,
|
extern Status XkbAllocGeometry(XkbDescPtr /* xkb */ ,
|
||||||
XkbGeometrySizesPtr /* sizes */
|
XkbGeometrySizesPtr /* sizes */
|
||||||
);
|
);
|
||||||
|
|
||||||
extern Bool
|
|
||||||
XkbComputeShapeTop(XkbShapePtr /* shape */ ,
|
|
||||||
XkbBoundsPtr /* bounds */
|
|
||||||
);
|
|
||||||
|
|
||||||
extern Bool
|
|
||||||
XkbComputeShapeBounds(XkbShapePtr /* shape */
|
|
||||||
);
|
|
||||||
|
|
||||||
extern Bool
|
|
||||||
XkbComputeRowBounds(XkbGeometryPtr /* geom */ ,
|
|
||||||
XkbSectionPtr /* section */ ,
|
|
||||||
XkbRowPtr /* row */
|
|
||||||
);
|
|
||||||
|
|
||||||
extern Bool
|
|
||||||
XkbComputeSectionBounds(XkbGeometryPtr /* geom */ ,
|
|
||||||
XkbSectionPtr /* section */
|
|
||||||
);
|
|
||||||
|
|
||||||
extern char *XkbFindOverlayForKey(XkbGeometryPtr /* geom */ ,
|
|
||||||
XkbSectionPtr /* wanted */ ,
|
|
||||||
char * /* under */
|
|
||||||
);
|
|
||||||
|
|
||||||
#endif /* _XKBGEOM_H_ */
|
#endif /* _XKBGEOM_H_ */
|
||||||
|
|
Loading…
Reference in New Issue