Mac OS 9
GXLayout.h
Go to the documentation of this file.
1 
19 #ifndef __GXLAYOUT__
20 #define __GXLAYOUT__
21 
22 #ifndef __CONDITIONALMACROS__
23 #include <ConditionalMacros.h>
24 #endif
25 
26 #ifndef __GXTYPES__
27 #include <GXTypes.h>
28 #endif
29 
30 #if PRAGMA_ONCE
31 #pragma once
32 #endif
33 
34 #ifdef __cplusplus
35 extern "C"
36 {
37 #endif
38 
39 #if PRAGMA_IMPORT
40 #pragma import on
41 #endif
42 
43 #if PRAGMA_STRUCT_ALIGN
44 #pragma options align = mac68k
45 #elif PRAGMA_STRUCT_PACKPUSH
46 #pragma pack(push, 2)
47 #elif PRAGMA_STRUCT_PACK
48 #pragma pack(2)
49 #endif
50 
51 #if defined(__MWERKS__) && TARGET_CPU_68K
52 #pragma push
53 #pragma pointers_in_D0
54 #endif
55 
56 #if CALL_NOT_IN_CARBON
65  gxShape
66  GXNewLayout(long textRunCount, const short textRunLengths[], const void *text[],
67  long styleRunCount, const short styleRunLengths[],
68  const gxStyle styles[], long levelRunCount,
69  const short levelRunLengths[], const short levels[],
70  const gxLayoutOptions *layoutOptions, const gxPoint *position);
71 
80  long
81  GXGetLayout(gxShape layout, void *text, long *styleRunCount,
82  short styleRunLengths[], gxStyle styles[], long *levelRunCount,
83  short levelRunLengths[], short levels[],
84  gxLayoutOptions *layoutOptions, gxPoint *position);
85 
94  void
95  GXSetLayout(gxShape layout, long textRunCount, const short textRunLengths[],
96  const void *text[], long styleRunCount,
97  const short styleRunLengths[], const gxStyle styles[],
98  long levelRunCount, const short levelRunLengths[],
99  const short levels[], const gxLayoutOptions *layoutOptions,
100  const gxPoint *position);
101 
110  void
111  GXDrawLayout(long textRunCount, const short textRunLengths[],
112  const void *text[], long styleRunCount,
113  const short styleRunLengths[], const gxStyle styles[],
114  long levelRunCount, const short levelRunLengths[],
115  const short levels[], const gxLayoutOptions *layoutOptions,
116  const gxPoint *position);
117 
126  void
127  GXSetLayoutParts(gxShape layout, gxByteOffset oldStartOffset,
128  gxByteOffset oldEndOffset, long newTextRunCount,
129  const short newTextRunLengths[], const void *newText[],
130  long newStyleRunCount, const short newStyleRunLengths[],
131  const gxStyle newStyles[], long newLevelRunCount,
132  const short newLevelRunLengths[], const short newLevels[]);
133 
142  void
143  GXSetLayoutShapeParts(gxShape layout, gxByteOffset startOffset,
144  gxByteOffset endOffset, gxShape insert);
145 
154  long
155  GXGetLayoutParts(gxShape layout, gxByteOffset startOffset,
156  gxByteOffset endOffset, void *text, long *styleRunCount,
157  short styleRunLengths[], gxStyle styles[], long *levelRunCount,
158  short levelRunLengths[], short levels[]);
159 
168  gxShape
169  GXGetLayoutShapeParts(gxShape layout, gxByteOffset startOffset,
170  gxByteOffset endOffset, gxShape dest);
171 
180  long
181  GXGetLayoutGlyphs(gxShape layout, gxGlyphcode *glyphs, gxPoint positions[],
182  long advance[], gxPoint tangents[], long *runCount,
183  short styleRuns[], gxStyle glyphStyles[]);
184 
194  GXHitTestLayout(gxShape layout, const gxPoint *hitDown,
195  gxHighlightType highlightType, gxLayoutHitInfo *hitInfo,
196  gxShape hitTrackingArea);
197 
206  gxShape
207  GXGetLayoutHighlight(gxShape layout, gxByteOffset startOffset,
208  gxByteOffset endOffset, gxHighlightType highlightType,
209  gxShape highlight);
210 
219  gxShape
220  GXGetLayoutVisualHighlight(gxShape layout, gxByteOffset startOffset,
221  long startLeadingEdge, gxByteOffset endOffset,
222  long endLeadingEdge, gxHighlightType highlightType,
223  gxShape highlight);
224 
233  gxShape
234  GXGetLayoutCaret(gxShape layout, gxByteOffset offset,
235  gxHighlightType highlightType, gxCaretType caretType,
236  gxShape caret);
237 
247  GXGetLayoutBreakOffset(gxShape layout, gxByteOffset startOffset,
248  Fixed lineWidth, long hyphenationCount,
249  const gxByteOffset hyphenationPoints[],
250  Boolean *startIsStaked, gxByteOffset *priorStake,
251  gxByteOffset *nextStake);
252 
261  Fixed
262  GXGetLayoutRangeWidth(gxShape layout, gxByteOffset startOffset,
263  gxByteOffset endOffset, gxShape supplementaryText);
264 
273  gxShape
274  GXNewLayoutFromRange(gxShape layout, gxByteOffset startOffset,
275  gxByteOffset endOffset,
276  const gxLayoutOptions *layoutOptions,
277  gxShape supplementaryText);
278 
287  gxShape
288  GXGetCaretAngleArea(gxShape layout, const gxPoint *hitPoint,
289  gxHighlightType highlightType, gxShape caretArea,
290  short *returnedRise, short *returnedRun);
291 
300  void
301  GXGetStyleBaselineDeltas(gxStyle baseStyle, gxBaselineType baseType,
302  gxBaselineDeltas returnedDeltas);
303 
313  GXGetRightVisualOffset(gxShape layout, gxByteOffset currentOffset);
314 
324  GXGetLeftVisualOffset(gxShape layout, gxByteOffset currentOffset);
325 
334  void
336  gxByteOffset *minOffset, gxByteOffset *maxOffset,
337  Boolean *onBoundary);
338 
347  void
348  GXGetOffsetGlyphs(gxShape layout, gxByteOffset trial, long leadingEdge,
349  gxLayoutOffsetState *offsetState, unsigned short *firstGlyph,
350  unsigned short *secondGlyph);
351 
360  void
361  GXGetGlyphOffset(gxShape layout, long trial, long onLeftTop,
362  gxByteOffset *offset, Boolean *leadingEdge,
363  Boolean *wasRealCharacter);
364 
373  void
374  GXGetLayoutSpan(gxShape layout, Fixed *lineAscent, Fixed *lineDescent);
375 
384  void
385  GXSetLayoutSpan(gxShape layout, Fixed lineAscent, Fixed lineDescent);
386 
395  Fixed
397 
406  void
407  GXGetLayoutJustificationFactors(gxShape layout, Fixed constrainedFactors[],
408  Fixed unconstrainedFactors[]);
409 
418  void
419  GXSetStyleRunControls(gxStyle target, const gxRunControls *runControls);
420 
429  void
431  gxStyle target,
432  const gxPriorityJustificationOverride *priorityJustificationOverride);
433 
442  void
444  gxStyle target, long count,
445  const gxGlyphJustificationOverride glyphJustificationOverrides[]);
446 
455  void
456  GXSetStyleRunGlyphSubstitutions(gxStyle target, long count,
457  const gxGlyphSubstitution glyphSubstitutions[]);
458 
467  void
468  GXSetStyleRunFeatures(gxStyle target, long count,
469  const gxRunFeature runFeatures[]);
470 
479  void
480  GXSetStyleRunKerningAdjustments(gxStyle target, long count,
481  const gxKerningAdjustment kerningAdjustments[]);
482 
491  void
492  GXSetShapeRunControls(gxShape target, const gxRunControls *runControls);
493 
502  void
504  gxShape target,
505  const gxPriorityJustificationOverride *priorityJustificationOverride);
506 
515  void
517  gxShape target, long count,
518  const gxGlyphJustificationOverride glyphJustificationOverrides[]);
519 
528  void
529  GXSetShapeRunGlyphSubstitutions(gxShape target, long count,
530  const gxGlyphSubstitution glyphSubstitutions[]);
531 
540  void
541  GXSetShapeRunFeatures(gxShape target, long count,
542  const gxRunFeature runFeatures[]);
543 
552  void
553  GXSetShapeRunKerningAdjustments(gxShape target, long count,
554  const gxKerningAdjustment kerningAdjustments[]);
555 
564  long
565  GXGetStyleRunControls(gxStyle source, gxRunControls *runControls);
566 
575  long
577  gxStyle source,
578  gxPriorityJustificationOverride *priorityJustificationOverride);
579 
588  long
590  gxStyle source, gxGlyphJustificationOverride glyphJustificationOverrides[]);
591 
600  long
602  gxGlyphSubstitution glyphSubstitutions[]);
603 
612  long
613  GXGetStyleRunFeatures(gxStyle source, gxRunFeature runFeatures[]);
614 
623  long
625  gxKerningAdjustment kerningAdjustments[]);
626 
635  long
636  GXGetShapeRunControls(gxShape source, gxRunControls *runControls);
637 
646  long
648  gxShape source,
649  gxPriorityJustificationOverride *priorityJustificationOverride);
650 
659  long
661  gxShape source, gxGlyphJustificationOverride glyphJustificationOverrides[]);
662 
671  long
673  gxGlyphSubstitution glyphSubstitutions[]);
674 
683  long
684  GXGetShapeRunFeatures(gxShape source, gxRunFeature runFeatures[]);
685 
694  long
696  gxKerningAdjustment kerningAdjustments[]);
697 
698 #endif /* CALL_NOT_IN_CARBON */
699 
700 #if defined(__MWERKS__) && TARGET_CPU_68K
701 #pragma pop
702 #endif
703 
704 #if PRAGMA_STRUCT_ALIGN
705 #pragma options align = reset
706 #elif PRAGMA_STRUCT_PACKPUSH
707 #pragma pack(pop)
708 #elif PRAGMA_STRUCT_PACK
709 #pragma pack()
710 #endif
711 
712 #ifdef PRAGMA_IMPORT_OFF
713 #pragma import off
714 #elif PRAGMA_IMPORT
715 #pragma import reset
716 #endif
717 
718 #ifdef __cplusplus
719 }
720 #endif
721 
722 #endif /* __GXLAYOUT__ */
Set up for compiler independent conditionals.
void GXSetStyleRunFeatures(gxStyle target, long count, const gxRunFeature runFeatures[])
void GXGetLayoutJustificationFactors(gxShape layout, Fixed constrainedFactors[], Fixed unconstrainedFactors[])
long GXGetStyleRunControls(gxStyle source, gxRunControls *runControls)
void GXDrawLayout(long textRunCount, const short textRunLengths[], const void *text[], long styleRunCount, const short styleRunLengths[], const gxStyle styles[], long levelRunCount, const short levelRunLengths[], const short levels[], const gxLayoutOptions *layoutOptions, const gxPoint *position)
void GXSetShapeRunKerningAdjustments(gxShape target, long count, const gxKerningAdjustment kerningAdjustments[])
gxByteOffset GXGetRightVisualOffset(gxShape layout, gxByteOffset currentOffset)
void GXSetShapeRunGlyphJustOverrides(gxShape target, long count, const gxGlyphJustificationOverride glyphJustificationOverrides[])
void GXSetLayoutSpan(gxShape layout, Fixed lineAscent, Fixed lineDescent)
gxByteOffset GXGetLeftVisualOffset(gxShape layout, gxByteOffset currentOffset)
void GXGetCompoundCharacterLimits(gxShape layout, gxByteOffset trial, gxByteOffset *minOffset, gxByteOffset *maxOffset, Boolean *onBoundary)
void GXGetStyleBaselineDeltas(gxStyle baseStyle, gxBaselineType baseType, gxBaselineDeltas returnedDeltas)
void GXGetGlyphOffset(gxShape layout, long trial, long onLeftTop, gxByteOffset *offset, Boolean *leadingEdge, Boolean *wasRealCharacter)
void GXSetShapeRunPriorityJustOverride(gxShape target, const gxPriorityJustificationOverride *priorityJustificationOverride)
void GXSetStyleRunControls(gxStyle target, const gxRunControls *runControls)
void GXGetLayoutSpan(gxShape layout, Fixed *lineAscent, Fixed *lineDescent)
long GXGetShapeRunGlyphSubstitutions(gxShape source, gxGlyphSubstitution glyphSubstitutions[])
long GXGetShapeRunControls(gxShape source, gxRunControls *runControls)
gxShape GXGetCaretAngleArea(gxShape layout, const gxPoint *hitPoint, gxHighlightType highlightType, gxShape caretArea, short *returnedRise, short *returnedRun)
void GXGetOffsetGlyphs(gxShape layout, gxByteOffset trial, long leadingEdge, gxLayoutOffsetState *offsetState, unsigned short *firstGlyph, unsigned short *secondGlyph)
long GXGetShapeRunPriorityJustOverride(gxShape source, gxPriorityJustificationOverride *priorityJustificationOverride)
void GXSetLayoutShapeParts(gxShape layout, gxByteOffset startOffset, gxByteOffset endOffset, gxShape insert)
void GXSetShapeRunControls(gxShape target, const gxRunControls *runControls)
gxShape GXGetLayoutShapeParts(gxShape layout, gxByteOffset startOffset, gxByteOffset endOffset, gxShape dest)
Fixed GXGetLayoutRangeWidth(gxShape layout, gxByteOffset startOffset, gxByteOffset endOffset, gxShape supplementaryText)
Fixed GXGetLayoutJustificationGap(gxShape layout)
gxShape GXNewLayoutFromRange(gxShape layout, gxByteOffset startOffset, gxByteOffset endOffset, const gxLayoutOptions *layoutOptions, gxShape supplementaryText)
long GXGetStyleRunFeatures(gxStyle source, gxRunFeature runFeatures[])
gxShape GXGetLayoutCaret(gxShape layout, gxByteOffset offset, gxHighlightType highlightType, gxCaretType caretType, gxShape caret)
gxByteOffset GXHitTestLayout(gxShape layout, const gxPoint *hitDown, gxHighlightType highlightType, gxLayoutHitInfo *hitInfo, gxShape hitTrackingArea)
gxShape GXNewLayout(long textRunCount, const short textRunLengths[], const void *text[], long styleRunCount, const short styleRunLengths[], const gxStyle styles[], long levelRunCount, const short levelRunLengths[], const short levels[], const gxLayoutOptions *layoutOptions, const gxPoint *position)
long GXGetShapeRunGlyphJustOverrides(gxShape source, gxGlyphJustificationOverride glyphJustificationOverrides[])
void GXSetStyleRunGlyphSubstitutions(gxStyle target, long count, const gxGlyphSubstitution glyphSubstitutions[])
void GXSetLayoutParts(gxShape layout, gxByteOffset oldStartOffset, gxByteOffset oldEndOffset, long newTextRunCount, const short newTextRunLengths[], const void *newText[], long newStyleRunCount, const short newStyleRunLengths[], const gxStyle newStyles[], long newLevelRunCount, const short newLevelRunLengths[], const short newLevels[])
long GXGetStyleRunGlyphSubstitutions(gxStyle source, gxGlyphSubstitution glyphSubstitutions[])
gxShape GXGetLayoutHighlight(gxShape layout, gxByteOffset startOffset, gxByteOffset endOffset, gxHighlightType highlightType, gxShape highlight)
long GXGetStyleRunGlyphJustOverrides(gxStyle source, gxGlyphJustificationOverride glyphJustificationOverrides[])
void GXSetLayout(gxShape layout, long textRunCount, const short textRunLengths[], const void *text[], long styleRunCount, const short styleRunLengths[], const gxStyle styles[], long levelRunCount, const short levelRunLengths[], const short levels[], const gxLayoutOptions *layoutOptions, const gxPoint *position)
void GXSetShapeRunGlyphSubstitutions(gxShape target, long count, const gxGlyphSubstitution glyphSubstitutions[])
long GXGetLayoutParts(gxShape layout, gxByteOffset startOffset, gxByteOffset endOffset, void *text, long *styleRunCount, short styleRunLengths[], gxStyle styles[], long *levelRunCount, short levelRunLengths[], short levels[])
gxByteOffset GXGetLayoutBreakOffset(gxShape layout, gxByteOffset startOffset, Fixed lineWidth, long hyphenationCount, const gxByteOffset hyphenationPoints[], Boolean *startIsStaked, gxByteOffset *priorStake, gxByteOffset *nextStake)
long GXGetStyleRunKerningAdjustments(gxStyle source, gxKerningAdjustment kerningAdjustments[])
long GXGetStyleRunPriorityJustOverride(gxStyle source, gxPriorityJustificationOverride *priorityJustificationOverride)
void GXSetStyleRunKerningAdjustments(gxStyle target, long count, const gxKerningAdjustment kerningAdjustments[])
void GXSetStyleRunPriorityJustOverride(gxStyle target, const gxPriorityJustificationOverride *priorityJustificationOverride)
long GXGetLayoutGlyphs(gxShape layout, gxGlyphcode *glyphs, gxPoint positions[], long advance[], gxPoint tangents[], long *runCount, short styleRuns[], gxStyle glyphStyles[])
long GXGetShapeRunKerningAdjustments(gxShape source, gxKerningAdjustment kerningAdjustments[])
long GXGetShapeRunFeatures(gxShape source, gxRunFeature runFeatures[])
long GXGetLayout(gxShape layout, void *text, long *styleRunCount, short styleRunLengths[], gxStyle styles[], long *levelRunCount, short levelRunLengths[], short levels[], gxLayoutOptions *layoutOptions, gxPoint *position)
void GXSetShapeRunFeatures(gxShape target, long count, const gxRunFeature runFeatures[])
void GXSetStyleRunGlyphJustOverrides(gxStyle target, long count, const gxGlyphJustificationOverride glyphJustificationOverrides[])
gxShape GXGetLayoutVisualHighlight(gxShape layout, gxByteOffset startOffset, long startLeadingEdge, gxByteOffset endOffset, long endLeadingEdge, gxHighlightType highlightType, gxShape highlight)
QuickDraw GX object and constant definitions.
long gxByteOffset
Definition: GXTypes.h:1141
long Fixed
Definition: MacTypes.h:153
unsigned char Boolean
Definition: MacTypes.h:318
Definition: GXTypes.h:1336
Definition: GXTypes.h:1362
Definition: GXTypes.h:1380
Definition: GXTypes.h:1397
Definition: GXTypes.h:1417
Definition: GXMath.h:61
Definition: GXTypes.h:1328
Definition: GXTypes.h:1346
Definition: GXTypes.h:1308