MHEG  17.9.0
 All Data Structures Files Functions Variables Typedefs Enumerations Macros Pages
mh5font.h
Go to the documentation of this file.
1 /*******************************************************************************
2  * Copyright © 2014 The DTVKit Open Software Foundation Ltd (www.dtvkit.org)
3  * Copyright © 2004 Ocean Blue Software Ltd
4  * Copyright © 2000 Koninklijke Philips Electronics N.V
5  *
6  * This file is part of a DTVKit Software Component
7  * You are permitted to copy, modify or distribute this file subject to the terms
8  * of the DTVKit 1.0 Licence which can be found in licence.txt or at www.dtvkit.org
9  *
10  * THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
11  * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES
12  * OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
13  *
14  * If you or your organisation is not a member of DTVKit then you have access
15  * to this source code outside of the terms of the licence agreement
16  * and you are expected to delete this and any associated files immediately.
17  * Further information on DTVKit, membership and terms can be found at www.dtvkit.org
18  *******************************************************************************/
32 #ifndef _MH5FONT_H
33 #define _MH5FONT_H
34 
35 /*---includes for this file--------------------------------------------------*/
36 #include "mh5ingredient.h"
37 
38 /*---Constant and macro definitions for public use---------------------------*/
39 
40 #define INVALID_MG_FNT_INDEX 0x7f
41 
42 /*---Enumerations for public use---------------------------------------------*/
43 
44 /*---Global type defs for public use-----------------------------------------*/
45 typedef struct sMHEG5Font
46 {
47  /* Base class */
48  MHEG5Ingredient ingredient;
49 
50  /* No exchanged attributes for this class */
51 
52  /* Internal attributes for this class */
53  int mg_fnt_index;
54 } MHEG5Font;
55 
56 /*---Global variable declarations for public use-----------------------------*/
57 
58 /*---Global Function prototypes for public use-------------------------------*/
59 
70 void MHEG5fontInit(MHEG5Font *font);
71 
72 
80 void MHEG5fontFree(MHEG5Font *font);
81 
91 void MHEG5fontRefreshTexts( MHEG5Font *font );
92 
93 /*
94  Internal behaviours
95  */
96 void MHEG5fontPrepare(MHEG5Font *font);
97 void MHEG5fontDestruct(MHEG5Font *font);
98 void MHEG5fontActivate(MHEG5Font *font);
99 void MHEG5fontDeactivate(MHEG5Font *font);
100 
101 /*
102  Debug
103  */
104 #ifdef MH5PRINTOUT
105 void MHEG5fontPrint(MHEG5Font *font, char *out);
106 #endif
107 
108 #endif /*_MH5FONT_H*/
Implementation of the Ingredient class.
Definition: mh5font.h:45
Definition: mh5ingredient.h:63
void MHEG5fontFree(MHEG5Font *font)
Free off all memory associated with the specified object, including any exchanged attributes and inte...
Definition: mh5font.c:129
void MHEG5fontRefreshTexts(MHEG5Font *font)
Refresh Text objects that reference this Font object. This function may be called after the font has ...
Definition: mh5font.c:101
void MHEG5fontInit(MHEG5Font *font)
<Function description>="">
Definition: mh5font.c:115