X Auxiliary Convenient APIs


Contents

Overall
You may feel X Auxiliary Primitive APIs are difficult, not easy to understand. When you use X Auxiliary Convenient APIs, you can build your ouwn X-Aux in short time. We provide sample source codes for those APIs. Please look into

  src/server/programs/language_engines/sampleja3/xaux_common

xaux_so_common.c is for library of .so module. xaux_ext_common.c is for library of .so module. We provide Motif and GTK+ examples. You can build your X Auxiliary modules with common libraries.

  src/server/programs/language_engines/sampleja3/xaux_gtk/PaletteAux.c
  src/server/programs/language_engines/sampleja3/xaux_gtk/LookupAux.c
  src/server/programs/language_engines/sampleja3/xaux_momtif/PaletteAux.c
  src/server/programs/language_engines/sampleja3/xaux_motif/LookupAux.c
Define your Modules for aux.so
You need to define your modules in sampleja3_xaux_so.c.

XAUX_EXT_DIR

Specify directory of your module.

xaux_classes

Specify class name, command name and name in UTF-8 format.

aux_dir

Specify the name in UTF-8 format and methods.

Define methods in your external program
You need to define three methods in your external program.
xaux_ext_Start()

Will be invoked when AUX_START is recieved.

xaux_ext_Draw()

Will be invoked when AUX_DRAW is recieved.

xaux_ext_End()

Will be invoked when AUX_DONE is recieved.


Sun Microsystems, Inc.
Copyright © 1995-2000 Sun Microsystems, Inc.
All Rights Reserved. Terms of Use. Privacy Policy.