MorePalmOS
A development library for developing Palm OS applications

MoreRect.h

Go to the documentation of this file.
00001 /******************************************************************************
00002  * MorePalmOS
00003  * Copyright (c) 2004 Steven Fisher
00004  *
00005  * Distributed under the Boost Software License, Version 1.0. See accompanying
00006  * license file License.txt or <http://www.boost.org/LICENSE_1_0.txt>.
00007  *
00008  * http://morepalmos.sourceforge.net
00009  *
00010  *   MorePalmOS is the humble begining of an attempt to provide a library for
00011  *   Palm OS development which works around system bugs, illustrate how to
00012  *   use system calls, and provide "glue code" for programming Palm OS
00013  *   applications in a more straightforward way while minimally impacting
00014  *   code size.
00015  *****************************************************************************/
00016 
00019 #ifndef MORERECT_H
00020 #define MORERECT_H
00021 
00022 #ifdef __cplusplus
00023 extern "C" {
00024 #endif
00025 
00026 #include "MorePrefix.h"
00027 
00028 #include <Rect.h>
00029 
00031 void MPtAddPoints( const PointType* point1P, const PointType* point2P,
00032                 PointType* point3P );
00033 
00035 void MPtAddPoint( PointType* point1P, const PointType* point2P );
00036 
00038 void MPtSubtractPoint( PointType* point1P, const PointType* point2P );
00039 
00044 void MRctPtsToRect( const PointType* point1P, const PointType* point2P,
00045                                         RectangleType* resultRectP );
00046 
00048 void MRctGetBottomRight( const RectangleType* rectP, PointType* bottomRight );
00049 
00051 Coord MRctFindXCenter( const RectangleType* rect1P );
00052 
00054 Coord MRctFindYCenter( const RectangleType* rect1P );
00055 
00057 Coord MRctFindXCenterOf2( const RectangleType* rect1P,
00058                 const RectangleType* rect2P );
00059 
00061 Coord MRctFindYCenterOf2( const RectangleType* rect1P,
00062                 const RectangleType* rect2P );
00063 
00066 void MRctGetUnion( const RectangleType* rect1P, const RectangleType* rect2P,
00067                 RectangleType* r3P );
00068 
00070 void MRctRectToAbsRect( const RectangleType* rectP, AbsRectType* absRectP );
00071 
00077 void MRctAbsRectToRect( const AbsRectType* absRectP, RectangleType* rectP );
00078 
00079 #ifdef __cplusplus
00080 }
00081 #endif
00082 
00083 #endif

SourceForge.net Logo