📄 abl_swim_font.h
字号:
/***********************************************************************
* $Workfile: abl_swim_font.h $
* $Revision: 1.1 $
* $Author: WellsK $
* $Date: Jun 25 2003 14:14:16 $
*
* 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/sharpmcu/archives/sharpmcu/software/abl/include/abl_swim_font.h-arc $
*
* Rev 1.1 Jun 25 2003 14:14:16 WellsK
* Changed swim_set_font function to accept pointer to a font
* data structure instead of an enumeration.
*
* Rev 1.0 Jun 09 2003 12:02:14 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) 2001 SHARP MICROELECTRONICS OF THE AMERICAS, INC.
* CAMAS, WA
**********************************************************************/
#ifndef ABL_SWIM_FONT_H
#define ABL_SWIM_FONT_H
#ifdef __cplusplus
#if __cplusplus
extern "C"
{
#endif
#endif
#include "abl_types.h"
#include "abl_swim.h"
/***********************************************************************
* Text drawing functions
**********************************************************************/
/* Put a text message at an X, Y pixel coordinate in the window */
void swim_put_text_xy(SWIM_WINDOW_T *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(SWIM_WINDOW_T *win,
INT_32 x,
INT_32 y);
/* Returns the X, Y pixel coordinates for the next text operation */
void swim_get_xy(SWIM_WINDOW_T *win,
INT_32 *x,
INT_32 *y);
/* Puts a null-terminated string of text in a window */
void swim_put_text(SWIM_WINDOW_T *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(SWIM_WINDOW_T *win,
const CHAR *text);
/* Puts a single character to the window */
void swim_put_char(SWIM_WINDOW_T *win,
const CHAR textchar);
/* Puts a newline in the window */
void swim_put_newline(SWIM_WINDOW_T *win);
/* Select the active font */
void swim_set_font(SWIM_WINDOW_T *win,
FONT_T *font);
/* Returns the active font's height in pixels */
INT_16 swim_get_font_height(SWIM_WINDOW_T *win);
/* Create a title bar */
void swim_set_title(SWIM_WINDOW_T *win,
const CHAR *title,
COLOR_T ttlbkcolor);
/* Enables and disables font backgrounds */
void swim_set_font_trasparency(SWIM_WINDOW_T *win, INT_32 trans);
#ifdef __cplusplus
}
#endif
#endif /* ABL_SWIM_FONT_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -