1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
|
/*
Copyright (C) 2019-2020, Dirk Krause
SPDX-License-Identifier: BSD-3-Clause
*/
/*
WARNING: This file was generated by the dkct program (see
http://dktools.sourceforge.net/ for details).
Changes you make here will be lost if dkct is run again!
You should modify the original source and run dkct on it.
Original source: WxdkdrawComp.cpt
*/
#ifndef WXDKDRAWCOMP_H_INCLUDED
/** Avoid multiple inclusions. */
#define WXDKDRAWCOMP_H_INCLUDED 1
#line 8 "WxdkdrawComp.cpt"
/** @file WxdkdrawComp.h Compare drawing objects.
*/
#ifndef DK4TYPES_H_INCLUDED
#include "dk4types.h"
#endif
#ifndef WXDTYPES_H_INCLUDED
#include "WxdkdrawTypes.h"
#endif
/** Comparison criteria for drawing objects.
*/
enum {
/** Compare by layer number and
object properties.
*/
WXD2LAT_OBJ_COMPARE_CR_PROPERTIES = 0 ,
/** Compare objects by name.
*/
WXD2LAT_OBJ_COMPARE_CR_BY_NAME ,
/** Compare object name against
specified name.
*/
WXD2LAT_OBJ_COMPARE_CR_AGAINST_NAME
};
#ifdef __cplusplus
extern "C" {
#endif
/** Compare drawing objects.
@param l Left object.
@param r Right object or name.
@param cr Comparison criteria:
- WXD2LAT_OBJ_COMPARE_CR_PROPERTIES: Object/object by features,
- WXD2LAT_OBJ_COMPARE_CR_BY_NAME: Object/object by name,
- WXD2LAT_OBJ_COMPARE_CR_AGAINST_NAME: Object/name.
@return Comparison result: -1: l<r, 0: l=r, 1 l>r.
*/
int
drawobj_compare_object(const void *l, const void *r, int cr);
/** Find category for object type.
@param ot Object type.
@return Category for object type.
*/
int
drawobj_object_category(int8_t ot);
/** Compare stipple bitmaps.
@param l Address of left structure.
@param r Address of right structure.
@param cr Comparison criteria (ignored).
@return Comparison result.
*/
int
drawobj_compare_stipples(const void *l, const void *r, int cr);
/** Compare two layer structures.
@param l Left layer structure.
@param r Right layer structure or layer number.
@param cr Comparison criteria (0=layer/layer, 1=layer/number).
@return Comparison result.
*/
int
drawobj_compare_layers(const void *l, const void *r, int cr);
#ifdef __cplusplus
}
#endif
#endif
|