home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / pc / SNNSV32.ZIP / SNNSv3.2 / xgui / sources / ui_selection.ph < prev    next >
Encoding:
Text File  |  1994-04-25  |  2.5 KB  |  81 lines

  1. /*****************************************************************************
  2.   FILE           : ui_selection.ph
  3.   SHORTNAME      : select.ph
  4.   SNNS VERSION   : 3.2
  5.  
  6.   PURPOSE        : Header file of correspondent '.c' file
  7.   NOTES          :
  8.  
  9.   AUTHOR         : Tilman Sommer
  10.   DATE           : 29.5.1990
  11.  
  12.   CHANGED BY     :
  13.   IDENTIFICATION : @(#)ui_selection.ph    1.7 3/2/94
  14.   SCCS VERSION   : 1.7
  15.   LAST CHANGE    : 3/2/94
  16.  
  17.              Copyright (c) 1990-1994  SNNS Group, IPVR, Univ. Stuttgart, FRG
  18.              
  19. ******************************************************************************/
  20.  
  21.  
  22. #ifndef _UI_SELECTION_DEFINED_
  23. #define _UI_SELECTION_DEFINED_
  24.  
  25.  
  26. /* begin global definition section */
  27.  
  28.  
  29. void ui_sel_msgNumber (void);
  30. void ui_sel_initSelectionList (void);
  31. struct SelectionType *ui_sel_lookForItem (int unitNo);
  32. struct SelectionType *ui_sel_lookForSelectedItem (struct SelectionType *);
  33. void ui_sel_drawBoxes (struct Ui_DisplayType *, FlagType, struct PosType);
  34. void ui_sel_selectOne (struct Ui_DisplayType *, FlagType, int, struct PosType);
  35. void ui_sel_unselectOne (struct Ui_DisplayType *, FlagType, int, 
  36.             struct PosType);
  37. void ui_sel_selectRect (struct Ui_DisplayType *, FlagType, struct PosType, 
  38.             struct PosType);
  39. void ui_sel_unselectRect (struct Ui_DisplayType *, FlagType, struct PosType, 
  40.             struct PosType);
  41. void ui_sel_reshowItems (struct Ui_DisplayType *, FlagType);
  42. void ui_sel_checkList (struct Ui_DisplayType *, FlagType);
  43. void ui_sel_unselectAll (struct Ui_DisplayType *, FlagType);
  44. void ui_sel_resetList (void);
  45.  
  46.  
  47. /* handling of the selection list */
  48. struct SelectionType  *ui_sel_listPtr;        /* pointer to first item */
  49. int            ui_sel_numberOfSelectedItems;  /* number of selected items */
  50.  
  51.  
  52. /* end global definition section */
  53.  
  54.  
  55. /* begin private definition section */
  56.  
  57.  
  58. static struct SelectionType *ui_sel_createItem (void);
  59. static struct SelectionType *ui_sel_getFreeItem (void);
  60. static void ui_sel_freeItem (struct SelectionType *);
  61. static void ui_sel_doActionSelect (struct Ui_DisplayType *, FlagType, 
  62.             struct SelectionType *, int, struct PosType);
  63. static void ui_sel_showSelectedItem (struct Ui_DisplayType *, FlagType, int, 
  64.             struct PosType);
  65.  
  66.  
  67. static struct SelectionType *ui_sel_freeListPtr;/* pointer to first free item*/
  68. static int            ui_sel_numberOfItems;     /* number of created items */
  69. static int ui_selectionSize = UI_UNIT_SIZE;
  70.  
  71.  
  72. /* end private definition section */
  73.  
  74.  
  75.  
  76. #endif /* _UI_SELECTION_DEFINED_ */
  77.  
  78.  
  79. /* end of file */
  80. /* lines: 46 */
  81.