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

📄 printer.h

📁 Linux下智能终端打印机操作程序
💻 H
字号:
/*************************************************************************/
/*                                                                       */
/*   Copyright (c) 1993-2002 YULONG COMPUTER                             */
/*                           TELECOMMUNICATION SCIENTIFIC CO.,LTD.       */
/*           宇龙计算机通信科技(深圳)有限公司  版权所有 1993-2002        */
/* PROPRIETARY RIGHTS of eWayCyber Technologies are involved in the      */
/* subject matter of this material.  All manufacturing, reproduction,    */
/* use, and sales rights pertaining to this subject matter are governed  */
/* by the license agreement.  The recipient of this software implicitly  */
/* accepts the terms of the license.                                     */
/* 本软件文档资料是宇龙计算机通信科技(深圳)有限公司的资产,任何人士阅读和 */
/* 使用本资料必须获得相应的书面授权,承担保密责任和接受相应的法律约束.    */
/*                                                                       */
/*************************************************************************/


//===========================================================================
//	                                                                        
//  Product    : YuLong PDA application Example for EOS                      
//  Module     : Application.c                                                 
//  Version    : 1.00                                                      
//                                                                           
//---------------------------------------------------------------------------
//                                                                           
//  Description : 应用程序的基本例子            
//                                     
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
//                                                                           
//  Author         : Yang sheng qian                     
//  developed on   : 2004.07.26                                            
//  last update    : 2004.07.26   
//  last update    : 2004.07.26
//                                                                           
//===========================================================================
#ifndef __AP_YLPRINTER_V1_0_0_H__
#define __AP_YLPRINTER_V1_0_0_H__


#define PR_FILENAME	  (Char *)"C:\\YL_PRINT.DAT"


Boolean PR_InitEnvironment(void);

Int16 PR_OpenComm(Int16 hWndId, Int32 nComCBR);

Int32 PR_GetComCBR(Int32 nPrintId);

/*****************************************************************************************
入口参数: n-灰度等级(0 <= n <= 10,缺省n=5)
描    述: 调整打印对比度
*****************************************************************************************/
void PR_setdarkness(Char n);

/*****************************************************************************************
入口参数: n-字符间隔的尺寸(0 <= n <= 15,缺省n=0,间隔尺寸=n/8毫米)
描    述: 设置字符间隔
*****************************************************************************************/
void PR_setcharspace(Char n);

/*****************************************************************************************
入口参数: n-ASCII字体(0 <= n <= 3,缺省n=1 14X24 ASCII字体)
          n=0, 8X13 ASCII字体
          n=1,14X24 ASCII字体
          n=2,22X36 ASCII字体
          n=3,24X24 Shift-JIS编码的KANJI字体
描    述: 设置打印机的ASCII字体
*****************************************************************************************/
void PR_selectASCIIfont(Char n);

/*****************************************************************************************
入口参数: dw-指示是否横向放大一倍
          dh-指示是否纵向放大一倍
描    述: 设置字符纵的横向放大
*****************************************************************************************/
void PR_enlargefont(Char dw, Char dh);

/*****************************************************************************************
入口参数: x-自左边界算起
          y-忽略
描    述: 设定每行打印的绝对起始位置
*****************************************************************************************/
void PR_moveto(Char x, Char y);

/*****************************************************************************************
入口参数: data-字符串地址
描    述: 打印指定长度的字符串
*****************************************************************************************/
void PR_print(Char *data);

void PR_printfile(Int16 i16ComId, Int32 nPrintId);

void PR_DoPrint(Int16 nId, WindowEventHandlerExType winEventHandler);

#endif //__AP_YLPRINTER_V1_0_0_H__

⌨️ 快捷键说明

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