MorePalmOS
A development library for developing Palm OS applications

MoreWindow.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 
00023 #ifndef MOREWINDOW_H
00024 #define MOREWINDOW_H
00025 
00026 #ifdef __cplusplus
00027 extern "C" {
00028 #endif
00029 
00030 #include "MorePrefix.h"
00031 
00032 #include <Window.h>
00033 
00034 enum _Alignment
00035 {
00036         Left, Center, Right
00037 };
00038 typedef enum _Alignment Alignment;
00039 
00044 Err MWinScreenToDefault( MOREPALMOS_NOPARAMS );
00045 
00051 Err MWinScreenToDepth( UInt8 depth );
00052 
00077 Coord MWinDrawAlignStr( const char *str, Coord x, Coord y, Alignment align );
00078 
00103 Coord MWinDrawAlignChars( const char *str, UInt32 len,
00104                 Coord x, Coord y, Alignment align );
00105 
00133 Coord MWinDrawAlignStrTrunc( const char *str, Coord x, Coord y,
00134                 Coord availWidth, Alignment align );
00135 
00163 Coord MWinDrawAlignCharsTrunc( const char *str, UInt32 len, Coord x, Coord y,
00164                 Coord availWidth, Alignment align );
00165 
00166 #ifdef __cplusplus
00167 }
00168 #endif
00169 
00170 #endif

SourceForge.net Logo