home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / Libraries / DCLAP 6d / dclap6d / vibrant / panels.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-07-05  |  3.7 KB  |  99 lines  |  [TEXT/R*ch]

  1. /*  panels.h
  2. * ===========================================================================
  3. *
  4. *                            PUBLIC DOMAIN NOTICE
  5. *            National Center for Biotechnology Information (NCBI)
  6. *
  7. *  This software/database is a "United States Government Work" under the
  8. *  terms of the United States Copyright Act.  It was written as part of
  9. *  the author's official duties as a United States Government employee and
  10. *  thus cannot be copyrighted.  This software/database is freely available
  11. *  to the public for use. The National Library of Medicine and the U.S.
  12. *  Government do not place any restriction on its use or reproduction.
  13. *  We would, however, appreciate having the NCBI and the author cited in
  14. *  any work or product based on this material
  15. *
  16. *  Although all reasonable efforts have been taken to ensure the accuracy
  17. *  and reliability of the software and data, the NLM and the U.S.
  18. *  Government do not and cannot warrant the performance or results that
  19. *  may be obtained by using this software or data. The NLM and the U.S.
  20. *  Government disclaim all warranties, express or implied, including
  21. *  warranties of performance, merchantability or fitness for any particular
  22. *  purpose.
  23. *
  24. * ===========================================================================
  25. *
  26. * File Name:  panels.h
  27. *
  28. * Author:  Jonathan Kans
  29. *   
  30. * Version Creation Date: 11/18/91
  31. *
  32. * $Revision: 2.3 $
  33. *
  34. * File Description:  Active tabular text and graphic objects
  35. *
  36. * Modifications:  
  37. * --------------------------------------------------------------------------
  38. * Date     Name        Description of modification
  39. * -------  ----------  -----------------------------------------------------
  40. *
  41. *
  42. * ==========================================================================
  43. */
  44.  
  45. /*
  46. *  WARNING:  The table and palette objects are obsolete, and slated for removal in
  47. *            mid-1994.  They should not be used.  The document object replaces them.
  48. */
  49.  
  50. #ifndef _PANELS_
  51. #define _PANELS_
  52.  
  53. #ifndef _VIBRANT_
  54. #include <vibrant.h>
  55. #endif
  56.  
  57. #ifdef __cplusplus
  58. extern "C" {
  59. #endif
  60.  
  61. typedef  struct  PaletteType {
  62.   Nlm_VoidPtr  dummy;
  63. } HNDL PalettE;
  64.  
  65. typedef  struct  TableType {
  66.   Nlm_VoidPtr  dummy;
  67. } HNDL TablE;
  68.  
  69. typedef  void  (*PaintProc) PROTO((PalettE, Int2, RectPtr));
  70. typedef  void  (*PaletteProc) PROTO((PalettE, Int2));
  71.  
  72. typedef  void  (*TableProc) PROTO((TablE, Int2, Int2));
  73.  
  74. PalettE  PalettePanel PROTO((SlatE s, Int2 pixwidth, PaletteProc actn));
  75. void     AppendPalette PROTO((PalettE p, RectPtr r, PaintProc draw, PaletteProc click, Int2 value));
  76. void     SetPaletteValue PROTO((PalettE p, Int2 num, Int2 value));
  77. Int2     GetPaletteValue PROTO((PalettE p, Int2 num));
  78. Int2     PaletteNumItems PROTO((PalettE p));
  79.  
  80. TablE   TablePanel PROTO((SlatE s, Int2 minwid, FonT font, TableProc actn));
  81. void    RecordColumn PROTO((TablE t, Int2 wid, Char just, Boolean wrap, Boolean bar, TableProc actn));
  82. void    AppendTableText PROTO((TablE t, CharPtr title));
  83. Boolean GetTableText PROTO((TablE t, Int2 row, Int2 column, CharPtr text, Uint4 maxsize));
  84. Uint4   TableTextLength PROTO((TablE t, Int2 row, Int2 column));
  85. void    SetTableBlockHilight PROTO((TablE t, Int2 firstRow, Int2 lastRow, Int2 firstColumn, Int2 lastColumn, Boolean hilight));
  86. void    SetTableHilight PROTO((TablE t, Int2 row, Int2 column, Boolean hilight));
  87. Boolean GetTableHilight PROTO((TablE t, Int2 row, Int2 column));
  88. void SetTableBlockGray PROTO((TablE t, Int2 firstRow, Int2 lastRow, Int2 firstColumn, Int2 lastColumn, Boolean gray));
  89. void    SetTableGray PROTO((TablE t, Int2 row, Int2 column, Boolean gray));
  90. Boolean GetTableGray PROTO((TablE t, Int2 row, Int2 column));
  91. Int2    TableNumLines PROTO((TablE t));
  92. Int2    TableVisLines PROTO((TablE t));
  93.  
  94. #ifdef __cplusplus
  95. }
  96. #endif
  97.  
  98. #endif
  99.