/*****************************************************************************
  FILE           : $Source: /usr/local/bv/SNNS/SNNSv4.1/xgui/sources/RCS/ui_utilP.h,v $
  SHORTNAME      : ui_utilP.ph
  SNNS VERSION   : 4.1

  PURPOSE        : private header file of correspondent '.c' file
  NOTES          :

  AUTHOR         : Tilman Sommer 
  DATE           : 18.5.1990

  CHANGED BY     : Sven Doering
  IDENTIFICATION : $State: Exp $ $Locker:  $
  RCS VERSION    : $Revision: 2.5 $
  LAST CHANGE    : $Date: 1995/11/16 07:28:30 $

             Copyright (c) 1990-1995  SNNS Group, IPVR, Univ. Stuttgart, FRG

******************************************************************************/
#ifndef _UI_UTILP_DEFINED_
#define _UI_UTILP_DEFINED_

extern Bool ui_isUnitVisibleInAnyDisplay(int unitNo);


/* kernel handling */
extern void             ui_checkError(krui_err error);
extern void             ui_krui_setCurrentLink(int sourceNo, int targetNo, char *siteName);
extern void             ui_correctName(char *string);
extern void             ui_cutTrailingZeros(char *string);
extern Bool             ui_krui_sitesExistInNetwork(void);
extern Bool             ui_krui_setCurrentSite(int targetNo, char *siteName);

extern struct PosType   ui_utilGridToPix(struct Ui_DisplayType *displayPtr, struct PosType gridPos);
extern struct PosType   ui_utilPixToGrid(struct Ui_DisplayType *displayPtr, struct PosType pixPos);
/*extern struct PosType   ui_utilPixToAlignPix();*/
extern struct PosType   ui_utilPixUpperLeft(struct Ui_DisplayType *displayPtr, struct PosType gridPos);
extern struct PosType   ui_utilPixLowerRight(struct Ui_DisplayType *displayPtr, struct PosType gridPos, short int extent);

extern void             ui_utilChangeFlag(FlagType *flag_word, FlagType flag);

extern int              ui_utilSgnInt(int x);
extern void             ui_utilMax(short int *x1Ptr, short int *x2Ptr);
extern void             ui_utilNormalizeRect(struct PosType *pixPos1Ptr, struct PosType *pixPos2Ptr);
/*extern void             ui_utilNormalizeCoord();*/

#endif 


/* end of file */
/* lines: 51 */
