GXErrors.h
上传用户:xjjlds
上传日期:2015-12-05
资源大小:22823k
文件大小:44k
源码类别:

多媒体编程

开发平台:

Visual C++

  1. /*
  2.      File:       GXErrors.h
  3.  
  4.      Contains:   QuickDraw GX error constants and debugging routines
  5.  
  6.      Version:    Technology: Quickdraw GX 1.1
  7.                  Release:    QuickTime 6.0.2
  8.  
  9.      Copyright:  (c) 1994-2001 by Apple Computer, Inc., all rights reserved.
  10.  
  11.      Bugs?:      For bug reports, consult the following page on
  12.                  the World Wide Web:
  13.  
  14.                      http://developer.apple.com/bugreporter/
  15.  
  16. */
  17. #ifndef __GXERRORS__
  18. #define __GXERRORS__
  19. #ifndef __CONDITIONALMACROS__
  20. #include "ConditionalMacros.h"
  21. #endif
  22. #ifndef __MIXEDMODE__
  23. #include "MixedMode.h"
  24. #endif
  25. #ifndef __GXTYPES__
  26. #include "GXTypes.h"
  27. #endif
  28. #if PRAGMA_ONCE
  29. #pragma once
  30. #endif
  31. #ifdef __cplusplus
  32. extern "C" {
  33. #endif
  34. #if PRAGMA_IMPORT
  35. #pragma import on
  36. #endif
  37. #if PRAGMA_STRUCT_ALIGN
  38.     #pragma options align=mac68k
  39. #elif PRAGMA_STRUCT_PACKPUSH
  40.     #pragma pack(push, 2)
  41. #elif PRAGMA_STRUCT_PACK
  42.     #pragma pack(2)
  43. #endif
  44. #if defined(__MWERKS__) && TARGET_CPU_68K
  45.     #pragma push
  46.     #pragma pointers_in_D0
  47. #endif
  48.  
  49. enum {
  50.     gxFirstSystemError          = -27999,                       /* 0xffff92a1 */
  51.     gxFirstFatalError           = -27999,
  52.     gxLastFatalError            = -27951,
  53.     gxFirstNonfatalError        = -27950,
  54.     gxFirstFontScalerError      = -27900,
  55.     gxLastFontScalerError       = -27851,
  56.     gxFirstParameterError       = -27850,
  57.     gxFirstImplementationLimitError = -27800,
  58.     gxFirstSystemDebuggingError = -27700,
  59.     gxLastSystemError           = -27000,                       /* 0xffff9688 */
  60.     gxFirstLibraryError         = 1048576L,                     /* 0x00100000 */
  61.     gxLastLibraryError          = 2097151L,                     /* 0x001fffff */
  62.     gxFirstAppError             = 2097152L,                     /* 0x00200000 */
  63.     gxLastAppError              = 4194303L,                     /* 0x003fffff */
  64.     gxFirstSystemWarning        = -26999,                       /* 0xffff9689 */
  65.     gxFirstResultOutOfRangeWarning = -26950,
  66.     gxFirstParameterOutOfRangeWarning = -26900,
  67.     gxFirstFontScalerWarning    = -26850,
  68.     gxFirstSystemDebuggingWarning = -26700,
  69.     gxLastSystemWarning         = -26000,                       /* 0xffff9a70 */
  70.     gxFirstLibraryWarning       = 4194304L,                     /* 0x00400000 */
  71.     gxLastLibraryWarning        = 5242879L,                     /* 0x004fffff */
  72.     gxFirstAppWarning           = 5242880L,                     /* 0x00500000 */
  73.     gxLastAppWarning            = 7340031L,                     /* 0x006fffff */
  74.     gxFirstSystemNotice         = -25999,                       /* 0xffff9a71 */
  75.     gxLastSystemNotice          = -25500,                       /* 0xffff9c64 */
  76.     gxFirstLibraryNotice        = 7340032L,                     /* 0x00700000 */
  77.     gxLastLibraryNotice         = 7602175L,                     /* 0x0073ffff */
  78.     gxFirstAppNotice            = 7602176L,                     /* 0x00740000 */
  79.     gxLastAppNotice             = 8388607L                      /* 0x007fffff */
  80. };
  81. enum {
  82.                                                                 /* truly fatal errors */
  83.     out_of_memory               = gxFirstFatalError,
  84.     internal_fatal_error        = gxFirstFatalError + 1,
  85.     no_outline_font_found       = gxFirstFatalError + 2,
  86.     not_enough_memory_for_graphics_client_heap = gxFirstFatalError + 3,
  87.     could_not_create_backing_store = gxFirstFatalError + 4,     /* internal errors */
  88.     internal_error              = gxFirstNonfatalError,
  89.     internal_font_error         = gxFirstNonfatalError + 1,
  90.     internal_layout_error       = gxFirstNonfatalError + 2,     /* recoverable errors */
  91.     could_not_dispose_backing_store = internal_layout_error + 2,
  92.     unflattening_interrupted_by_client = internal_layout_error + 3, /* font manager errors */
  93.     font_cannot_be_changed      = internal_layout_error + 4,
  94.     illegal_font_parameter      = internal_layout_error + 5,    /* gxFont scaler errors */
  95.     null_font_scaler_context    = gxFirstFontScalerError,
  96.     null_font_scaler_input      = gxFirstFontScalerError + 1,
  97.     invalid_font_scaler_context = gxFirstFontScalerError + 2,
  98.     invalid_font_scaler_input   = gxFirstFontScalerError + 3,
  99.     invalid_font_scaler_font_data = gxFirstFontScalerError + 4,
  100.     font_scaler_newblock_failed = gxFirstFontScalerError + 5,
  101.     font_scaler_getfonttable_failed = gxFirstFontScalerError + 6,
  102.     font_scaler_bitmap_allocation_failed = gxFirstFontScalerError + 7,
  103.     font_scaler_outline_allocation_failed = gxFirstFontScalerError + 8,
  104.     required_font_scaler_table_missing = gxFirstFontScalerError + 9,
  105.     unsupported_font_scaler_outline_format = gxFirstFontScalerError + 10,
  106.     unsupported_font_scaler_stream_format = gxFirstFontScalerError + 11,
  107.     unsupported_font_scaler_font_format = gxFirstFontScalerError + 12,
  108.     font_scaler_hinting_error   = gxFirstFontScalerError + 13,
  109.     font_scaler_rasterizer_error = gxFirstFontScalerError + 14,
  110.     font_scaler_internal_error  = gxFirstFontScalerError + 15,
  111.     font_scaler_invalid_matrix  = gxFirstFontScalerError + 16,
  112.     font_scaler_fixed_overflow  = gxFirstFontScalerError + 17,
  113.     font_scaler_api_version_mismatch = gxFirstFontScalerError + 18,
  114.     font_scaler_streaming_aborted = gxFirstFontScalerError + 19,
  115.     unknown_font_scaler_error   = gxFirstFontScalerError + 20,  /* bad parameters */
  116.     parameter_is_nil            = gxFirstParameterError,
  117.     shape_is_nil                = gxFirstParameterError + 1,
  118.     style_is_nil                = gxFirstParameterError + 2,
  119.     transform_is_nil            = gxFirstParameterError + 3,
  120.     ink_is_nil                  = gxFirstParameterError + 4,
  121.     transferMode_is_nil         = gxFirstParameterError + 5,
  122.     color_is_nil                = gxFirstParameterError + 6,
  123.     colorProfile_is_nil         = gxFirstParameterError + 7,
  124.     colorSet_is_nil             = gxFirstParameterError + 8,
  125.     spoolProcedure_is_nil       = gxFirstParameterError + 9,
  126.     tag_is_nil                  = gxFirstParameterError + 10,
  127.     type_is_nil                 = gxFirstParameterError + 11,
  128.     mapping_is_nil              = gxFirstParameterError + 12,
  129.     invalid_viewDevice_reference = gxFirstParameterError + 13,
  130.     invalid_viewGroup_reference = gxFirstParameterError + 14,
  131.     invalid_viewPort_reference  = gxFirstParameterError + 15,   /* implementation limits, these should be right before the debugging errors */
  132.     number_of_contours_exceeds_implementation_limit = gxFirstImplementationLimitError,
  133.     number_of_points_exceeds_implementation_limit = gxFirstImplementationLimitError + 1,
  134.     size_of_polygon_exceeds_implementation_limit = gxFirstImplementationLimitError + 2,
  135.     size_of_path_exceeds_implementation_limit = gxFirstImplementationLimitError + 3,
  136.     size_of_text_exceeds_implementation_limit = gxFirstImplementationLimitError + 4,
  137.     size_of_bitmap_exceeds_implementation_limit = gxFirstImplementationLimitError + 5,
  138.     number_of_colors_exceeds_implementation_limit = gxFirstImplementationLimitError + 6,
  139.     procedure_not_reentrant     = gxFirstImplementationLimitError + 7
  140. };
  141. enum {
  142.                                                                 /* internal debugging errors */
  143.     functionality_unimplemented = gxFirstSystemDebuggingError,
  144.     clip_to_frame_shape_unimplemented = gxFirstSystemDebuggingError + 1, /* font parameter debugging errors */
  145.     illegal_font_storage_type   = gxFirstSystemDebuggingError + 2,
  146.     illegal_font_storage_reference = gxFirstSystemDebuggingError + 3,
  147.     illegal_font_attributes     = gxFirstSystemDebuggingError + 4, /* parameter debugging errors */
  148.     parameter_out_of_range      = gxFirstSystemDebuggingError + 5,
  149.     inconsistent_parameters     = gxFirstSystemDebuggingError + 6,
  150.     index_is_less_than_zero     = gxFirstSystemDebuggingError + 7,
  151.     index_is_less_than_one      = gxFirstSystemDebuggingError + 8,
  152.     count_is_less_than_zero     = gxFirstSystemDebuggingError + 9,
  153.     count_is_less_than_one      = gxFirstSystemDebuggingError + 10,
  154.     contour_is_less_than_zero   = gxFirstSystemDebuggingError + 11,
  155.     length_is_less_than_zero    = gxFirstSystemDebuggingError + 12,
  156.     invalid_client_reference    = gxFirstSystemDebuggingError + 13,
  157.     invalid_graphics_heap_start_pointer = gxFirstSystemDebuggingError + 14,
  158.     invalid_nongraphic_globals_pointer = gxFirstSystemDebuggingError + 15,
  159.     colorSpace_out_of_range     = gxFirstSystemDebuggingError + 16,
  160.     pattern_lattice_out_of_range = gxFirstSystemDebuggingError + 17,
  161.     frequency_parameter_out_of_range = gxFirstSystemDebuggingError + 18,
  162.     tinting_parameter_out_of_range = gxFirstSystemDebuggingError + 19,
  163.     method_parameter_out_of_range = gxFirstSystemDebuggingError + 20,
  164.     space_may_not_be_indexed    = gxFirstSystemDebuggingError + 21,
  165.     glyph_index_too_small       = gxFirstSystemDebuggingError + 22,
  166.     no_glyphs_added_to_font     = gxFirstSystemDebuggingError + 23,
  167.     glyph_not_added_to_font     = gxFirstSystemDebuggingError + 24,
  168.     point_does_not_intersect_bitmap = gxFirstSystemDebuggingError + 25,
  169.     required_font_table_not_present = gxFirstSystemDebuggingError + 26,
  170.     unknown_font_table_format   = gxFirstSystemDebuggingError + 27, /* the styles encoding is not present in the font */
  171.     shapeFill_not_allowed       = gxFirstSystemDebuggingError + 28,
  172.     inverseFill_face_must_set_clipLayer_flag = gxFirstSystemDebuggingError + 29,
  173.     invalid_transferMode_colorSpace = gxFirstSystemDebuggingError + 30,
  174.     colorProfile_must_be_nil    = gxFirstSystemDebuggingError + 31,
  175.     bitmap_pixel_size_must_be_1 = gxFirstSystemDebuggingError + 32,
  176.     empty_shape_not_allowed     = gxFirstSystemDebuggingError + 33,
  177.     ignorePlatformShape_not_allowed = gxFirstSystemDebuggingError + 34,
  178.     nil_style_in_glyph_not_allowed = gxFirstSystemDebuggingError + 35,
  179.     complex_glyph_style_not_allowed = gxFirstSystemDebuggingError + 36,
  180.     invalid_mapping             = gxFirstSystemDebuggingError + 37,
  181.     cannot_set_item_shapes_to_nil = gxFirstSystemDebuggingError + 38,
  182.     cannot_use_original_item_shapes_when_growing_picture = gxFirstSystemDebuggingError + 39,
  183.     cannot_add_unspecified_new_glyphs = gxFirstSystemDebuggingError + 40,
  184.     cannot_dispose_locked_tag   = gxFirstSystemDebuggingError + 41,
  185.     cannot_dispose_locked_shape = gxFirstSystemDebuggingError + 42, /* restricted access */
  186.     shape_access_not_allowed    = gxFirstSystemDebuggingError + 43,
  187.     colorSet_access_restricted  = gxFirstSystemDebuggingError + 44,
  188.     colorProfile_access_restricted = gxFirstSystemDebuggingError + 45,
  189.     tag_access_restricted       = gxFirstSystemDebuggingError + 46,
  190.     viewDevice_access_restricted = gxFirstSystemDebuggingError + 47,
  191.     graphic_type_does_not_have_a_structure = gxFirstSystemDebuggingError + 48,
  192.     style_run_array_does_not_match_number_of_characters = gxFirstSystemDebuggingError + 49,
  193.     rectangles_cannot_be_inserted_into = gxFirstSystemDebuggingError + 50,
  194.     unknown_graphics_heap       = gxFirstSystemDebuggingError + 51,
  195.     graphics_routine_selector_is_obsolete = gxFirstSystemDebuggingError + 52,
  196.     cannot_set_graphics_client_memory_without_setting_size = gxFirstSystemDebuggingError + 53,
  197.     graphics_client_memory_too_small = gxFirstSystemDebuggingError + 54,
  198.     graphics_client_memory_is_already_allocated = gxFirstSystemDebuggingError + 55,
  199.     viewPort_is_a_window        = gxFirstSystemDebuggingError + 56, /* wrong type/bad reference */
  200.     illegal_type_for_shape      = gxFirstSystemDebuggingError + 57,
  201.     shape_does_not_contain_a_bitmap = gxFirstSystemDebuggingError + 58,
  202.     shape_does_not_contain_text = gxFirstSystemDebuggingError + 59,
  203.     picture_expected            = gxFirstSystemDebuggingError + 60,
  204.     bitmap_is_not_resizable     = gxFirstSystemDebuggingError + 61,
  205.     shape_may_not_be_a_bitmap   = gxFirstSystemDebuggingError + 62,
  206.     shape_may_not_be_a_picture  = gxFirstSystemDebuggingError + 63,
  207.     graphic_type_does_not_contain_points = gxFirstSystemDebuggingError + 64,
  208.     graphic_type_does_not_have_multiple_contours = gxFirstSystemDebuggingError + 65,
  209.     graphic_type_cannot_be_mapped = gxFirstSystemDebuggingError + 66,
  210.     graphic_type_cannot_be_moved = gxFirstSystemDebuggingError + 67,
  211.     graphic_type_cannot_be_scaled = gxFirstSystemDebuggingError + 68,
  212.     graphic_type_cannot_be_rotated = gxFirstSystemDebuggingError + 69,
  213.     graphic_type_cannot_be_skewed = gxFirstSystemDebuggingError + 70,
  214.     graphic_type_cannot_be_reset = gxFirstSystemDebuggingError + 71,
  215.     graphic_type_cannot_be_dashed = gxFirstSystemDebuggingError + 72,
  216.     graphic_type_cannot_be_reduced = gxFirstSystemDebuggingError + 73,
  217.     graphic_type_cannot_be_inset = gxFirstSystemDebuggingError + 74,
  218.     shape_cannot_be_inverted    = gxFirstSystemDebuggingError + 75,
  219.     shape_does_not_have_area    = gxFirstSystemDebuggingError + 76,
  220.     shape_does_not_have_length  = gxFirstSystemDebuggingError + 77,
  221.     first_glyph_advance_must_be_absolute = gxFirstSystemDebuggingError + 78,
  222.     picture_cannot_contain_itself = gxFirstSystemDebuggingError + 79,
  223.     viewPort_cannot_contain_itself = gxFirstSystemDebuggingError + 80,
  224.     cannot_set_unique_items_attribute_when_picture_contains_items = gxFirstSystemDebuggingError + 81,
  225.     layer_style_cannot_contain_a_face = gxFirstSystemDebuggingError + 82,
  226.     layer_glyph_shape_cannot_contain_nil_styles = gxFirstSystemDebuggingError + 83, /* validation errors */
  227.     object_wrong_type           = gxFirstSystemDebuggingError + 84,
  228.     shape_wrong_type            = gxFirstSystemDebuggingError + 85,
  229.     style_wrong_type            = gxFirstSystemDebuggingError + 86,
  230.     ink_wrong_type              = gxFirstSystemDebuggingError + 87,
  231.     transform_wrong_type        = gxFirstSystemDebuggingError + 88,
  232.     device_wrong_type           = gxFirstSystemDebuggingError + 89,
  233.     port_wrong_type             = gxFirstSystemDebuggingError + 90, /* validation cache errors */
  234.     shape_cache_wrong_type      = gxFirstSystemDebuggingError + 91,
  235.     style_cache_wrong_type      = gxFirstSystemDebuggingError + 92,
  236.     ink_cache_wrong_type        = gxFirstSystemDebuggingError + 93,
  237.     transform_cache_wrong_type  = gxFirstSystemDebuggingError + 94,
  238.     port_cache_wrong_type       = gxFirstSystemDebuggingError + 95,
  239.     shape_cache_parent_mismatch = gxFirstSystemDebuggingError + 96,
  240.     style_cache_parent_mismatch = gxFirstSystemDebuggingError + 97,
  241.     ink_cache_parent_mismatch   = gxFirstSystemDebuggingError + 98,
  242.     transform_cache_parent_mismatch = gxFirstSystemDebuggingError + 99,
  243.     port_cache_parent_mismatch  = gxFirstSystemDebuggingError + 100,
  244.     invalid_shape_cache_port    = gxFirstSystemDebuggingError + 101,
  245.     invalid_shape_cache_device  = gxFirstSystemDebuggingError + 102,
  246.     invalid_ink_cache_port      = gxFirstSystemDebuggingError + 103,
  247.     invalid_ink_cache_device    = gxFirstSystemDebuggingError + 104,
  248.     invalid_style_cache_port    = gxFirstSystemDebuggingError + 105,
  249.     invalid_style_cache_device  = gxFirstSystemDebuggingError + 106,
  250.     invalid_transform_cache_port = gxFirstSystemDebuggingError + 107,
  251.     invalid_transform_cache_device = gxFirstSystemDebuggingError + 108,
  252.     recursive_caches            = gxFirstSystemDebuggingError + 109, /* validation shape cache errors */
  253.     invalid_fillShape_ownerCount = gxFirstSystemDebuggingError + 110,
  254.     recursive_fillShapes        = gxFirstSystemDebuggingError + 111, /* validation memory block errors */
  255.     indirect_memory_block_too_small = gxFirstSystemDebuggingError + 112,
  256.     indirect_memory_block_too_large = gxFirstSystemDebuggingError + 113,
  257.     unexpected_nil_pointer      = gxFirstSystemDebuggingError + 114,
  258.     bad_address                 = gxFirstSystemDebuggingError + 115, /* validation object errors */
  259.     no_owners                   = gxFirstSystemDebuggingError + 116,
  260.     invalid_pointer             = gxFirstSystemDebuggingError + 117,
  261.     invalid_seed                = gxFirstSystemDebuggingError + 118,
  262.     invalid_frame_seed          = gxFirstSystemDebuggingError + 119,
  263.     invalid_text_seed           = gxFirstSystemDebuggingError + 120,
  264.     invalid_draw_seed           = gxFirstSystemDebuggingError + 121,
  265.     bad_private_flags           = gxFirstSystemDebuggingError + 122, /* validation path and polygon errors */
  266.     invalid_vector_count        = gxFirstSystemDebuggingError + 123,
  267.     invalid_contour_count       = gxFirstSystemDebuggingError + 124, /* validation bitmap errors */
  268.     bitmap_ptr_too_small        = gxFirstSystemDebuggingError + 125,
  269.     bitmap_ptr_not_aligned      = gxFirstSystemDebuggingError + 126,
  270.     bitmap_rowBytes_negative    = gxFirstSystemDebuggingError + 127,
  271.     bitmap_width_negative       = gxFirstSystemDebuggingError + 128,
  272.     bitmap_height_negative      = gxFirstSystemDebuggingError + 129,
  273.     invalid_pixelSize           = gxFirstSystemDebuggingError + 130,
  274.     bitmap_rowBytes_too_small   = gxFirstSystemDebuggingError + 131,
  275.     bitmap_rowBytes_not_aligned = gxFirstSystemDebuggingError + 132,
  276.     bitmap_rowBytes_must_be_specified_for_user_image_buffer = gxFirstSystemDebuggingError + 133, /* validation bitmap image errors */
  277.     invalid_bitImage_fileOffset = gxFirstSystemDebuggingError + 134,
  278.     invalid_bitImage_owners     = gxFirstSystemDebuggingError + 135,
  279.     invalid_bitImage_rowBytes   = gxFirstSystemDebuggingError + 136,
  280.     invalid_bitImage_internal_flag = gxFirstSystemDebuggingError + 137, /* validation text errors */
  281.     text_bounds_cache_wrong_size = gxFirstSystemDebuggingError + 138,
  282.     text_metrics_cache_wrong_size = gxFirstSystemDebuggingError + 139,
  283.     text_index_cache_wrong_size = gxFirstSystemDebuggingError + 140, /* validation glyph errors */
  284.     glyph_run_count_negative    = gxFirstSystemDebuggingError + 141,
  285.     glyph_run_count_zero        = gxFirstSystemDebuggingError + 142,
  286.     glyph_run_counts_do_not_sum_to_character_count = gxFirstSystemDebuggingError + 143,
  287.     glyph_first_advance_bit_set_not_allowed = gxFirstSystemDebuggingError + 144,
  288.     glyph_tangent_vectors_both_zero = gxFirstSystemDebuggingError + 145, /* validation layout errors */
  289.     layout_run_length_negative  = gxFirstSystemDebuggingError + 146,
  290.     layout_run_length_zero      = gxFirstSystemDebuggingError + 147,
  291.     layout_run_level_negative   = gxFirstSystemDebuggingError + 148,
  292.     layout_run_lengths_do_not_sum_to_text_length = gxFirstSystemDebuggingError + 149, /* validation picture errors */
  293.     bad_shape_in_picture        = gxFirstSystemDebuggingError + 150,
  294.     bad_style_in_picture        = gxFirstSystemDebuggingError + 151,
  295.     bad_ink_in_picture          = gxFirstSystemDebuggingError + 152,
  296.     bad_transform_in_picture    = gxFirstSystemDebuggingError + 153,
  297.     bad_shape_cache_in_picture  = gxFirstSystemDebuggingError + 154,
  298.     bad_seed_in_picture         = gxFirstSystemDebuggingError + 155,
  299.     invalid_picture_count       = gxFirstSystemDebuggingError + 156, /* validation text face errors */
  300.     bad_textLayer_count         = gxFirstSystemDebuggingError + 157,
  301.     bad_fillType_in_textFace    = gxFirstSystemDebuggingError + 158,
  302.     bad_style_in_textFace       = gxFirstSystemDebuggingError + 159,
  303.     bad_transform_in_textFace   = gxFirstSystemDebuggingError + 160, /* validation transform errors */
  304.     invalid_matrix_flag         = gxFirstSystemDebuggingError + 161,
  305.     transform_clip_missing      = gxFirstSystemDebuggingError + 162, /* validation font cache errors */
  306.     metrics_wrong_type          = gxFirstSystemDebuggingError + 163,
  307.     metrics_point_size_probably_bad = gxFirstSystemDebuggingError + 164,
  308.     scalar_block_wrong_type     = gxFirstSystemDebuggingError + 165,
  309.     scalar_block_parent_mismatch = gxFirstSystemDebuggingError + 166,
  310.     scalar_block_too_small      = gxFirstSystemDebuggingError + 167,
  311.     scalar_block_too_large      = gxFirstSystemDebuggingError + 168,
  312.     invalid_metrics_range       = gxFirstSystemDebuggingError + 169,
  313.     invalid_metrics_flags       = gxFirstSystemDebuggingError + 170,
  314.     metrics_maxWidth_probably_bad = gxFirstSystemDebuggingError + 171,
  315.     font_wrong_type             = gxFirstSystemDebuggingError + 172,
  316.     font_wrong_size             = gxFirstSystemDebuggingError + 173,
  317.     invalid_font_platform       = gxFirstSystemDebuggingError + 174,
  318.     invalid_lookup_range        = gxFirstSystemDebuggingError + 175,
  319.     invalid_lookup_platform     = gxFirstSystemDebuggingError + 176,
  320.     font_not_in_font_list       = gxFirstSystemDebuggingError + 177,
  321.     metrics_not_in_metrics_list = gxFirstSystemDebuggingError + 178, /* validation view device errors */
  322.     bad_device_private_flags    = gxFirstSystemDebuggingError + 179,
  323.     bad_device_attributes       = gxFirstSystemDebuggingError + 180,
  324.     invalid_device_number       = gxFirstSystemDebuggingError + 181,
  325.     invalid_device_viewGroup    = gxFirstSystemDebuggingError + 182,
  326.     invalid_device_bounds       = gxFirstSystemDebuggingError + 183,
  327.     invalid_bitmap_in_device    = gxFirstSystemDebuggingError + 184, /* validation color set errors */
  328.     colorSet_wrong_type         = gxFirstSystemDebuggingError + 185,
  329.     invalid_colorSet_viewDevice_owners = gxFirstSystemDebuggingError + 186,
  330.     invalid_colorSet_colorSpace = gxFirstSystemDebuggingError + 187,
  331.     invalid_colorSet_count      = gxFirstSystemDebuggingError + 188, /* validation color profile errors */
  332.     colorProfile_wrong_type     = gxFirstSystemDebuggingError + 189,
  333.     invalid_colorProfile_flags  = gxFirstSystemDebuggingError + 190,
  334.     invalid_colorProfile_response_count = gxFirstSystemDebuggingError + 191, /* validation internal backing store errors */
  335.     backing_free_parent_mismatch = gxFirstSystemDebuggingError + 192,
  336.     backing_store_parent_mismatch = gxFirstSystemDebuggingError + 193
  337. };
  338. enum {
  339.                                                                 /* warnings about warnings */
  340.     warning_stack_underflow     = gxFirstSystemWarning,
  341.     warning_stack_overflow      = gxFirstSystemWarning + 1,
  342.     notice_stack_underflow      = gxFirstSystemWarning + 2,
  343.     notice_stack_overflow       = gxFirstSystemWarning + 3,
  344.     about_to_grow_heap          = gxFirstSystemWarning + 4,
  345.     about_to_unload_objects     = gxFirstSystemWarning + 5,     /* result went out of range */
  346.     map_shape_out_of_range      = gxFirstResultOutOfRangeWarning,
  347.     move_shape_out_of_range     = gxFirstResultOutOfRangeWarning + 1,
  348.     scale_shape_out_of_range    = gxFirstResultOutOfRangeWarning + 2,
  349.     rotate_shape_out_of_range   = gxFirstResultOutOfRangeWarning + 3,
  350.     skew_shape_out_of_range     = gxFirstResultOutOfRangeWarning + 4,
  351.     map_transform_out_of_range  = gxFirstResultOutOfRangeWarning + 5,
  352.     move_transform_out_of_range = gxFirstResultOutOfRangeWarning + 6,
  353.     scale_transform_out_of_range = gxFirstResultOutOfRangeWarning + 7,
  354.     rotate_transform_out_of_range = gxFirstResultOutOfRangeWarning + 8,
  355.     skew_transform_out_of_range = gxFirstResultOutOfRangeWarning + 9,
  356.     map_points_out_of_range     = gxFirstResultOutOfRangeWarning + 10, /* gave a parameter out of range */
  357.     contour_out_of_range        = gxFirstParameterOutOfRangeWarning,
  358.     index_out_of_range_in_contour = gxFirstParameterOutOfRangeWarning + 1,
  359.     picture_index_out_of_range  = gxFirstParameterOutOfRangeWarning + 2,
  360.     color_index_requested_not_found = gxFirstParameterOutOfRangeWarning + 3,
  361.     colorSet_index_out_of_range = gxFirstParameterOutOfRangeWarning + 4,
  362.     index_out_of_range          = gxFirstParameterOutOfRangeWarning + 5,
  363.     count_out_of_range          = gxFirstParameterOutOfRangeWarning + 6,
  364.     length_out_of_range         = gxFirstParameterOutOfRangeWarning + 7,
  365.     font_table_index_out_of_range = gxFirstParameterOutOfRangeWarning + 8,
  366.     font_glyph_index_out_of_range = gxFirstParameterOutOfRangeWarning + 9,
  367.     point_out_of_range          = gxFirstParameterOutOfRangeWarning + 10,
  368.     profile_response_out_of_range = gxFirstParameterOutOfRangeWarning + 11, /* gxFont scaler warnings */
  369.     font_scaler_no_output       = gxFirstFontScalerWarning,
  370.     font_scaler_fake_metrics    = gxFirstFontScalerWarning + 1,
  371.     font_scaler_fake_linespacing = gxFirstFontScalerWarning + 2,
  372.     font_scaler_glyph_substitution = gxFirstFontScalerWarning + 3,
  373.     font_scaler_no_kerning_applied = gxFirstFontScalerWarning + 4, /* might not be what you expected */
  374.     character_substitution_took_place = gxFirstFontScalerWarning + 5,
  375.     unable_to_get_bounds_on_multiple_devices = gxFirstFontScalerWarning + 6,
  376.     font_language_not_found     = gxFirstFontScalerWarning + 7,
  377.     font_not_found_during_unflattening = gxFirstFontScalerWarning + 8, /*storage */
  378.     unrecognized_stream_version = gxFirstFontScalerWarning + 9,
  379.     bad_data_in_stream          = gxFirstFontScalerWarning + 10
  380. };
  381. enum {
  382.                                                                 /* nonsense data */
  383.     new_shape_contains_invalid_data = gxFirstSystemDebuggingWarning,
  384.     new_tag_contains_invalid_data = gxFirstSystemDebuggingWarning + 1,
  385.     extra_data_passed_was_ignored = gxFirstSystemDebuggingWarning + 2,
  386.     font_table_not_found        = gxFirstSystemDebuggingWarning + 3,
  387.     font_name_not_found         = gxFirstSystemDebuggingWarning + 4, /* doesn't make sense to do */
  388.     unable_to_traverse_open_contour_that_starts_or_ends_off_the_curve = gxFirstSystemDebuggingWarning + 5,
  389.     unable_to_draw_open_contour_that_starts_or_ends_off_the_curve = gxFirstSystemDebuggingWarning + 6,
  390.     cannot_dispose_default_shape = gxFirstSystemDebuggingWarning + 7,
  391.     cannot_dispose_default_style = gxFirstSystemDebuggingWarning + 8,
  392.     cannot_dispose_default_ink  = gxFirstSystemDebuggingWarning + 9,
  393.     cannot_dispose_default_transform = gxFirstSystemDebuggingWarning + 10,
  394.     cannot_dispose_default_colorProfile = gxFirstSystemDebuggingWarning + 11,
  395.     cannot_dispose_default_colorSet = gxFirstSystemDebuggingWarning + 12,
  396.     shape_direct_attribute_not_set = gxFirstSystemDebuggingWarning + 13, /* couldn't find what you were looking for */
  397.     point_does_not_intersect_port = gxFirstSystemDebuggingWarning + 14,
  398.     cannot_dispose_non_font     = gxFirstSystemDebuggingWarning + 15,
  399.     face_override_style_font_must_match_style = gxFirstSystemDebuggingWarning + 16,
  400.     union_of_area_and_length_returns_area_only = gxFirstSystemDebuggingWarning + 17,
  401.     insufficient_coordinate_space_for_new_device = gxFirstSystemDebuggingWarning + 18, /* other */
  402.     shape_passed_has_no_bounds  = gxFirstSystemDebuggingWarning + 19,
  403.     tags_of_type_flst_removed   = gxFirstSystemDebuggingWarning + 20,
  404.     translator_not_installed_on_this_grafport = gxFirstSystemDebuggingWarning + 21
  405. };
  406. enum {
  407.     parameters_have_no_effect   = gxFirstSystemNotice,
  408.     attributes_already_set      = gxFirstSystemNotice + 1,
  409.     caps_already_set            = gxFirstSystemNotice + 2,
  410.     clip_already_set            = gxFirstSystemNotice + 3,
  411.     color_already_set           = gxFirstSystemNotice + 4,
  412.     curve_error_already_set     = gxFirstSystemNotice + 5,
  413.     dash_already_set            = gxFirstSystemNotice + 6,
  414.     default_colorProfile_already_set = gxFirstSystemNotice + 7,
  415.     default_ink_already_set     = gxFirstSystemNotice + 8,
  416.     default_transform_already_set = gxFirstSystemNotice + 9,
  417.     default_shape_already_set   = gxFirstSystemNotice + 10,
  418.     default_style_already_set   = gxFirstSystemNotice + 11,
  419.     dither_already_set          = gxFirstSystemNotice + 12,
  420.     encoding_already_set        = gxFirstSystemNotice + 13,
  421.     face_already_set            = gxFirstSystemNotice + 14,
  422.     fill_already_set            = gxFirstSystemNotice + 15,
  423.     font_already_set            = gxFirstSystemNotice + 16,
  424.     font_variations_already_set = gxFirstSystemNotice + 17,
  425.     glyph_positions_are_already_set = gxFirstSystemNotice + 18,
  426.     glyph_tangents_are_already_set = gxFirstSystemNotice + 19,
  427.     halftone_already_set        = gxFirstSystemNotice + 20,
  428.     hit_test_already_set        = gxFirstSystemNotice + 21,
  429.     ink_already_set             = gxFirstSystemNotice + 22,
  430.     join_already_set            = gxFirstSystemNotice + 23,
  431.     justification_already_set   = gxFirstSystemNotice + 24,
  432.     mapping_already_set         = gxFirstSystemNotice + 25,
  433.     pattern_already_set         = gxFirstSystemNotice + 26,
  434.     pen_already_set             = gxFirstSystemNotice + 27,
  435.     style_already_set           = gxFirstSystemNotice + 28,
  436.     tag_already_set             = gxFirstSystemNotice + 29,
  437.     text_attributes_already_set = gxFirstSystemNotice + 30,
  438.     text_size_already_set       = gxFirstSystemNotice + 31,
  439.     transfer_already_set        = gxFirstSystemNotice + 32,
  440.     translator_already_installed_on_this_grafport = gxFirstSystemNotice + 33,
  441.     transform_already_set       = gxFirstSystemNotice + 34,
  442.     type_already_set            = gxFirstSystemNotice + 35,
  443.     validation_level_already_set = gxFirstSystemNotice + 36,
  444.     viewPorts_already_set       = gxFirstSystemNotice + 37,
  445.     viewPort_already_in_viewGroup = gxFirstSystemNotice + 38,
  446.     viewDevice_already_in_viewGroup = gxFirstSystemNotice + 39,
  447.     geometry_unaffected         = gxFirstSystemNotice + 40,
  448.     mapping_unaffected          = gxFirstSystemNotice + 41,
  449.     tags_in_shape_ignored       = gxFirstSystemNotice + 42,
  450.     shape_already_in_primitive_form = gxFirstSystemNotice + 43,
  451.     shape_already_in_simple_form = gxFirstSystemNotice + 44,
  452.     shape_already_broken        = gxFirstSystemNotice + 45,
  453.     shape_already_joined        = gxFirstSystemNotice + 46,
  454.     cache_already_cleared       = gxFirstSystemNotice + 47,
  455.     shape_not_disposed          = gxFirstSystemNotice + 48,
  456.     style_not_disposed          = gxFirstSystemNotice + 49,
  457.     ink_not_disposed            = gxFirstSystemNotice + 50,
  458.     transform_not_disposed      = gxFirstSystemNotice + 51,
  459.     colorSet_not_disposed       = gxFirstSystemNotice + 52,
  460.     colorProfile_not_disposed   = gxFirstSystemNotice + 53,
  461.     font_not_disposed           = gxFirstSystemNotice + 54,
  462.     glyph_tangents_have_no_effect = gxFirstSystemNotice + 55,
  463.     glyph_positions_determined_by_advance = gxFirstSystemNotice + 56,
  464.     transform_viewPorts_already_set = gxFirstSystemNotice + 57,
  465.     directShape_attribute_set_as_side_effect = gxFirstSystemNotice + 58,
  466.     lockShape_called_as_side_effect = gxFirstSystemNotice + 59,
  467.     lockTag_called_as_side_effect = gxFirstSystemNotice + 60,
  468.     shapes_unlocked_as_side_effect = gxFirstSystemNotice + 61,
  469.     shape_not_locked            = gxFirstSystemNotice + 62,
  470.     tag_not_locked              = gxFirstSystemNotice + 63,
  471.     profile_not_locked          = tag_not_locked,
  472.     lockProfile_called_as_side_effect = lockTag_called_as_side_effect,
  473.     disposed_dead_caches        = gxFirstSystemNotice + 64,
  474.     disposed_live_caches        = gxFirstSystemNotice + 65,
  475.     low_on_memory               = gxFirstSystemNotice + 66,
  476.     very_low_on_memory          = gxFirstSystemNotice + 67,
  477.     transform_references_disposed_viewPort = gxFirstSystemNotice + 68
  478. };
  479. typedef long                            gxGraphicsError;
  480. typedef long                            gxGraphicsWarning;
  481. typedef long                            gxGraphicsNotice;
  482. typedef CALLBACK_API_C( void , gxUserErrorProcPtr )(gxGraphicsError status, long refcon);
  483. typedef CALLBACK_API_C( void , gxUserWarningProcPtr )(gxGraphicsWarning status, long refcon);
  484. typedef CALLBACK_API_C( void , gxUserNoticeProcPtr )(gxGraphicsNotice status, long refcon);
  485. typedef STACK_UPP_TYPE(gxUserErrorProcPtr)                      gxUserErrorUPP;
  486. typedef STACK_UPP_TYPE(gxUserWarningProcPtr)                    gxUserWarningUPP;
  487. typedef STACK_UPP_TYPE(gxUserNoticeProcPtr)                     gxUserNoticeUPP;
  488. #if OPAQUE_UPP_TYPES
  489. #if CALL_NOT_IN_CARBON
  490.     EXTERN_API(gxUserErrorUPP)
  491.     NewgxUserErrorUPP              (gxUserErrorProcPtr      userRoutine);
  492.     EXTERN_API(gxUserWarningUPP)
  493.     NewgxUserWarningUPP            (gxUserWarningProcPtr    userRoutine);
  494.     EXTERN_API(gxUserNoticeUPP)
  495.     NewgxUserNoticeUPP             (gxUserNoticeProcPtr     userRoutine);
  496.     EXTERN_API(void)
  497.     DisposegxUserErrorUPP          (gxUserErrorUPP          userUPP);
  498.     EXTERN_API(void)
  499.     DisposegxUserWarningUPP        (gxUserWarningUPP        userUPP);
  500.     EXTERN_API(void)
  501.     DisposegxUserNoticeUPP         (gxUserNoticeUPP         userUPP);
  502.     EXTERN_API(void)
  503.     InvokegxUserErrorUPP           (gxGraphicsError         status,
  504.                                     long                    refcon,
  505.                                     gxUserErrorUPP          userUPP);
  506.     EXTERN_API(void)
  507.     InvokegxUserWarningUPP         (gxGraphicsWarning       status,
  508.                                     long                    refcon,
  509.                                     gxUserWarningUPP        userUPP);
  510.     EXTERN_API(void)
  511.     InvokegxUserNoticeUPP          (gxGraphicsNotice        status,
  512.                                     long                    refcon,
  513.                                     gxUserNoticeUPP         userUPP);
  514. #endif  /* CALL_NOT_IN_CARBON */
  515. #else
  516.     enum { uppgxUserErrorProcInfo = 0x000003C1 };                   /* no_return_value Func(4_bytes, 4_bytes) */
  517.     enum { uppgxUserWarningProcInfo = 0x000003C1 };                 /* no_return_value Func(4_bytes, 4_bytes) */
  518.     enum { uppgxUserNoticeProcInfo = 0x000003C1 };                  /* no_return_value Func(4_bytes, 4_bytes) */
  519.     #define NewgxUserErrorUPP(userRoutine)                          (gxUserErrorUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppgxUserErrorProcInfo, GetCurrentArchitecture())
  520.     #define NewgxUserWarningUPP(userRoutine)                        (gxUserWarningUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppgxUserWarningProcInfo, GetCurrentArchitecture())
  521.     #define NewgxUserNoticeUPP(userRoutine)                         (gxUserNoticeUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppgxUserNoticeProcInfo, GetCurrentArchitecture())
  522.     #define DisposegxUserErrorUPP(userUPP)                          DisposeRoutineDescriptor(userUPP)
  523.     #define DisposegxUserWarningUPP(userUPP)                        DisposeRoutineDescriptor(userUPP)
  524.     #define DisposegxUserNoticeUPP(userUPP)                         DisposeRoutineDescriptor(userUPP)
  525.     #define InvokegxUserErrorUPP(status, refcon, userUPP)           CALL_TWO_PARAMETER_UPP((userUPP), uppgxUserErrorProcInfo, (status), (refcon))
  526.     #define InvokegxUserWarningUPP(status, refcon, userUPP)         CALL_TWO_PARAMETER_UPP((userUPP), uppgxUserWarningProcInfo, (status), (refcon))
  527.     #define InvokegxUserNoticeUPP(status, refcon, userUPP)          CALL_TWO_PARAMETER_UPP((userUPP), uppgxUserNoticeProcInfo, (status), (refcon))
  528. #endif
  529. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  530. #define NewgxUserErrorProc(userRoutine)                         NewgxUserErrorUPP(userRoutine)
  531. #define NewgxUserWarningProc(userRoutine)                       NewgxUserWarningUPP(userRoutine)
  532. #define NewgxUserNoticeProc(userRoutine)                        NewgxUserNoticeUPP(userRoutine)
  533. #define CallgxUserErrorProc(userRoutine, status, refcon)        InvokegxUserErrorUPP(status, refcon, userRoutine)
  534. #define CallgxUserWarningProc(userRoutine, status, refcon)      InvokegxUserWarningUPP(status, refcon, userRoutine)
  535. #define CallgxUserNoticeProc(userRoutine, status, refcon)       InvokegxUserNoticeUPP(status, refcon, userRoutine)
  536. typedef gxUserErrorProcPtr              gxUserErrorFunction;
  537. typedef gxUserWarningProcPtr            gxUserWarningFunction;
  538. typedef gxUserNoticeProcPtr             gxUserNoticeFunction;
  539. enum {
  540.     common_colors_not_initialized = gxFirstLibraryError,
  541.     no_open_picture             = gxFirstLibraryError + 1,
  542.     picture_already_open        = gxFirstLibraryError + 2,
  543.     no_open_poly                = gxFirstLibraryError + 3,
  544.     poly_already_open           = gxFirstLibraryError + 4,
  545.     no_open_region              = gxFirstLibraryError + 5,
  546.     region_already_open         = gxFirstLibraryError + 6,
  547.     no_active_picture           = gxFirstLibraryError + 7
  548. };
  549. enum {
  550.     no_picture_drawn            = gxFirstLibraryWarning,
  551.     polygons_have_different_size_contours = gxFirstLibraryWarning + 1,
  552.     graphic_type_cannot_be_specifed_by_four_values = gxFirstLibraryWarning + 2,
  553.     graphic_type_cannot_be_specifed_by_six_values = gxFirstLibraryWarning + 3,
  554.     point_expected              = gxFirstLibraryWarning + 4,
  555.     line_or_rectangle_expected  = gxFirstLibraryWarning + 5,
  556.     curve_expected              = gxFirstLibraryWarning + 6,
  557.     graphic_type_does_not_contain_control_bits = gxFirstLibraryWarning + 7,
  558.     request_exceeds_available_data = gxFirstLibraryWarning + 8,
  559.     extra_data_unread           = gxFirstLibraryWarning + 9,
  560.     no_variable_length_user_data_saved = gxFirstLibraryWarning + 10
  561. };
  562. enum {
  563.     zero_length_string_passed   = gxFirstLibraryNotice
  564. };
  565. enum {
  566.                                                                 /* These levels tell how to validate routines.  Choose one. */
  567.     gxNoValidation              = 0x00,                         /* no validation */
  568.     gxPublicValidation          = 0x01,                         /* check parameters to public routines */
  569.     gxInternalValidation        = 0x02,                         /* check parameters to internal routines */
  570.                                                                 /* These levels tell how to validate types.  Choose one. */
  571.     gxTypeValidation            = 0x00,                         /* check types of objects */
  572.     gxStructureValidation       = 0x10,                         /* check fields of private structures */
  573.     gxAllObjectValidation       = 0x20,                         /* check every object over every call */
  574.                                                                 /* These levels tell how to validate memory manager blocks.  Choose any combination. */
  575.     gxNoMemoryManagerValidation = 0x0000,
  576.     gxApBlockValidation         = 0x0100,                       /* check the relevant block structures after each memory mgr. call */
  577.     gxFontBlockValidation       = 0x0200,                       /* check the system gxHeap as well */
  578.     gxApHeapValidation          = 0x0400,                       /* check the memory manager's gxHeap after every mem. call */
  579.     gxFontHeapValidation        = 0x0800,                       /* check the system gxHeap as well */
  580.     gxCheckApHeapValidation     = 0x1000,                       /* check the memory manager's gxHeap if checking routine parameters */
  581.     gxCheckFontHeapValidation   = 0x2000                        /* check the system gxHeap as well */
  582. };
  583. typedef long                            gxValidationLevel;
  584. enum {
  585.     no_draw_error               = 0,                            /* gxShape type errors */
  586.     shape_emptyType             = 1,
  587.     shape_inverse_fullType      = 2,
  588.     rectangle_zero_width        = 3,
  589.     rectangle_zero_height       = 4,
  590.     polygon_empty               = 5,
  591.     path_empty                  = 6,
  592.     bitmap_zero_width           = 7,
  593.     bitmap_zero_height          = 8,
  594.     text_empty                  = 9,
  595.     glyph_empty                 = 10,
  596.     layout_empty                = 11,
  597.     picture_empty               = 12,                           /* general gxShape errors */
  598.     shape_no_fill               = 13,
  599.     shape_no_enclosed_area      = 14,
  600.     shape_no_enclosed_pixels    = 15,
  601.     shape_very_small            = 16,
  602.     shape_very_large            = 17,
  603.     shape_contours_cancel       = 18,                           /* gxStyle errors */
  604.     pen_too_small               = 19,
  605.     text_size_too_small         = 20,
  606.     dash_empty                  = 21,
  607.     start_cap_empty             = 22,
  608.     pattern_empty               = 23,
  609.     textFace_empty              = 24,
  610.     shape_primitive_empty       = 25,
  611.     shape_primitive_very_small  = 26,                           /* gxInk errors */
  612.     transfer_equals_noMode      = 27,
  613.     transfer_matrix_ignores_source = 28,
  614.     transfer_matrix_ignores_device = 29,
  615.     transfer_source_reject      = 30,
  616.     transfer_mode_ineffective   = 31,
  617.     colorSet_no_entries         = 32,
  618.     bitmap_colorSet_one_entry   = 33,                           /* gxTransform errors */
  619.     transform_scale_too_small   = 34,
  620.     transform_map_too_large     = 35,
  621.     transform_move_too_large    = 36,
  622.     transform_scale_too_large   = 37,
  623.     transform_rotate_too_large  = 38,
  624.     transform_perspective_too_large = 39,
  625.     transform_skew_too_large    = 40,
  626.     transform_clip_no_intersection = 41,
  627.     transform_clip_empty        = 42,
  628.     transform_no_viewPorts      = 43,                           /* gxViewPort errors */
  629.     viewPort_disposed           = 44,
  630.     viewPort_clip_empty         = 45,
  631.     viewPort_clip_no_intersection = 46,
  632.     viewPort_scale_too_small    = 47,
  633.     viewPort_map_too_large      = 48,
  634.     viewPort_move_too_large     = 49,
  635.     viewPort_scale_too_large    = 50,
  636.     viewPort_rotate_too_large   = 51,
  637.     viewPort_perspective_too_large = 52,
  638.     viewPort_skew_too_large     = 53,
  639.     viewPort_viewGroup_offscreen = 54,                          /* gxViewDevice errors */
  640.     viewDevice_clip_no_intersection = 55,
  641.     viewDevice_scale_too_small  = 56,
  642.     viewDevice_map_too_large    = 57,
  643.     viewDevice_move_too_large   = 58,
  644.     viewDevice_scale_too_large  = 59,
  645.     viewDevice_rotate_too_large = 60,
  646.     viewDevice_perspective_too_large = 61,
  647.     viewDevice_skew_too_large   = 62
  648. };
  649. typedef long                            gxDrawError;
  650. #if CALL_NOT_IN_CARBON
  651. EXTERN_API_C( gxDrawError )
  652. GXGetShapeDrawError             (gxShape                source)                             THREEWORDINLINE(0x303C, 0x01EE, 0xA832);
  653. EXTERN_API_C( void )
  654. GXValidateAll                   (void)                                                      THREEWORDINLINE(0x303C, 0x01EF, 0xA832);
  655. EXTERN_API_C( void )
  656. GXValidateColorSet              (gxColorSet             target)                             THREEWORDINLINE(0x303C, 0x01F0, 0xA832);
  657. EXTERN_API_C( void )
  658. GXValidateColorProfile          (gxColorProfile         target)                             THREEWORDINLINE(0x303C, 0x01F1, 0xA832);
  659. EXTERN_API_C( void )
  660. GXValidateGraphicsClient        (gxGraphicsClient       target)                             THREEWORDINLINE(0x303C, 0x01F2, 0xA832);
  661. EXTERN_API_C( void )
  662. GXValidateInk                   (gxInk                  target)                             THREEWORDINLINE(0x303C, 0x01F3, 0xA832);
  663. EXTERN_API_C( void )
  664. GXValidateShape                 (gxShape                target)                             THREEWORDINLINE(0x303C, 0x01F4, 0xA832);
  665. EXTERN_API_C( void )
  666. GXValidateStyle                 (gxStyle                target)                             THREEWORDINLINE(0x303C, 0x01F5, 0xA832);
  667. EXTERN_API_C( void )
  668. GXValidateTag                   (gxTag                  target)                             THREEWORDINLINE(0x303C, 0x01F6, 0xA832);
  669. EXTERN_API_C( void )
  670. GXValidateTransform             (gxTransform            target)                             THREEWORDINLINE(0x303C, 0x01F7, 0xA832);
  671. EXTERN_API_C( void )
  672. GXValidateViewDevice            (gxViewDevice           target)                             THREEWORDINLINE(0x303C, 0x01F8, 0xA832);
  673. EXTERN_API_C( void )
  674. GXValidateViewPort              (gxViewPort             target)                             THREEWORDINLINE(0x303C, 0x01F9, 0xA832);
  675. EXTERN_API_C( void )
  676. GXValidateViewGroup             (gxViewGroup            target)                             THREEWORDINLINE(0x303C, 0x01FA, 0xA832);
  677. EXTERN_API_C( gxValidationLevel )
  678. GXGetValidation                 (void)                                                      THREEWORDINLINE(0x303C, 0x01FB, 0xA832);
  679. EXTERN_API_C( void )
  680. GXSetValidation                 (gxValidationLevel      level)                              THREEWORDINLINE(0x303C, 0x01FC, 0xA832);
  681. EXTERN_API_C( long )
  682. GXGetValidationError            (char *                 procedureName,
  683.                                  void **                argument,
  684.                                  long *                 argumentNumber)                     THREEWORDINLINE(0x303C, 0x01FD, 0xA832);
  685. #endif  /* CALL_NOT_IN_CARBON */
  686.  
  687. #if defined(__MWERKS__) && TARGET_CPU_68K
  688.     #pragma pop
  689. #endif
  690. #if PRAGMA_STRUCT_ALIGN
  691.     #pragma options align=reset
  692. #elif PRAGMA_STRUCT_PACKPUSH
  693.     #pragma pack(pop)
  694. #elif PRAGMA_STRUCT_PACK
  695.     #pragma pack()
  696. #endif
  697. #ifdef PRAGMA_IMPORT_OFF
  698. #pragma import off
  699. #elif PRAGMA_IMPORT
  700. #pragma import reset
  701. #endif
  702. #ifdef __cplusplus
  703. }
  704. #endif
  705. #endif /* __GXERRORS__ */