OSD_DRV.H
上传用户:super_houu
上传日期:2008-09-21
资源大小:4099k
文件大小:3k
- /* **************************************************************************************
- * Copyright (c) 2002 ZORAN Corporation, All Rights Reserved
- * THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF ZORAN CORPORATION
- *
- * File: $Workfile: OSD_DRV.H $
- *
- * Description:
- * ============
- * OSD low level definitions
- *
- * Log:
- * ====
- * $Revision: 13 $
- * Last Modified by $Author: Rogerl $ at $Modtime: 03-01-16 15:16 $
- ****************************************************************************************
- * Updates:
- ****************************************************************************************
- * $Log: /SourceCode/I64_Common/I64_Reference/UI/Menu_sys/OSD_DRV.H $
- *
- * 13 03-01-17 11:56 Rogerl
- * Add OSD_3DFrameRect
- *
- * 12 03-01-09 4:43 Leslie
- * Unicode support
- *
- * 11 11/22/02 9:31a Leslie
- *
- * 10 10/30/02 18:03 Rond
- *
- * 7 23/04/02 9:39 Nirm
- * - Added dependency in "Config.h".
- *
- * 6 4/22/02 14:50 Rinata
- * under USE_BMP_BUTTON setup menu with bitmap buttons
- *
- * 5 17/03/02 20:06 Nirm
- * Added OSD_CorneredFrame().
- *
- * 4 13/01/02 16:41 Atai
- * Remove old Defines
- *
- * 3 8/01/02 16:25 Nirm
- * Corrected Include-Paths.
- *
- * 2 25/12/01 12:07 Atai
- * Code cleaning
- *
- *
- **************************************************************************************** */
- #include "Config.h" // Global Configuration - do not remove!
- #ifndef OSD_DRV_H
- #define OSD_DRV_H
- #include "UIMenu_Sysms_wdgt.h"
- typedef struct
- {
- char escsq;
- char Char;
- }FONT_N_CHAR;
- void OSD_CorneredFrame(int x, int y, int w, int h, int h_length, int v_length,
- unsigned char color, unsigned char thickness);
- void OSD_AimedFrame(int x, int y, int w, int h, int h_length, int v_length,
- unsigned char color, unsigned char thickness);
- void OSD_PutRect(int x,int y,int w,int h,unsigned char color);
- void OSD_PutText(int x,int y,int w,int h,
- unsigned char forward_color,unsigned char backward_color,
- void *text,char alignment, char ascii);
- void OSD_SetOrigin(MS_WIDGET *widget);
- int OSD_GetFontHeight(void);
- void OSD_TurnOff(void);
- void OSD_TurnOn(void);
- #ifdef USE_BMP_BUTTON
- void OSD_DrawBitmap(WORD wXPos , WORD wYPos , CONST BYTE *pcBm, BYTE FocusIndex, BYTE newBGindex );
- #endif
- // Standard frame inset
- #define C_INSET 4
- // Standard frame thickness
- #define C_THICKNESS 4
- void OSD_FrameRect(int x,int y,int w,int h,unsigned char color,unsigned char thickness);
- void OSD_3DFrameRect(int x,int y,int w,int h,unsigned char colorLT, unsigned char colorRB, unsigned char thickness);
- void OSD_CalcFramedPos( MS_POS *pmspos );
- #endif