Debian Codegraph @

fontforgeexe/charview_private.h

raw symbols SCIP
1 /* Copyright (C) 2000-2012 by George Williams */
2 /*
3 * Redistribution and use in source and binary forms, with or without
4 * modification, are permitted provided that the following conditions are met:
5
6 * Redistributions of source code must retain the above copyright notice, this
7 * list of conditions and the following disclaimer.
8
9 * Redistributions in binary form must reproduce the above copyright notice,
10 * this list of conditions and the following disclaimer in the documentation
11 * and/or other materials provided with the distribution.
12
13 * The name of the author may not be used to endorse or promote products
14 * derived from this software without specific prior written permission.
15
16 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
17 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
18 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
19 * EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
20 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
21 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
22 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
23 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
24 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
25 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28 #ifndef FONTFORGE_CHARVIEW_PRIVATE_H
29 #define FONTFORGE_CHARVIEW_PRIVATE_H
30
31 #include "gdraw.h"
32 #include "views.h"
33
34 #ifdef HAVE_GLIB
35 #include "ffglib.h"
36 #endif
37
38
39 #define MID_Fit 2001
40 #define MID_ZoomIn 2002
41 #define MID_ZoomOut 2003
42 #define MID_HidePoints 2004
43 #define MID_HideControlPoints 2005
44 #define MID_Fill 2006
45 #define MID_Next 2007
46 #define MID_Prev 2008
47 #define MID_HideRulers 2009
48 #define MID_Preview 2010
49 #define MID_DraggingComparisonOutline 2011
50 #define MID_NextDef 2012
51 #define MID_PrevDef 2013
52 #define MID_DisplayCompositions 2014
53 #define MID_MarkExtrema 2015
54 #define MID_Goto 2016
55 #define MID_FindInFontView 2017
56 #define MID_KernPairs 2018
57 #define MID_AnchorPairs 2019
58 #define MID_ShowGridFit 2020
59 #define MID_PtsNone 2021
60 #define MID_PtsTrue 2022
61 #define MID_PtsPost 2023
62 #define MID_PtsSVG 2024
63 #define MID_Ligatures 2025
64 #define MID_Former 2026
65 #define MID_MarkPointsOfInflection 2027
66 #define MID_ShowCPInfo 2028
67 #define MID_ShowTabs 2029
68 #define MID_AnchorGlyph 2030
69 #define MID_AnchorControl 2031
70 #define MID_ShowSideBearings 2032
71 #define MID_Bigger 2033
72 #define MID_Smaller 2034
73 #define MID_GridFitAA 2035
74 #define MID_GridFitOff 2036
75 #define MID_ShowHHints 2037
76 #define MID_ShowVHints 2038
77 #define MID_ShowDHints 2039
78 #define MID_ShowBlueValues 2040
79 #define MID_ShowFamilyBlues 2041
80 #define MID_ShowAnchors 2042
81 #define MID_ShowHMetrics 2043
82 #define MID_ShowVMetrics 2044
83 #define MID_ShowRefNames 2045
84 #define MID_ShowAlmostHV 2046
85 #define MID_ShowAlmostHVCurves 2047
86 #define MID_DefineAlmost 2048
87 #define MID_SnapOutlines 2049
88 #define MID_ShowDebugChanges 2050
89 #define MID_Cut 2101
90 #define MID_Copy 2102
91 #define MID_Paste 2103
92 #define MID_Clear 2104
93 #define MID_Merge 2105
94 #define MID_SelAll 2106
95 #define MID_CopyRef 2107
96 #define MID_UnlinkRef 2108
97 #define MID_Undo 2109
98 #define MID_Redo 2110
99 #define MID_CopyWidth 2111
100 #define MID_RemoveUndoes 2112
101 #define MID_CopyFgToBg 2115
102 #define MID_NextPt 2116
103 #define MID_PrevPt 2117
104 #define MID_FirstPt 2118
105 #define MID_NextCP 2119
106 #define MID_PrevCP 2120
107 #define MID_SelNone 2121
108 #define MID_SelectWidth 2122
109 #define MID_SelectVWidth 2123
110 #define MID_CopyLBearing 2124
111 #define MID_CopyRBearing 2125
112 #define MID_CopyVWidth 2126
113 #define MID_Join 2127
114 #define MID_CopyGridFit 2128
115 /*#define MID_Elide 2129*/
116 #define MID_SelectAllPoints 2130
117 #define MID_SelectAnchors 2131
118 #define MID_FirstPtNextCont 2132
119 #define MID_Contours 2133
120 #define MID_SelectHM 2134
121 #define MID_SelInvert 2136
122 #define MID_CopyBgToFg 2137
123 #define MID_SelPointAt 2138
124 #define MID_CopyLookupData 2139
125 #define MID_SelectOpenContours 2140
126 #define MID_MergeToLine 2141
127 #define MID_Clockwise 2201
128 #define MID_Counter 2202
129 #define MID_GetInfo 2203
130 #define MID_Correct 2204
131 #define MID_AvailBitmaps 2210
132 #define MID_RegenBitmaps 2211
133 #define MID_Stroke 2205
134 #define MID_RmOverlap 2206
135 #define MID_Simplify 2207
136 #define MID_BuildAccent 2208
137 #define MID_Autotrace 2212
138 #define MID_Round 2213
139 #define MID_Embolden 2217
140 #define MID_Condense 2218
141 #define MID_Average 2219
142 #define MID_SpacePts 2220
143 #define MID_SpaceRegion 2221
144 #define MID_MakeParallel 2222
145 #define MID_ShowDependentRefs 2223
146 #define MID_AddExtrema 2224
147 #define MID_CleanupGlyph 2225
148 #define MID_TilePath 2226
149 #define MID_BuildComposite 2227
150 #define MID_Exclude 2228
151 #define MID_Intersection 2229
152 #define MID_FindInter 2230
153 #define MID_Styles 2231
154 #define MID_SimplifyMore 2232
155 #define MID_First 2233
156 #define MID_Earlier 2234
157 #define MID_Later 2235
158 #define MID_Last 2236
159 #define MID_CharInfo 2240
160 #define MID_ShowDependentSubs 2241
161 #define MID_CanonicalStart 2242
162 #define MID_CanonicalContours 2243
163 #define MID_RemoveBitmaps 2244
164 #define MID_RoundToCluster 2245
165 #define MID_Align 2246
166 #define MID_FontInfo 2247
167 #define MID_FindProblems 2248
168 #define MID_InsertText 2249
169 #define MID_Italic 2250
170 #define MID_ChangeXHeight 2251
171 #define MID_ChangeGlyph 2252
172 #define MID_CheckSelf 2253
173 #define MID_GlyphSelfIntersects 2254
174 #define MID_ReverseDir 2255
175 #define MID_AddInflections 2256
176 #define MID_Balance 2257
177 #define MID_Harmonize 2258
178 #define MID_Corner 2301
179 #define MID_Tangent 2302
180 #define MID_Curve 2303
181 #define MID_MakeFirst 2304
182 #define MID_MakeLine 2305
183 #define MID_CenterCP 2306
184 #define MID_ImplicitPt 2307
185 #define MID_NoImplicitPt 2308
186 #define MID_InsertPtOnSplineAt 2309
187 #define MID_AddAnchor 2310
188 #define MID_HVCurve 2311
189 #define MID_SpiroG4 2312
190 #define MID_SpiroG2 2313
191 #define MID_SpiroCorner 2314
192 #define MID_SpiroLeft 2315
193 #define MID_SpiroRight 2316
194 #define MID_SpiroMakeFirst 2317
195 #define MID_NamePoint 2318
196 #define MID_NameContour 2319
197 #define MID_AcceptableExtrema 2320
198 #define MID_MakeArc 2321
199 #define MID_ClipPath 2322
200
201 #define MID_AutoHint 2400
202 #define MID_ClearHStem 2401
203 #define MID_ClearVStem 2402
204 #define MID_ClearDStem 2403
205 #define MID_AddHHint 2404
206 #define MID_AddVHint 2405
207 #define MID_AddDHint 2406
208 #define MID_ReviewHints 2407
209 #define MID_CreateHHint 2408
210 #define MID_CreateVHint 2409
211 #define MID_MinimumDistance 2410
212 #define MID_AutoInstr 2411
213 #define MID_ClearInstr 2412
214 #define MID_EditInstructions 2413
215 #define MID_Debug 2414
216 #define MID_HintSubsPt 2415
217 #define MID_AutoCounter 2416
218 #define MID_DontAutoHint 2417
219 #define MID_Deltas 2418
220 #define MID_Tools 2501
221 #define MID_Layers 2502
222 #define MID_DockPalettes 2503
223 #define MID_Center 2600
224 #define MID_SetWidth 2601
225 #define MID_SetLBearing 2602
226 #define MID_SetRBearing 2603
227 #define MID_Thirds 2604
228 #define MID_RemoveKerns 2605
229 #define MID_SetVWidth 2606
230 #define MID_RemoveVKerns 2607
231 #define MID_KPCloseup 2608
232 #define MID_AnchorsAway 2609
233 #define MID_SetBearings 2610
234 #define MID_OpenBitmap 2700
235 #define MID_Revert 2702
236 #define MID_Recent 2703
237 #define MID_RevertGlyph 2707
238 #define MID_Open 2708
239 #define MID_New 2709
240 #define MID_Close 2710
241 #define MID_Quit 2711
242 #define MID_CloseTab 2712
243 #define MID_GenerateTTC 2713
244 #define MID_VKernClass 2715
245 #define MID_VKernFromHKern 2716
246
247 #define MID_ShowGridFitLiveUpdate 2720
248
249 #define MID_MMReblend 2800
250 #define MID_MMAll 2821
251 #define MID_MMNone 2822
252 #define MID_NextLineInWordList 2823
253 #define MID_PrevLineInWordList 2824
254
255 #define MID_Warnings 3000
256
257 extern void CVMenuPointType(GWindow gw, struct gmenuitem *mi, GEvent *e);
258 extern void CVMerge(GWindow gw,struct gmenuitem *mi,GEvent *e);
259 extern void CVMergeToLine(GWindow gw,struct gmenuitem *mi,GEvent *e);
260 extern void CVLSelectLayer(CharView *cv, int layer);
261
262 #ifdef HAVE_GLIB
263 /**
264 * Get all the selected points in the current cv.
265 * Caller must g_list_free() the returned value.
266 */
267 extern GList_Glib* CVGetSelectedPoints(CharView *cv);
268
269 /**
270 * This will call your visitor function 'f' on any selected BCP. This
271 * is regardless of if the BCP is the next or prev BCP for it's
272 * splinepoint.
273 *
274 * This function doesn't use udata at all, it simply passes it on to
275 * your visitor function so it may do something with it like record
276 * results or take optional parameters.
277 */
278 extern void visitSelectedControlPoints( GHashTable *col, visitSelectedControlPointsVisitor f, gpointer udata );
279 /**
280 * NOTE: doesn't do all, just all on selected spline.
281 */
282 extern void visitAllControlPoints( GHashTable *col, visitSelectedControlPointsVisitor f, gpointer udata );
283 #endif
284
285 #endif /* FONTFORGE_CHARVIEW_PRIVATE_H */