Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Environment and Utilities /
Chapter 4 - QuickDraw GX Debugging / QuickDraw GX Debugging Reference
Constants and Data Types


Drawing Errors

QuickDraw GX posts drawing errors when you use the GXGetShapeDrawError function after an unsuccessful drawing operation. The gxDrawError enumeration defines the posted drawing errors.

enum gxDrawErrors {
   no_draw_error,

   /* gxShape type errors */
   shape_emptyType,
   shape_inverse_fullType,
   rectangle_zero_width,
   rectangle_zero_height,
   polygon_empty,
   path_empty,
   bitmap_zero_width,
   bitmap_zero_height,
   text_empty,
   glyph_empty,
   layout_empty,
   picture_empty,

   /* general gxShape errors */
   shape_no_fill,
   shape_no_enclosed_area,
   shape_no_enclosed_pixels,
   shape_very_small,
   shape_very_large,
   shape_contours_cancel,

   /* gxStyle errors */
   pen_too_small,
   text_size_too_small,
   dash_empty,
   start_cap_empty,
   pattern_empty,
   textFace_empty,
   shape_primitive_empty,
   shape_primitive_very_small,
   /* gxInk errors */
   transfer_equals_noMode,
   transfer_matrix_ignores_source,
   transfer_matrix_ignores_device,
   transfer_source_reject,
   transfer_mode_ineffective,
   colorSet_no_entries,
   bitmap_colorSet_one_entry,

   /* gxTransform errors */
   transform_scale_too_small,
   transform_map_too_large,
   transform_move_too_large,
   transform_scale_too_large,
   transform_rotate_too_large,
   transform_perspective_too_large,
   transform_skew_too_large,
   transform_clip_no_intersection,
   transform_clip_empty,
   transform_no_viewPorts,

   /* gxViewPort errors */
   viewPort_disposed,
   viewPort_clip_empty,
   viewPort_clip_no_intersection,
   viewPort_scale_too_small,
   viewPort_map_too_large,
   viewPort_move_too_large,
   viewPort_scale_too_large,
   viewPort_rotate_too_large,
   viewPort_perspective_too_large,
   viewPort_skew_too_large,
   viewPort_viewGroup_offscreen,

   /* gxViewDevice errors */
   viewDevice_clip_no_intersection,
   viewDevice_scale_too_small,
   viewDevice_map_too_large,
   viewDevice_move_too_large,
   viewDevice_scale_too_large,
   viewDevice_rotate_too_large,
   viewDevice_perspective_too_large,
   viewDevice_skew_too_large
};
typedef long gxDrawError;
Table 4-2 through Table 4-7 list the drawing errors and give a description of each error.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996