gdi.h File Reference

Go to the source code of this file.

Data Structures

Defines

Typedefs

Enumerations

Functions

Variables


Detailed Description

Author:
Wei Yongming <ymwei@minigui.org>
Date:
2002/01/06

This file includes graphics device interfaces of MiniGUI.


    Copyright (C) 2002-2009 Feynman Software.
    Copyright (C) 1998-2002 Wei Yongming.

    All rights reserved by Feynman Software.

    This file is part of MiniGUI, a compact cross-platform Graphics 
    User Interface (GUI) support system for real-time embedded systems.

 

Definition in file gdi.h.


Function Documentation

BOOL GUIAPI AddGlyphsToBMPFont ( DEVFONT dev_font,
BITMAP glyph_bmp,
const char *  start_mchar,
int  nr_glyphs,
int  glyph_width 
)

Add a new segment in device font.

This function add a new segment to the device font pointed by dev_font.

Parameters:
dev_font The pointer to the device font.
glyph_bmp The pointer to the segment glyph bitmap object.
start_mchar The pointer to the first char of the segment.
nr_glyphs The character count of the segment.
glyph_width The character width in the segment.
Returns:
TRUE if success, otherwise FALSE.
DEVFONT *GUIAPI CreateBMPDevFont ( const char *  bmpfont_name,
const BITMAP glyph_bmp,
const char *  start_mchar,
int  nr_glyphs,
int  glyph_width 
)

Create a bitmap device font.

This function create a bitmap device font and return the pointer to the new device font.

Parameters:
bmpfont_name The font name.
glyph_bmp The pointer to the bitmap object.
start_mchar The pointer to the first char of segment.
nr_glyphs The character count of the segment.
glyph_width The character width.
Returns:
The pointer to the new device font on sucess, otherwise NULL.
void GUIAPI DestroyBMPFont ( DEVFONT dev_font  ) 

Destroy the bitmap device font.

This function destroy the bitmap device font pointed by dev_font.

Parameters:
dev_font The pointer to the device font which will be destroyed.
Returns:
TRUE if success, otherwise FALSE.
Generated on Thu Apr 7 15:55:30 2011 for MiniGUI V3.0.12 API Reference by  doxygen 1.6.3