InChI
 
Loading...
Searching...
No Matches
dispstru.h
Go to the documentation of this file.
1/*
2 * International Chemical Identifier (InChI)
3 * Version 1
4 * Software version 1.07
5 * April 30, 2024
6 *
7 * MIT License
8 *
9 * Copyright (c) 2024 IUPAC and InChI Trust
10 *
11 * Permission is hereby granted, free of charge, to any person obtaining a copy
12 * of this software and associated documentation files (the "Software"), to deal
13 * in the Software without restriction, including without limitation the rights
14 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15 * copies of the Software, and to permit persons to whom the Software is
16 * furnished to do so, subject to the following conditions:
17 *
18 * The above copyright notice and this permission notice shall be included in all
19 * copies or substantial portions of the Software.
20 *
21 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27 * SOFTWARE.
28*
29* The InChI library and programs are free software developed under the
30 * auspices of the International Union of Pure and Applied Chemistry (IUPAC).
31 * Originally developed at NIST.
32 * Modifications and additions by IUPAC and the InChI Trust.
33 * Some portions of code were developed/changed by external contributors
34 * (either contractor or volunteer) which are listed in the file
35 * 'External-contributors' included in this distribution.
36 *
37 * info@inchi-trust.org
38 *
39*/
40
41
42#ifndef _DISP_STRU_H_
43#define _DISP_STRU_H_
44
45
46
47#include <windows.h>
48#include "../../../INCHI_BASE/src/inpdef.h" /* djb-rwth: necessary header file */
49
50
51
52/* Local types */
53
54/****************************************************************************/
55
57{
58 double xmin, xmax, ymin, ymax;
62 int bInit;
63} INT_DRAW_PARMS; /* internal: saved for redisplaying one structure */
64
65
66/****************************************************************************/
67/* Window data */
68/****************************************************************************/
69
70typedef struct tagWindowData
71{
72
73 inp_ATOM *at0; /* [MAX_ATOMS]; */
74 inp_ATOM *at1; /* [MAX_ATOMS]; */
76 /*inf_ATOM *inf_at;*/ /* [MAX_ATOMS]; */
77 int num_at;
80 int bEsc;
83
84 unsigned long ulDisplTime;
86 RECT rc; /* window rectangle size for saving */
87 INT_DRAW_PARMS idp; /* structure geom. parameters for redrawing */
88 TBL_DRAW_PARMS tdp; /* table data for displaying */
89 char *szTitle; /* for TARGET_LIB_FOR_WINCHI printing */
90
91 /* component equivalence info */
92 AT_NUMB *nEquLabels; /* num_at elements or NULL */
93 AT_NUMB nNumEquSets; /* number of equivalent sets or 0 */
94 AT_NUMB nCurEquLabel; /* in range 0..nNumEquSets; 0=>do not display equivalent components */
95
96 AT_NUMB nNewEquLabel; /* non-zero only if DISPLAY_EQU_COMPONENTS==1 */
98
99
100
101#ifndef COMPILE_ALL_CPP
102#ifdef __cplusplus
103extern "C" {
104#endif
105#endif
106
107
108
109 void FreeWinData( MY_WINDOW_DATA* pWinData );
110
112 MY_WINDOW_DATA *pWinData,
113 RECT *rc,
114 int bPrint,
115 AT_NUMB nNewEquLabel );
116
117
118
119#ifndef COMPILE_ALL_CPP
120#ifdef __cplusplus
121}
122#endif
123#endif
124
125#endif /* _DISP_STRU_H_ */
int CreateInputStructPicture(HDC hDC, MY_WINDOW_DATA *pWinData, RECT *rc, int bPrint, AT_NUMB nNewEquLabel)
struct tagInternalDrawParms INT_DRAW_PARMS
struct tagWindowData MY_WINDOW_DATA
void FreeWinData(MY_WINDOW_DATA *pWinData)
unsigned short AT_NUMB
Definition ichisize.h:45
Definition inpdef.h:390
Definition inpdef.h:110
Definition dispstru.h:57
double ymax
Definition dispstru.h:58
double xmax
Definition dispstru.h:58
double ymin
Definition dispstru.h:58
int bInit
Definition dispstru.h:62
int max_left_label_width_pix
Definition dispstru.h:60
int max_right_label_width_pix
Definition dispstru.h:61
double xmin
Definition dispstru.h:58
int max_label_width_char
Definition dispstru.h:59
Definition ichidrp.h:56
Definition dispstru.h:71
int bUserIntervened
Definition dispstru.h:81
int bHighlight
Definition dispstru.h:79
int nFontSize
Definition dispstru.h:85
int num_at
Definition dispstru.h:77
INT_DRAW_PARMS idp
Definition dispstru.h:87
RECT rc
Definition dispstru.h:86
char * szTitle
Definition dispstru.h:89
AT_NUMB nNewEquLabel
Definition dispstru.h:96
int bEsc
Definition dispstru.h:80
TBL_DRAW_PARMS tdp
Definition dispstru.h:88
int bOrigAtom
Definition dispstru.h:78
inp_ATOM * at0
Definition dispstru.h:73
AT_NUMB * nEquLabels
Definition dispstru.h:92
inp_ATOM * at1
Definition dispstru.h:74
INF_ATOM_DATA inf_at_data
Definition dispstru.h:75
UINT nTimerId
Definition dispstru.h:82
AT_NUMB nNumEquSets
Definition dispstru.h:93
AT_NUMB nCurEquLabel
Definition dispstru.h:94
unsigned long ulDisplTime
Definition dispstru.h:84