gwenhywfar
4.12.0beta
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
gwenhywfar4
gwenhywfar
htmlctx_be.h
Go to the documentation of this file.
1
/***************************************************************************
2
begin : Mon Feb 22 2010
3
copyright : (C) 2010 by Martin Preuss
4
email : martin@libchipcard.de
5
6
***************************************************************************
7
* Please see toplevel file COPYING for license details *
8
***************************************************************************/
9
10
11
#ifndef HTMLXMLCTX_BE_H
12
#define HTMLXMLCTX_BE_H
13
14
#include <
gwenhywfar/htmlfont_be.h
>
15
#include <
gwenhywfar/htmlobject_be.h
>
16
#include <
gwenhywfar/htmlimage_be.h
>
17
18
#include <
gwenhywfar/xmlctx.h
>
19
#include <
gwenhywfar/stringlist.h
>
20
21
22
#ifdef __cplusplus
23
extern
"C"
{
24
#endif
25
26
27
typedef
int (*
HTMLCTX_GET_TEXT_WIDTH_FN
)(
GWEN_XML_CONTEXT
*ctx,
28
HTML_FONT
*fnt,
29
const
char
*s);
30
31
typedef
int (*
HTMLCTX_GET_TEXT_HEIGHT_FN
)(
GWEN_XML_CONTEXT
*ctx,
32
HTML_FONT
*fnt,
33
const
char
*s);
34
35
36
typedef
uint32_t (*
HTMLCTX_GET_COLOR_FROM_NAME_FN
)(
const
GWEN_XML_CONTEXT
*ctx,
const
char
*s);
37
38
39
typedef
HTML_FONT
* (*HTMLCTX_GET_FONT_FN)(
GWEN_XML_CONTEXT
*ctx,
40
const
char
*fontName,
41
int
fontSize,
42
uint32_t fontFlags);
43
44
typedef
HTML_IMAGE
* (*HTMLCTX_GET_IMAGE_FN)(
GWEN_XML_CONTEXT
*ctx,
const
char
*imageName);
45
46
47
48
GWENHYWFAR_API
49
GWEN_XML_CONTEXT
*
HtmlCtx_new
(uint32_t flags);
50
51
GWENHYWFAR_API
52
void
HtmlCtx_SetText
(
GWEN_XML_CONTEXT
*ctx,
const
char
*s);
53
54
GWENHYWFAR_API
55
int
HtmlCtx_Layout
(
GWEN_XML_CONTEXT
*ctx,
int
width,
int
height);
56
57
GWENHYWFAR_API
58
HTML_OBJECT
*
HtmlCtx_GetRootObject
(
const
GWEN_XML_CONTEXT
*ctx);
59
60
61
GWENHYWFAR_API
62
HTML_FONT
*
HtmlCtx_GetFont
(
GWEN_XML_CONTEXT
*ctx,
63
const
char
*fontName,
64
int
fontSize,
65
uint32_t fontFlags);
66
70
GWENHYWFAR_API
71
HTML_IMAGE
*
HtmlCtx_GetImage
(
GWEN_XML_CONTEXT
*ctx,
const
char
*imageName);
72
73
GWENHYWFAR_API
74
HTML_PROPS
*
HtmlCtx_GetStandardProps
(
const
GWEN_XML_CONTEXT
*ctx);
75
76
GWENHYWFAR_API
77
void
HtmlCtx_SetStandardProps
(
GWEN_XML_CONTEXT
*ctx,
HTML_PROPS
*pr);
78
79
80
GWENHYWFAR_API
81
int
HtmlCtx_GetWidth
(
const
GWEN_XML_CONTEXT
*ctx);
82
83
GWENHYWFAR_API
84
int
HtmlCtx_GetHeight
(
const
GWEN_XML_CONTEXT
*ctx);
85
86
87
GWENHYWFAR_API
88
int
HtmlCtx_GetResolutionX
(
const
GWEN_XML_CONTEXT
*ctx);
89
90
GWENHYWFAR_API
91
void
HtmlCtx_SetResolutionX
(
GWEN_XML_CONTEXT
*ctx,
int
i);
92
93
GWENHYWFAR_API
94
int
HtmlCtx_GetResolutionY
(
const
GWEN_XML_CONTEXT
*ctx);
95
96
GWENHYWFAR_API
97
void
HtmlCtx_SetResolutionY
(
GWEN_XML_CONTEXT
*ctx,
int
i);
98
99
100
GWENHYWFAR_API
101
GWEN_STRINGLIST
*
HtmlCtx_GetMediaPaths
(
const
GWEN_XML_CONTEXT
*ctx);
102
103
GWENHYWFAR_API
104
void
HtmlCtx_AddMediaPath
(
GWEN_XML_CONTEXT
*ctx,
const
char
*s);
105
106
107
GWENHYWFAR_API
108
HTMLCTX_GET_TEXT_WIDTH_FN
HtmlCtx_SetGetTextWidthFn
(
GWEN_XML_CONTEXT
*ctx,
109
HTMLCTX_GET_TEXT_WIDTH_FN
fn);
110
111
GWENHYWFAR_API
112
HTMLCTX_GET_TEXT_HEIGHT_FN
HtmlCtx_SetGetTextHeightFn
(
GWEN_XML_CONTEXT
*ctx,
113
HTMLCTX_GET_TEXT_HEIGHT_FN
fn);
114
115
116
GWENHYWFAR_API
117
HTMLCTX_GET_COLOR_FROM_NAME_FN
HtmlCtx_SetGetColorFromNameFn
(
GWEN_XML_CONTEXT
*ctx,
118
HTMLCTX_GET_COLOR_FROM_NAME_FN
fn);
119
120
GWENHYWFAR_API
121
HTMLCTX_GET_FONT_FN
HtmlCtx_SetGetFontFn
(
GWEN_XML_CONTEXT
*ctx,
122
HTMLCTX_GET_FONT_FN
fn);
123
124
GWENHYWFAR_API
125
HTMLCTX_GET_IMAGE_FN
HtmlCtx_SetGetImageFn
(
GWEN_XML_CONTEXT
*ctx,
HTMLCTX_GET_IMAGE_FN
fn);
126
127
#ifdef __cplusplus
128
}
129
#endif
130
131
#endif
132
Generated on Sun Apr 27 2014 19:24:12 for gwenhywfar by
1.8.1.2