⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sma_swim_font.h

📁 sharp的arm920t 7A400的评估板附带光盘Sharp KEVLH7A400 v0.3b Welcome to the SHARP KEV7A400 Evaluation board
💻 H
字号:
/***********************************************************************
 * $Workfile:   SMA_swim_font.h  $
 * $Revision:   1.1  $
 * $Author:   WellsK  $
 * $Date:   Aug 30 2002 13:18:24  $
 *
 * Project: Font management for SWIM
 *
 * Description:
 *  This package provides the following font capabilities with SWIM:
 *     Font selection
 *     Text positioning
 *     newline and window scrolling
 *     Text display with multiple, selectable fonts
 *
 * Revision History:
 * $Log:   //smaicnt2/pvcs/VM/CHIPS/archives/SOC/Source/Graphics/SWIM/SWIM_Fonts/SMA_swim_font.h-arc  $
 * 
 *    Rev 1.1   Aug 30 2002 13:18:24   WellsK
 * Corrected C/C++ wrapper.
 * 
 *    Rev 1.0   Aug 27 2002 08:36:42   WellsK
 * Initial revision.
 * 
 *
 * SHARP MICROELECTRONICS OF THE AMERICAS MAKES NO REPRESENTATION
 * OR WARRANTIES WITH RESPECT TO THE PERFORMANCE OF THIS SOFTWARE,
 * AND SPECIFICALLY DISCLAIMS ANY RESPONSIBILITY FOR ANY DAMAGES, 
 * SPECIAL OR CONSEQUENTIAL, CONNECTED WITH THE USE OF THIS SOFTWARE.
 *
 * SHARP MICROELECTRONICS OF THE AMERICAS PROVIDES THIS SOFTWARE SOLELY 
 * FOR THE PURPOSE OF SOFTWARE DEVELOPMENT INCORPORATING THE USE OF A 
 * SHARP MICROCONTROLLER OR SYSTEM-ON-CHIP PRODUCT. USE OF THIS SOURCE
 * FILE IMPLIES ACCEPTANCE OF THESE CONDITIONS.
 *
 * COPYRIGHT (C) 2002 SHARP MICROELECTRONICS OF THE AMERICAS, INC.
 *     CAMAS, WA
 **********************************************************************/
#ifndef SWIM_FONT_H
#define SWIM_FONT_H

#ifdef __cplusplus
#if __cplusplus
extern "C"
{
#endif // __cplusplus
#endif // __cplusplus

#include "SMA_types.h"
#include "SMA_swim.h"

//**********************************************************************
// Text drawing functions
//**********************************************************************
// Put a text message at an X, Y pixel coordinate in the window
void swim_put_text_xy (INT_32 win, const CHAR *text, INT_32 x,
    INT_32 y);

// Sets the X, Y pixel coordinates for the next text operation
void swim_set_xy (INT_32 win, INT_32 x, INT_32 y);

// Returns the X, Y pixel coordinates for the next text operation
void swim_get_xy (INT_32 win, INT_32 *x, INT_32 *y);

// Puts a null-terminated string of text in a window
void swim_put_text (INT_32 win, const CHAR *text);

// Puts a null-terminated string of text in a window, but will move an
// entire word to the next line if it will not fit on the present line.
void swim_put_ltext (INT_32 win, const CHAR *text);

// Puts a single character to the window
void swim_put_char (INT_32 win, const CHAR textchar);

// Puts a newline in the window
void swim_put_newline (INT_32 win);

// Select the active font
void swim_set_font (INT_32 win, font_sel_type font);

// Returns the active font's height in pixels
INT_16 swim_get_font_height (INT_32 win);

#ifdef __cplusplus
}
#endif

#endif // SWIM_FONT_H

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -