|
NCBI Home IEB Home C Toolkit docs C++ Toolkit source browser C Toolkit source browser (2) |
NCBI C Toolkit Cross ReferenceC/vibrant/panels.h |
source navigation diff markup identifier search freetext search file search |
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: 6.0 $
33 *
34 * File Description: Active tabular text and graphic objects
35 *
36 * Modifications:
37 * --------------------------------------------------------------------------
38 * Date Name Description of modification
39 * ------- ---------- -----------------------------------------------------
40 *
41 *
42 * $Log: panels.h,v $
43 * Revision 6.0 1997/08/25 18:56:13 madden
44 * Revision changed to 6.0
45 *
46 * Revision 5.0 1996/05/28 13:45:08 ostell
47 * Set to revision 5.0
48 *
49 * Revision 4.0 1995/07/26 13:51:04 ostell
50 * force revision to 4.0
51 *
52 * Revision 2.4 1995/05/17 15:15:14 kans
53 * added Log line
54 *
55 *
56 * ==========================================================================
57 */
58
59 /*
60 * WARNING: The table and palette objects are obsolete, and slated for removal in
61 * mid-1995. They should not be used. The document object replaces them.
62 */
63
64 #ifndef _PANELS_
65 #define _PANELS_
66
67 #ifndef _VIBRANT_
68 #include <vibrant.h>
69 #endif
70
71 #ifdef __cplusplus
72 extern "C" {
73 #endif
74
75 typedef struct PaletteType {
76 Nlm_VoidPtr dummy;
77 } HNDL PalettE;
78
79 typedef struct TableType {
80 Nlm_VoidPtr dummy;
81 } HNDL TablE;
82
83 typedef void (*PaintProc) PROTO((PalettE, Int2, RectPtr));
84 typedef void (*PaletteProc) PROTO((PalettE, Int2));
85
86 typedef void (*TableProc) PROTO((TablE, Int2, Int2));
87
88 PalettE PalettePanel PROTO((SlatE s, Int2 pixwidth, PaletteProc actn));
89 void AppendPalette PROTO((PalettE p, RectPtr r, PaintProc draw, PaletteProc click, Int2 value));
90 void SetPaletteValue PROTO((PalettE p, Int2 num, Int2 value));
91 Int2 GetPaletteValue PROTO((PalettE p, Int2 num));
92 Int2 PaletteNumItems PROTO((PalettE p));
93
94 TablE TablePanel PROTO((SlatE s, Int2 minwid, FonT font, TableProc actn));
95 void RecordColumn PROTO((TablE t, Int2 wid, Char just, Boolean wrap, Boolean bar, TableProc actn));
96 void AppendTableText PROTO((TablE t, CharPtr title));
97 Boolean GetTableText PROTO((TablE t, Int2 row, Int2 column, CharPtr text, Uint4 maxsize));
98 Uint4 TableTextLength PROTO((TablE t, Int2 row, Int2 column));
99 void SetTableBlockHilight PROTO((TablE t, Int2 firstRow, Int2 lastRow, Int2 firstColumn, Int2 lastColumn, Boolean hilight));
100 void SetTableHilight PROTO((TablE t, Int2 row, Int2 column, Boolean hilight));
101 Boolean GetTableHilight PROTO((TablE t, Int2 row, Int2 column));
102 void SetTableBlockGray PROTO((TablE t, Int2 firstRow, Int2 lastRow, Int2 firstColumn, Int2 lastColumn, Boolean gray));
103 void SetTableGray PROTO((TablE t, Int2 row, Int2 column, Boolean gray));
104 Boolean GetTableGray PROTO((TablE t, Int2 row, Int2 column));
105 Int2 TableNumLines PROTO((TablE t));
106 Int2 TableVisLines PROTO((TablE t));
107
108 #ifdef __cplusplus
109 }
110 #endif
111
112 #endif
113 |
This page was automatically generated by the
LXR engine.
Visit the LXR main site for more information. |