22 #ifndef __CONDITIONALMACROS__
47 #if PRAGMA_STRUCT_ALIGN
48 #pragma options align = mac68k
49 #elif PRAGMA_STRUCT_PACKPUSH
51 #elif PRAGMA_STRUCT_PACK
55 #if defined(__MWERKS__) && TARGET_CPU_68K
57 #pragma pointers_in_D0
62 gxFirstSystemError = -27999,
64 gxLastFatalError = -27951,
65 gxFirstNonfatalError = -27950,
66 gxFirstFontScalerError = -27900,
67 gxLastFontScalerError = -27851,
68 gxFirstParameterError = -27850,
69 gxFirstImplementationLimitError = -27800,
70 gxFirstSystemDebuggingError = -27700,
71 gxLastSystemError = -27000,
78 gxFirstParameterOutOfRangeWarning = -26900,
79 gxFirstFontScalerWarning = -26850,
80 gxFirstSystemDebuggingWarning = -26700,
81 gxLastSystemWarning = -26000,
108 internal_font_error = gxFirstNonfatalError + 1,
109 internal_layout_error = gxFirstNonfatalError + 2
116 unflattening_interrupted_by_client = internal_layout_error + 3
123 illegal_font_parameter = internal_layout_error + 5
130 null_font_scaler_input = gxFirstFontScalerError + 1,
131 invalid_font_scaler_context = gxFirstFontScalerError + 2,
132 invalid_font_scaler_input = gxFirstFontScalerError + 3,
133 invalid_font_scaler_font_data = gxFirstFontScalerError + 4,
134 font_scaler_newblock_failed = gxFirstFontScalerError + 5,
135 font_scaler_getfonttable_failed = gxFirstFontScalerError + 6,
136 font_scaler_bitmap_allocation_failed = gxFirstFontScalerError + 7,
137 font_scaler_outline_allocation_failed = gxFirstFontScalerError + 8,
138 required_font_scaler_table_missing = gxFirstFontScalerError + 9,
139 unsupported_font_scaler_outline_format = gxFirstFontScalerError + 10,
140 unsupported_font_scaler_stream_format = gxFirstFontScalerError + 11,
141 unsupported_font_scaler_font_format = gxFirstFontScalerError + 12,
142 font_scaler_hinting_error = gxFirstFontScalerError + 13,
143 font_scaler_rasterizer_error = gxFirstFontScalerError + 14,
144 font_scaler_internal_error = gxFirstFontScalerError + 15,
145 font_scaler_invalid_matrix = gxFirstFontScalerError + 16,
146 font_scaler_fixed_overflow = gxFirstFontScalerError + 17,
147 font_scaler_api_version_mismatch = gxFirstFontScalerError + 18,
148 font_scaler_streaming_aborted = gxFirstFontScalerError + 19,
149 unknown_font_scaler_error = gxFirstFontScalerError + 20
156 shape_is_nil = gxFirstParameterError + 1,
157 style_is_nil = gxFirstParameterError + 2,
158 transform_is_nil = gxFirstParameterError + 3,
159 ink_is_nil = gxFirstParameterError + 4,
160 transferMode_is_nil = gxFirstParameterError + 5,
161 color_is_nil = gxFirstParameterError + 6,
162 colorProfile_is_nil = gxFirstParameterError + 7,
163 colorSet_is_nil = gxFirstParameterError + 8,
164 spoolProcedure_is_nil = gxFirstParameterError + 9,
165 tag_is_nil = gxFirstParameterError + 10,
166 type_is_nil = gxFirstParameterError + 11,
167 mapping_is_nil = gxFirstParameterError + 12,
168 invalid_viewDevice_reference = gxFirstParameterError + 13,
169 invalid_viewGroup_reference = gxFirstParameterError + 14,
170 invalid_viewPort_reference = gxFirstParameterError + 15
178 gxFirstImplementationLimitError,
179 number_of_points_exceeds_implementation_limit =
180 gxFirstImplementationLimitError + 1,
181 size_of_polygon_exceeds_implementation_limit =
182 gxFirstImplementationLimitError + 2,
183 size_of_path_exceeds_implementation_limit =
184 gxFirstImplementationLimitError + 3,
185 size_of_text_exceeds_implementation_limit =
186 gxFirstImplementationLimitError + 4,
187 size_of_bitmap_exceeds_implementation_limit =
188 gxFirstImplementationLimitError + 5,
189 number_of_colors_exceeds_implementation_limit =
190 gxFirstImplementationLimitError + 6,
191 procedure_not_reentrant = gxFirstImplementationLimitError + 7
198 clip_to_frame_shape_unimplemented =
199 gxFirstSystemDebuggingError + 1,
201 illegal_font_storage_reference = gxFirstSystemDebuggingError + 3,
202 illegal_font_attributes =
203 gxFirstSystemDebuggingError + 4,
205 inconsistent_parameters = gxFirstSystemDebuggingError + 6,
206 index_is_less_than_zero = gxFirstSystemDebuggingError + 7,
207 index_is_less_than_one = gxFirstSystemDebuggingError + 8,
208 count_is_less_than_zero = gxFirstSystemDebuggingError + 9,
209 count_is_less_than_one = gxFirstSystemDebuggingError + 10,
210 contour_is_less_than_zero = gxFirstSystemDebuggingError + 11,
211 length_is_less_than_zero = gxFirstSystemDebuggingError + 12,
212 invalid_client_reference = gxFirstSystemDebuggingError + 13,
213 invalid_graphics_heap_start_pointer = gxFirstSystemDebuggingError + 14,
214 invalid_nongraphic_globals_pointer = gxFirstSystemDebuggingError + 15,
215 colorSpace_out_of_range = gxFirstSystemDebuggingError + 16,
216 pattern_lattice_out_of_range = gxFirstSystemDebuggingError + 17,
217 frequency_parameter_out_of_range = gxFirstSystemDebuggingError + 18,
218 tinting_parameter_out_of_range = gxFirstSystemDebuggingError + 19,
219 method_parameter_out_of_range = gxFirstSystemDebuggingError + 20,
220 space_may_not_be_indexed = gxFirstSystemDebuggingError + 21,
221 glyph_index_too_small = gxFirstSystemDebuggingError + 22,
222 no_glyphs_added_to_font = gxFirstSystemDebuggingError + 23,
223 glyph_not_added_to_font = gxFirstSystemDebuggingError + 24,
224 point_does_not_intersect_bitmap = gxFirstSystemDebuggingError + 25,
225 required_font_table_not_present = gxFirstSystemDebuggingError + 26,
226 unknown_font_table_format =
227 gxFirstSystemDebuggingError +
230 inverseFill_face_must_set_clipLayer_flag = gxFirstSystemDebuggingError + 29,
231 invalid_transferMode_colorSpace = gxFirstSystemDebuggingError + 30,
232 colorProfile_must_be_nil = gxFirstSystemDebuggingError + 31,
233 bitmap_pixel_size_must_be_1 = gxFirstSystemDebuggingError + 32,
234 empty_shape_not_allowed = gxFirstSystemDebuggingError + 33,
235 ignorePlatformShape_not_allowed = gxFirstSystemDebuggingError + 34,
236 nil_style_in_glyph_not_allowed = gxFirstSystemDebuggingError + 35,
237 complex_glyph_style_not_allowed = gxFirstSystemDebuggingError + 36,
238 invalid_mapping = gxFirstSystemDebuggingError + 37,
239 cannot_set_item_shapes_to_nil = gxFirstSystemDebuggingError + 38,
240 cannot_use_original_item_shapes_when_growing_picture =
241 gxFirstSystemDebuggingError + 39,
242 cannot_add_unspecified_new_glyphs = gxFirstSystemDebuggingError + 40,
243 cannot_dispose_locked_tag = gxFirstSystemDebuggingError + 41,
244 cannot_dispose_locked_shape = gxFirstSystemDebuggingError + 42
251 colorSet_access_restricted = gxFirstSystemDebuggingError + 44,
252 colorProfile_access_restricted = gxFirstSystemDebuggingError + 45,
253 tag_access_restricted = gxFirstSystemDebuggingError + 46,
254 viewDevice_access_restricted = gxFirstSystemDebuggingError + 47,
255 graphic_type_does_not_have_a_structure = gxFirstSystemDebuggingError + 48,
256 style_run_array_does_not_match_number_of_characters =
257 gxFirstSystemDebuggingError + 49,
258 rectangles_cannot_be_inserted_into = gxFirstSystemDebuggingError + 50,
259 unknown_graphics_heap = gxFirstSystemDebuggingError + 51,
260 graphics_routine_selector_is_obsolete = gxFirstSystemDebuggingError + 52,
261 cannot_set_graphics_client_memory_without_setting_size =
262 gxFirstSystemDebuggingError + 53,
263 graphics_client_memory_too_small = gxFirstSystemDebuggingError + 54,
264 graphics_client_memory_is_already_allocated =
265 gxFirstSystemDebuggingError + 55,
266 viewPort_is_a_window =
267 gxFirstSystemDebuggingError + 56,
269 shape_does_not_contain_a_bitmap = gxFirstSystemDebuggingError + 58,
270 shape_does_not_contain_text = gxFirstSystemDebuggingError + 59,
271 picture_expected = gxFirstSystemDebuggingError + 60,
272 bitmap_is_not_resizable = gxFirstSystemDebuggingError + 61,
273 shape_may_not_be_a_bitmap = gxFirstSystemDebuggingError + 62,
274 shape_may_not_be_a_picture = gxFirstSystemDebuggingError + 63,
275 graphic_type_does_not_contain_points = gxFirstSystemDebuggingError + 64,
276 graphic_type_does_not_have_multiple_contours =
277 gxFirstSystemDebuggingError + 65,
278 graphic_type_cannot_be_mapped = gxFirstSystemDebuggingError + 66,
279 graphic_type_cannot_be_moved = gxFirstSystemDebuggingError + 67,
280 graphic_type_cannot_be_scaled = gxFirstSystemDebuggingError + 68,
281 graphic_type_cannot_be_rotated = gxFirstSystemDebuggingError + 69,
282 graphic_type_cannot_be_skewed = gxFirstSystemDebuggingError + 70,
283 graphic_type_cannot_be_reset = gxFirstSystemDebuggingError + 71,
284 graphic_type_cannot_be_dashed = gxFirstSystemDebuggingError + 72,
285 graphic_type_cannot_be_reduced = gxFirstSystemDebuggingError + 73,
286 graphic_type_cannot_be_inset = gxFirstSystemDebuggingError + 74,
287 shape_cannot_be_inverted = gxFirstSystemDebuggingError + 75,
288 shape_does_not_have_area = gxFirstSystemDebuggingError + 76,
289 shape_does_not_have_length = gxFirstSystemDebuggingError + 77,
290 first_glyph_advance_must_be_absolute = gxFirstSystemDebuggingError + 78,
291 picture_cannot_contain_itself = gxFirstSystemDebuggingError + 79,
292 viewPort_cannot_contain_itself = gxFirstSystemDebuggingError + 80,
293 cannot_set_unique_items_attribute_when_picture_contains_items =
294 gxFirstSystemDebuggingError + 81,
295 layer_style_cannot_contain_a_face = gxFirstSystemDebuggingError + 82,
296 layer_glyph_shape_cannot_contain_nil_styles = gxFirstSystemDebuggingError + 83
303 shape_wrong_type = gxFirstSystemDebuggingError + 85,
304 style_wrong_type = gxFirstSystemDebuggingError + 86,
305 ink_wrong_type = gxFirstSystemDebuggingError + 87,
306 transform_wrong_type = gxFirstSystemDebuggingError + 88,
307 device_wrong_type = gxFirstSystemDebuggingError + 89,
308 port_wrong_type = gxFirstSystemDebuggingError + 90
315 style_cache_wrong_type = gxFirstSystemDebuggingError + 92,
316 ink_cache_wrong_type = gxFirstSystemDebuggingError + 93,
317 transform_cache_wrong_type = gxFirstSystemDebuggingError + 94,
318 port_cache_wrong_type = gxFirstSystemDebuggingError + 95,
319 shape_cache_parent_mismatch = gxFirstSystemDebuggingError + 96,
320 style_cache_parent_mismatch = gxFirstSystemDebuggingError + 97,
321 ink_cache_parent_mismatch = gxFirstSystemDebuggingError + 98,
322 transform_cache_parent_mismatch = gxFirstSystemDebuggingError + 99,
323 port_cache_parent_mismatch = gxFirstSystemDebuggingError + 100,
324 invalid_shape_cache_port = gxFirstSystemDebuggingError + 101,
325 invalid_shape_cache_device = gxFirstSystemDebuggingError + 102,
326 invalid_ink_cache_port = gxFirstSystemDebuggingError + 103,
327 invalid_ink_cache_device = gxFirstSystemDebuggingError + 104,
328 invalid_style_cache_port = gxFirstSystemDebuggingError + 105,
329 invalid_style_cache_device = gxFirstSystemDebuggingError + 106,
330 invalid_transform_cache_port = gxFirstSystemDebuggingError + 107,
331 invalid_transform_cache_device = gxFirstSystemDebuggingError + 108,
332 recursive_caches = gxFirstSystemDebuggingError + 109
339 recursive_fillShapes = gxFirstSystemDebuggingError + 111
346 indirect_memory_block_too_large = gxFirstSystemDebuggingError + 113,
347 unexpected_nil_pointer = gxFirstSystemDebuggingError + 114,
348 bad_address = gxFirstSystemDebuggingError + 115
355 invalid_pointer = gxFirstSystemDebuggingError + 117,
356 invalid_seed = gxFirstSystemDebuggingError + 118,
357 invalid_frame_seed = gxFirstSystemDebuggingError + 119,
358 invalid_text_seed = gxFirstSystemDebuggingError + 120,
359 invalid_draw_seed = gxFirstSystemDebuggingError + 121,
360 bad_private_flags = gxFirstSystemDebuggingError + 122
367 invalid_contour_count = gxFirstSystemDebuggingError + 124
374 bitmap_ptr_not_aligned = gxFirstSystemDebuggingError + 126,
375 bitmap_rowBytes_negative = gxFirstSystemDebuggingError + 127,
376 bitmap_width_negative = gxFirstSystemDebuggingError + 128,
377 bitmap_height_negative = gxFirstSystemDebuggingError + 129,
378 invalid_pixelSize = gxFirstSystemDebuggingError + 130,
379 bitmap_rowBytes_too_small = gxFirstSystemDebuggingError + 131,
380 bitmap_rowBytes_not_aligned = gxFirstSystemDebuggingError + 132,
381 bitmap_rowBytes_must_be_specified_for_user_image_buffer =
382 gxFirstSystemDebuggingError + 133
389 invalid_bitImage_owners = gxFirstSystemDebuggingError + 135,
390 invalid_bitImage_rowBytes = gxFirstSystemDebuggingError + 136,
391 invalid_bitImage_internal_flag = gxFirstSystemDebuggingError + 137
398 text_metrics_cache_wrong_size = gxFirstSystemDebuggingError + 139,
399 text_index_cache_wrong_size = gxFirstSystemDebuggingError + 140
406 glyph_run_count_zero = gxFirstSystemDebuggingError + 142,
407 glyph_run_counts_do_not_sum_to_character_count =
408 gxFirstSystemDebuggingError + 143,
409 glyph_first_advance_bit_set_not_allowed = gxFirstSystemDebuggingError + 144,
410 glyph_tangent_vectors_both_zero = gxFirstSystemDebuggingError + 145
417 layout_run_length_zero = gxFirstSystemDebuggingError + 147,
418 layout_run_level_negative = gxFirstSystemDebuggingError + 148,
419 layout_run_lengths_do_not_sum_to_text_length =
420 gxFirstSystemDebuggingError + 149
427 bad_style_in_picture = gxFirstSystemDebuggingError + 151,
428 bad_ink_in_picture = gxFirstSystemDebuggingError + 152,
429 bad_transform_in_picture = gxFirstSystemDebuggingError + 153,
430 bad_shape_cache_in_picture = gxFirstSystemDebuggingError + 154,
431 bad_seed_in_picture = gxFirstSystemDebuggingError + 155,
432 invalid_picture_count = gxFirstSystemDebuggingError + 156
439 bad_fillType_in_textFace = gxFirstSystemDebuggingError + 158,
440 bad_style_in_textFace = gxFirstSystemDebuggingError + 159,
441 bad_transform_in_textFace = gxFirstSystemDebuggingError + 160
448 transform_clip_missing = gxFirstSystemDebuggingError + 162
455 metrics_point_size_probably_bad = gxFirstSystemDebuggingError + 164,
456 scalar_block_wrong_type = gxFirstSystemDebuggingError + 165,
457 scalar_block_parent_mismatch = gxFirstSystemDebuggingError + 166,
458 scalar_block_too_small = gxFirstSystemDebuggingError + 167,
459 scalar_block_too_large = gxFirstSystemDebuggingError + 168,
460 invalid_metrics_range = gxFirstSystemDebuggingError + 169,
461 invalid_metrics_flags = gxFirstSystemDebuggingError + 170,
462 metrics_maxWidth_probably_bad = gxFirstSystemDebuggingError + 171,
463 font_wrong_type = gxFirstSystemDebuggingError + 172,
464 font_wrong_size = gxFirstSystemDebuggingError + 173,
465 invalid_font_platform = gxFirstSystemDebuggingError + 174,
466 invalid_lookup_range = gxFirstSystemDebuggingError + 175,
467 invalid_lookup_platform = gxFirstSystemDebuggingError + 176,
468 font_not_in_font_list = gxFirstSystemDebuggingError + 177,
469 metrics_not_in_metrics_list = gxFirstSystemDebuggingError + 178
476 bad_device_attributes = gxFirstSystemDebuggingError + 180,
477 invalid_device_number = gxFirstSystemDebuggingError + 181,
478 invalid_device_viewGroup = gxFirstSystemDebuggingError + 182,
479 invalid_device_bounds = gxFirstSystemDebuggingError + 183,
480 invalid_bitmap_in_device = gxFirstSystemDebuggingError + 184
487 invalid_colorSet_viewDevice_owners = gxFirstSystemDebuggingError + 186,
488 invalid_colorSet_colorSpace = gxFirstSystemDebuggingError + 187,
489 invalid_colorSet_count = gxFirstSystemDebuggingError + 188
496 invalid_colorProfile_flags = gxFirstSystemDebuggingError + 190,
497 invalid_colorProfile_response_count = gxFirstSystemDebuggingError + 191
504 backing_store_parent_mismatch = gxFirstSystemDebuggingError + 193
538 index_out_of_range_in_contour = gxFirstParameterOutOfRangeWarning + 1,
539 picture_index_out_of_range = gxFirstParameterOutOfRangeWarning + 2,
540 color_index_requested_not_found = gxFirstParameterOutOfRangeWarning + 3,
541 colorSet_index_out_of_range = gxFirstParameterOutOfRangeWarning + 4,
542 index_out_of_range = gxFirstParameterOutOfRangeWarning + 5,
543 count_out_of_range = gxFirstParameterOutOfRangeWarning + 6,
544 length_out_of_range = gxFirstParameterOutOfRangeWarning + 7,
545 font_table_index_out_of_range = gxFirstParameterOutOfRangeWarning + 8,
546 font_glyph_index_out_of_range = gxFirstParameterOutOfRangeWarning + 9,
547 point_out_of_range = gxFirstParameterOutOfRangeWarning + 10,
548 profile_response_out_of_range = gxFirstParameterOutOfRangeWarning + 11
555 font_scaler_fake_metrics = gxFirstFontScalerWarning + 1,
556 font_scaler_fake_linespacing = gxFirstFontScalerWarning + 2,
557 font_scaler_glyph_substitution = gxFirstFontScalerWarning + 3,
558 font_scaler_no_kerning_applied =
559 gxFirstFontScalerWarning + 4,
561 unable_to_get_bounds_on_multiple_devices = gxFirstFontScalerWarning + 6,
562 font_language_not_found = gxFirstFontScalerWarning + 7,
563 font_not_found_during_unflattening =
564 gxFirstFontScalerWarning + 8,
566 bad_data_in_stream = gxFirstFontScalerWarning + 10
573 new_tag_contains_invalid_data = gxFirstSystemDebuggingWarning + 1,
574 extra_data_passed_was_ignored = gxFirstSystemDebuggingWarning + 2,
575 font_table_not_found = gxFirstSystemDebuggingWarning + 3,
576 font_name_not_found = gxFirstSystemDebuggingWarning + 4
583 gxFirstSystemDebuggingWarning + 5,
584 unable_to_draw_open_contour_that_starts_or_ends_off_the_curve =
585 gxFirstSystemDebuggingWarning + 6,
586 cannot_dispose_default_shape = gxFirstSystemDebuggingWarning + 7,
587 cannot_dispose_default_style = gxFirstSystemDebuggingWarning + 8,
588 cannot_dispose_default_ink = gxFirstSystemDebuggingWarning + 9,
589 cannot_dispose_default_transform = gxFirstSystemDebuggingWarning + 10,
590 cannot_dispose_default_colorProfile = gxFirstSystemDebuggingWarning + 11,
591 cannot_dispose_default_colorSet = gxFirstSystemDebuggingWarning + 12,
592 shape_direct_attribute_not_set = gxFirstSystemDebuggingWarning + 13
599 cannot_dispose_non_font = gxFirstSystemDebuggingWarning + 15,
600 face_override_style_font_must_match_style =
601 gxFirstSystemDebuggingWarning + 16,
602 union_of_area_and_length_returns_area_only =
603 gxFirstSystemDebuggingWarning + 17,
604 insufficient_coordinate_space_for_new_device =
605 gxFirstSystemDebuggingWarning + 18
612 tags_of_type_flst_removed = gxFirstSystemDebuggingWarning + 20,
613 translator_not_installed_on_this_grafport = gxFirstSystemDebuggingWarning + 21
706 profile_not_locked = tag_not_locked,
707 lockProfile_called_as_side_effect = lockTag_called_as_side_effect
723 typedef long gxGraphicsError;
724 typedef long gxGraphicsWarning;
725 typedef long gxGraphicsNotice;
726 typedef CALLBACK_API_C(
void, gxUserErrorProcPtr)(gxGraphicsError status,
728 typedef CALLBACK_API_C(
void, gxUserWarningProcPtr)(gxGraphicsWarning status,
730 typedef CALLBACK_API_C(
void, gxUserNoticeProcPtr)(gxGraphicsNotice status,
735 #if CALL_NOT_IN_CARBON
746 #if !OPAQUE_UPP_TYPES
749 uppgxUserErrorProcInfo = 0x000003C1
755 (ProcPtr)(userRoutine), uppgxUserErrorProcInfo, GetCurrentArchitecture());
758 #define NewgxUserErrorUPP(userRoutine) \
760 NewRoutineDescriptor((ProcPtr)(userRoutine), uppgxUserErrorProcInfo, \
761 GetCurrentArchitecture())
775 #if !OPAQUE_UPP_TYPES
778 uppgxUserWarningProcInfo = 0x000003C1
784 uppgxUserWarningProcInfo,
785 GetCurrentArchitecture());
788 #define NewgxUserWarningUPP(userRoutine) \
790 NewRoutineDescriptor((ProcPtr)(userRoutine), uppgxUserWarningProcInfo, \
791 GetCurrentArchitecture())
805 #if !OPAQUE_UPP_TYPES
808 uppgxUserNoticeProcInfo = 0x000003C1
814 uppgxUserNoticeProcInfo,
815 GetCurrentArchitecture());
818 #define NewgxUserNoticeUPP(userRoutine) \
820 NewRoutineDescriptor((ProcPtr)(userRoutine), uppgxUserNoticeProcInfo, \
821 GetCurrentArchitecture())
835 #if !OPAQUE_UPP_TYPES
842 #define DisposegxUserErrorUPP(userUPP) DisposeRoutineDescriptor(userUPP)
856 #if !OPAQUE_UPP_TYPES
863 #define DisposegxUserWarningUPP(userUPP) DisposeRoutineDescriptor(userUPP)
877 #if !OPAQUE_UPP_TYPES
884 #define DisposegxUserNoticeUPP(userUPP) DisposeRoutineDescriptor(userUPP)
898 gxUserErrorUPP userUPP);
899 #if !OPAQUE_UPP_TYPES
902 gxUserErrorUPP userUPP)
904 CALL_TWO_PARAMETER_UPP(userUPP, uppgxUserErrorProcInfo, status, refcon);
907 #define InvokegxUserErrorUPP(status, refcon, userUPP) \
908 CALL_TWO_PARAMETER_UPP((userUPP), uppgxUserErrorProcInfo, (status), (refcon))
922 gxUserWarningUPP userUPP);
923 #if !OPAQUE_UPP_TYPES
926 gxUserWarningUPP userUPP)
928 CALL_TWO_PARAMETER_UPP(userUPP, uppgxUserWarningProcInfo, status, refcon);
931 #define InvokegxUserWarningUPP(status, refcon, userUPP) \
932 CALL_TWO_PARAMETER_UPP((userUPP), uppgxUserWarningProcInfo, (status), \
947 gxUserNoticeUPP userUPP);
948 #if !OPAQUE_UPP_TYPES
951 gxUserNoticeUPP userUPP)
953 CALL_TWO_PARAMETER_UPP(userUPP, uppgxUserNoticeProcInfo, status, refcon);
956 #define InvokegxUserNoticeUPP(status, refcon, userUPP) \
957 CALL_TWO_PARAMETER_UPP((userUPP), uppgxUserNoticeProcInfo, (status), (refcon))
963 #if CALL_NOT_IN_CARBON || OLDROUTINENAMES
965 #define NewgxUserErrorProc(userRoutine) NewgxUserErrorUPP(userRoutine)
966 #define NewgxUserWarningProc(userRoutine) NewgxUserWarningUPP(userRoutine)
967 #define NewgxUserNoticeProc(userRoutine) NewgxUserNoticeUPP(userRoutine)
968 #define CallgxUserErrorProc(userRoutine, status, refcon) \
969 InvokegxUserErrorUPP(status, refcon, userRoutine)
970 #define CallgxUserWarningProc(userRoutine, status, refcon) \
971 InvokegxUserWarningUPP(status, refcon, userRoutine)
972 #define CallgxUserNoticeProc(userRoutine, status, refcon) \
973 InvokegxUserNoticeUPP(status, refcon, userRoutine)
977 typedef gxUserWarningProcPtr gxUserWarningFunction;
978 typedef gxUserNoticeProcPtr gxUserNoticeFunction;
1025 gxApBlockValidation = 0x0100,
1036 typedef long gxValidationLevel;
1046 shape_inverse_fullType = 2,
1047 rectangle_zero_width = 3,
1048 rectangle_zero_height = 4,
1051 bitmap_zero_width = 7,
1052 bitmap_zero_height = 8,
1063 shape_no_enclosed_area = 14,
1064 shape_no_enclosed_pixels = 15,
1065 shape_very_small = 16,
1066 shape_very_large = 17,
1067 shape_contours_cancel = 18
1074 text_size_too_small = 20,
1076 start_cap_empty = 22,
1078 textFace_empty = 24,
1079 shape_primitive_empty = 25,
1080 shape_primitive_very_small = 26
1087 transfer_matrix_ignores_source = 28,
1088 transfer_matrix_ignores_device = 29,
1089 transfer_source_reject = 30,
1090 transfer_mode_ineffective = 31,
1091 colorSet_no_entries = 32,
1092 bitmap_colorSet_one_entry = 33
1099 transform_map_too_large = 35,
1100 transform_move_too_large = 36,
1101 transform_scale_too_large = 37,
1102 transform_rotate_too_large = 38,
1103 transform_perspective_too_large = 39,
1104 transform_skew_too_large = 40,
1105 transform_clip_no_intersection = 41,
1106 transform_clip_empty = 42,
1107 transform_no_viewPorts = 43
1114 viewPort_clip_empty = 45,
1115 viewPort_clip_no_intersection = 46,
1116 viewPort_scale_too_small = 47,
1117 viewPort_map_too_large = 48,
1118 viewPort_move_too_large = 49,
1119 viewPort_scale_too_large = 50,
1120 viewPort_rotate_too_large = 51,
1121 viewPort_perspective_too_large = 52,
1122 viewPort_skew_too_large = 53,
1123 viewPort_viewGroup_offscreen = 54
1130 viewDevice_scale_too_small = 56,
1131 viewDevice_map_too_large = 57,
1132 viewDevice_move_too_large = 58,
1133 viewDevice_scale_too_large = 59,
1134 viewDevice_rotate_too_large = 60,
1135 viewDevice_perspective_too_large = 61,
1136 viewDevice_skew_too_large = 62
1139 typedef long gxDrawError;
1140 #if CALL_NOT_IN_CARBON
1319 #if defined(__MWERKS__) && TARGET_CPU_68K
1323 #if PRAGMA_STRUCT_ALIGN
1324 #pragma options align = reset
1325 #elif PRAGMA_STRUCT_PACKPUSH
1327 #elif PRAGMA_STRUCT_PACK
1331 #ifdef PRAGMA_IMPORT_OFF
1334 #pragma import reset
Set up for compiler independent conditionals.
@ shape_passed_has_no_bounds
Definition: GXErrors.h:611
@ map_shape_out_of_range
Definition: GXErrors.h:521
long GXGetValidationError(char *procedureName, void **argument, long *argumentNumber)
void GXValidateViewPort(gxViewPort target)
gxDrawError GXGetShapeDrawError(gxShape source)
@ bad_textLayer_count
Definition: GXErrors.h:438
#define NewgxUserErrorUPP(userRoutine)
Definition: GXErrors.h:758
void GXValidateViewDevice(gxViewDevice target)
void GXValidateStyle(gxStyle target)
@ colorSet_wrong_type
Definition: GXErrors.h:486
@ functionality_unimplemented
Definition: GXErrors.h:197
@ shapeFill_not_allowed
Definition: GXErrors.h:229
@ parameter_out_of_range
Definition: GXErrors.h:204
@ illegal_font_storage_type
Definition: GXErrors.h:200
@ colorProfile_wrong_type
Definition: GXErrors.h:495
void GXValidateColorSet(gxColorSet target)
@ text_bounds_cache_wrong_size
Definition: GXErrors.h:397
@ pen_too_small
Definition: GXErrors.h:1073
void GXSetValidation(gxValidationLevel level)
@ bitmap_ptr_too_small
Definition: GXErrors.h:373
@ invalid_fillShape_ownerCount
Definition: GXErrors.h:338
void GXValidateGraphicsClient(gxGraphicsClient target)
@ shape_emptyType
Definition: GXErrors.h:1045
@ null_font_scaler_context
Definition: GXErrors.h:129
@ unable_to_traverse_open_contour_that_starts_or_ends_off_the_curve
Definition: GXErrors.h:582
@ new_shape_contains_invalid_data
Definition: GXErrors.h:572
@ viewDevice_clip_no_intersection
Definition: GXErrors.h:1129
@ number_of_contours_exceeds_implementation_limit
Definition: GXErrors.h:177
#define NewgxUserWarningUPP(userRoutine)
Definition: GXErrors.h:788
@ parameter_is_nil
Definition: GXErrors.h:155
@ bad_device_private_flags
Definition: GXErrors.h:475
void GXValidateTransform(gxTransform target)
@ bad_shape_in_picture
Definition: GXErrors.h:426
void GXValidateShape(gxShape target)
@ indirect_memory_block_too_small
Definition: GXErrors.h:345
@ transfer_equals_noMode
Definition: GXErrors.h:1086
@ invalid_matrix_flag
Definition: GXErrors.h:447
@ warning_stack_underflow
Definition: GXErrors.h:510
void GXValidateViewGroup(gxViewGroup target)
void DisposegxUserWarningUPP(gxUserWarningUPP userUPP)
@ shape_no_fill
Definition: GXErrors.h:1062
@ shape_access_not_allowed
Definition: GXErrors.h:250
@ illegal_type_for_shape
Definition: GXErrors.h:268
void InvokegxUserErrorUPP(gxGraphicsError status, long refcon, gxUserErrorUPP userUPP)
@ shape_cache_wrong_type
Definition: GXErrors.h:314
@ internal_error
Definition: GXErrors.h:107
@ invalid_bitImage_fileOffset
Definition: GXErrors.h:388
@ metrics_wrong_type
Definition: GXErrors.h:454
#define NewgxUserNoticeUPP(userRoutine)
Definition: GXErrors.h:818
@ no_owners
Definition: GXErrors.h:354
@ backing_free_parent_mismatch
Definition: GXErrors.h:503
@ out_of_memory
Definition: GXErrors.h:97
@ could_not_dispose_backing_store
Definition: GXErrors.h:115
@ glyph_run_count_negative
Definition: GXErrors.h:405
@ contour_out_of_range
Definition: GXErrors.h:537
void GXValidateInk(gxInk target)
@ point_does_not_intersect_port
Definition: GXErrors.h:598
@ gxLastAppNotice
Definition: GXErrors.h:91
@ gxFirstLibraryWarning
Definition: GXErrors.h:82
@ gxFirstAppWarning
Definition: GXErrors.h:84
@ gxLastLibraryError
Definition: GXErrors.h:73
@ gxLastLibraryNotice
Definition: GXErrors.h:89
@ gxLastAppError
Definition: GXErrors.h:75
@ gxFirstLibraryNotice
Definition: GXErrors.h:88
@ gxFirstLibraryError
Definition: GXErrors.h:72
@ gxFirstAppNotice
Definition: GXErrors.h:90
@ gxLastAppWarning
Definition: GXErrors.h:85
@ gxLastSystemNotice
Definition: GXErrors.h:87
@ gxLastLibraryWarning
Definition: GXErrors.h:83
@ gxFirstSystemNotice
Definition: GXErrors.h:86
@ gxFirstSystemWarning
Definition: GXErrors.h:76
@ gxFirstAppError
Definition: GXErrors.h:74
@ gxFirstFatalError
Definition: GXErrors.h:63
@ gxFirstResultOutOfRangeWarning
Definition: GXErrors.h:77
gxUserErrorProcPtr gxUserErrorFunction
Definition: GXErrors.h:976
void DisposegxUserNoticeUPP(gxUserNoticeUPP userUPP)
gxValidationLevel GXGetValidation(void)
@ gxCheckFontHeapValidation
Definition: GXErrors.h:1033
@ gxNoValidation
Definition: GXErrors.h:1015
@ gxPublicValidation
Definition: GXErrors.h:1016
@ gxCheckApHeapValidation
Definition: GXErrors.h:1031
@ gxFontHeapValidation
Definition: GXErrors.h:1030
@ gxApHeapValidation
Definition: GXErrors.h:1028
@ gxStructureValidation
Definition: GXErrors.h:1020
@ gxFontBlockValidation
Definition: GXErrors.h:1027
@ gxNoMemoryManagerValidation
Definition: GXErrors.h:1024
@ gxTypeValidation
Definition: GXErrors.h:1019
@ gxAllObjectValidation
Definition: GXErrors.h:1021
@ gxInternalValidation
Definition: GXErrors.h:1017
@ font_cannot_be_changed
Definition: GXErrors.h:122
@ font_scaler_no_output
Definition: GXErrors.h:554
@ character_substitution_took_place
Definition: GXErrors.h:560
@ unrecognized_stream_version
Definition: GXErrors.h:565
@ object_wrong_type
Definition: GXErrors.h:302
@ viewPort_disposed
Definition: GXErrors.h:1113
void GXValidateTag(gxTag target)
@ layout_run_length_negative
Definition: GXErrors.h:416
void GXValidateColorProfile(gxColorProfile target)
void InvokegxUserNoticeUPP(gxGraphicsNotice status, long refcon, gxUserNoticeUPP userUPP)
@ invalid_vector_count
Definition: GXErrors.h:366
void InvokegxUserWarningUPP(gxGraphicsWarning status, long refcon, gxUserWarningUPP userUPP)
void DisposegxUserErrorUPP(gxUserErrorUPP userUPP)
@ transform_scale_too_small
Definition: GXErrors.h:1098
QuickDraw GX object and constant definitions.
Mixed Mode Manager Interfaces.
void DisposeRoutineDescriptor(UniversalProcPtr theUPP)
#define STACK_UPP_TYPE(name)
Definition: MixedMode.h:734
UniversalProcPtr NewRoutineDescriptor(ProcPtr theProc, ProcInfoType theProcInfo, ISAType theISA)