pgHLevel.h

Go to the documentation of this file.
00001 
00002 /*  $Id: pgHLevel.h 424 2005-01-24 03:48:34Z terry_teague $    */
00003 
00004 /* This header file provides function prototypes for a Mac-specific high-level
00005 wrapper around some of the otherwise complicated functions in PAIGE such as
00006 setting styles, fonts, or whatever.
00007 
00008 Note that most of the functions herein are specific to Macintosh, the reason
00009 being that the code they replace appear "complex" due to the portability of
00010 PAIGE. For example, PAIGE is not suppose to know about QuickDraw styles, but
00011 in high-level wrapper we can set a QuickDraw style bit.
00012 
00013 We will create a similar set of utilities for Windows and other platforms.
00014 
00015 The purpose of this interface is to help minimize support for our team and to
00016 enhance PAIGE library sales.
00017 
00018 Copyright 1994 by DataPak Software, Inc.  PAIGE is a DataPak trademark.  */
00019 
00020 /* Updated May 1995 for ease of use with opendoc by OITC and more functionality */
00021 
00022 #ifndef PGHLEVEL_H
00023 #define PGHLEVEL_H
00024 
00025 #include "PAIGE.H"
00026 
00027 #ifdef applec
00028 #include    <Quickdraw.h>
00029 #include    <Events.h>
00030 #include    <Memory.h>
00031 #include    <Desk.h>
00032 #include    <Packages.h>
00033 #include    <String.h>
00034 #include    <OSUtils.h>
00035 #include    <ToolUtils.h>
00036 #endif
00037 
00038 #ifdef __cplusplus
00039 extern  "C" {
00040 #endif
00041 
00042 extern PG_PASCAL (void) pgSetFontByName (pg_ref pg, const pg_font_name_ptr font_name,
00043         const select_pair_ptr selection_range, pg_boolean redraw);
00044 extern PG_PASCAL (pg_boolean) pgGetFontByName (pg_ref pg, pg_font_name_ptr font_name);
00045 extern PG_PASCAL (pg_boolean) pgGetTextColor (pg_ref pg, pg_plat_color_value PG_FAR *color);
00046 extern PG_PASCAL (pg_boolean) pgGetTextBKColor (pg_ref pg, pg_plat_color_value PG_FAR *color);
00047 extern PG_PASCAL (void) pgSetTextColor (pg_ref pg, const pg_plat_color_value PG_FAR *color,
00048         const select_pair_ptr selection_range, pg_boolean redraw);
00049 extern PG_PASCAL (void) pgSetTextBKColor (pg_ref pg, const pg_plat_color_value PG_FAR *color,
00050         const select_pair_ptr selection_range, pg_boolean redraw);
00051         
00052 extern PG_PASCAL (void) pgSetStyleBits (pg_ref pg, long style_bits, long set_which_bits,
00053         const select_pair_ptr selection_range, pg_boolean redraw);
00054 extern PG_PASCAL (void) pgSetPointSize (pg_ref pg, short point_size,
00055         const select_pair_ptr selection_range, pg_boolean redraw);
00056 extern PG_PASCAL (void) pgGetStyleBits (pg_ref pg, long PG_FAR *style_bits,
00057         long PG_FAR *consistent_bits);
00058 extern PG_PASCAL (pg_boolean) pgGetPointsize (pg_ref pg, short PG_FAR *point_size);
00059 
00060 #ifdef MAC_PLATFORM
00061 
00062 extern PG_PASCAL (void) pgSetFontByNum (pg_ref pg, short font_num,
00063         const select_pair_ptr selection_range, pg_boolean redraw);
00064 extern PG_PASCAL (pg_boolean) pgGetFontByNum (pg_ref pg, short *font_num);
00065 
00066 #endif
00067 
00068 #ifdef WINDOWS_PLATFORM
00069 extern PG_PASCAL (void) pgSetFontByLog (pg_ref pg, const LOGFONT PG_FAR *log_font,
00070         const select_pair_ptr selection_range, pg_boolean redraw);
00071 extern PG_PASCAL (pg_boolean) pgGetFontByLog (pg_ref pg, LOGFONT PG_FAR *log_font);
00072 
00073 #endif
00074 
00075 #ifdef __cplusplus
00076     }
00077 #endif
00078 
00079 #endif

Generated on Wed May 31 18:19:59 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6