gwenhywfar 5.14.1
htmlobject_be.h
Go to the documentation of this file.
1/***************************************************************************
2 begin : Sat Feb 20 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 HTMLOBJECT_BE_H
12#define HTMLOBJECT_BE_H
13
14
15#include <gwenhywfar/tree.h>
16#include <gwenhywfar/inherit.h>
17#include <gwenhywfar/xmlctx.h>
18
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
24
25typedef struct HTML_OBJECT HTML_OBJECT;
28
29
30#define HTML_OBJECT_FLAGS_START_ON_NEWLINE 0x00000001
31#define HTML_OBJECT_FLAGS_END_WITH_NEWLINE 0x00000002
32
33#define HTML_OBJECT_FLAGS_JUSTIFY_LEFT 0x00000000
34#define HTML_OBJECT_FLAGS_JUSTIFY_RIGHT 0x00000004
35#define HTML_OBJECT_FLAGS_JUSTIFY_HCENTER 0x00000008
36#define HTML_OBJECT_FLAGS_JUSTIFY_TOP 0x00000000
37#define HTML_OBJECT_FLAGS_JUSTIFY_BOTTOM 0x00000010
38#define HTML_OBJECT_FLAGS_JUSTIFY_VCENTER 0x00000020
39
40
42
57
58
59#include <gwenhywfar/htmlprops_be.h>
60#include <gwenhywfar/htmlctx_be.h>
61
62
66
68
71
74
77
80
83
86
89
92
94GWENHYWFAR_API void HtmlObject_SetText(HTML_OBJECT *o, const char *s);
95
97
102
103
106
107#ifdef __cplusplus
108}
109#endif
110
111
112#endif
113
#define GWENHYWFAR_API
GWENHYWFAR_API void HtmlObject_SetConfiguredHeight(HTML_OBJECT *o, int i)
Definition htmlobject.c:224
GWENHYWFAR_API GWEN_XML_CONTEXT * HtmlObject_GetXmlCtx(const HTML_OBJECT *o)
Definition htmlobject.c:77
GWENHYWFAR_API void HtmlObject_SetY(HTML_OBJECT *o, int i)
Definition htmlobject.c:152
GWENHYWFAR_API HTML_OBJECT * HtmlObject_new(GWEN_XML_CONTEXT *ctx, HTML_OBJECT_TYPE t)
Definition htmlobject.c:31
GWENHYWFAR_API int HtmlObject_Layout(HTML_OBJECT *o)
Definition htmlobject.c:295
GWENHYWFAR_API const char * HtmlObject_GetText(const HTML_OBJECT *o)
Definition htmlobject.c:233
GWENHYWFAR_API void HtmlObject_SetObjectType(HTML_OBJECT *o, HTML_OBJECT_TYPE t)
Definition htmlobject.c:95
GWENHYWFAR_API void HtmlObject_AddFlags(HTML_OBJECT *o, uint32_t fl)
Definition htmlobject.c:275
GWENHYWFAR_API uint32_t HtmlObject_GetFlags(const HTML_OBJECT *o)
Definition htmlobject.c:255
GWENHYWFAR_API HTML_OBJECT_TYPE HtmlObject_GetObjectType(const HTML_OBJECT *o)
Definition htmlobject.c:86
HTML_OBJECT_TYPE
@ HtmlObjectType_Grid
@ HtmlObjectType_UnorderedList
@ HtmlObjectType_GridEntry
@ HtmlObjectType_Unknown
@ HtmlObjectType_Count
@ HtmlObjectType_OrderedList
@ HtmlObjectType_Control
@ HtmlObjectType_Image
@ HtmlObjectType_Box
@ HtmlObjectType_Word
@ HtmlObjectType_ListEntry
GWENHYWFAR_API int HtmlObject_GetConfiguredWidth(const HTML_OBJECT *o)
Definition htmlobject.c:197
GWENHYWFAR_API void HtmlObject_SetFlags(HTML_OBJECT *o, uint32_t fl)
Definition htmlobject.c:265
GWENHYWFAR_API void HtmlObject_free(HTML_OBJECT *o)
Definition htmlobject.c:47
GWENHYWFAR_API void HtmlObject_Attach(HTML_OBJECT *o)
Definition htmlobject.c:68
GWENHYWFAR_API HTML_OBJECT_LAYOUT_FN HtmlObject_SetLayoutFn(HTML_OBJECT *o, HTML_OBJECT_LAYOUT_FN fn)
Definition htmlobject.c:310
GWENHYWFAR_API int HtmlObject_GetY(const HTML_OBJECT *o)
Definition htmlobject.c:143
GWENHYWFAR_API void HtmlObject_SetProperties(HTML_OBJECT *o, HTML_PROPS *pr)
Definition htmlobject.c:113
int(* HTML_OBJECT_LAYOUT_FN)(HTML_OBJECT *o)
GWENHYWFAR_API void HtmlObject_SetWidth(HTML_OBJECT *o, int i)
Definition htmlobject.c:170
GWENHYWFAR_API HTML_PROPS * HtmlObject_GetProperties(const HTML_OBJECT *o)
Definition htmlobject.c:104
GWENHYWFAR_API void HtmlObject_SetX(HTML_OBJECT *o, int i)
Definition htmlobject.c:134
GWENHYWFAR_API int HtmlObject_GetConfiguredHeight(const HTML_OBJECT *o)
Definition htmlobject.c:215
GWENHYWFAR_API int HtmlObject_GetWidth(const HTML_OBJECT *o)
Definition htmlobject.c:161
GWENHYWFAR_API void HtmlObject_SetText(HTML_OBJECT *o, const char *s)
Definition htmlobject.c:242
GWENHYWFAR_API int HtmlObject_GetX(const HTML_OBJECT *o)
Definition htmlobject.c:125
GWENHYWFAR_API int HtmlObject_GetHeight(const HTML_OBJECT *o)
Definition htmlobject.c:179
GWENHYWFAR_API void HtmlObject_SetHeight(HTML_OBJECT *o, int i)
Definition htmlobject.c:188
struct HTML_OBJECT HTML_OBJECT
GWENHYWFAR_API void HtmlObject_SubFlags(HTML_OBJECT *o, uint32_t fl)
Definition htmlobject.c:285
GWENHYWFAR_API void HtmlObject_SetConfiguredWidth(HTML_OBJECT *o, int i)
Definition htmlobject.c:206
struct HTML_PROPS HTML_PROPS
#define GWEN_INHERIT_FUNCTION_LIB_DEFS(t, decl)
Definition inherit.h:125
#define GWEN_TREE_FUNCTION_LIB_DEFS(t, pr, decl)
Definition tree.h:384
struct GWEN_XML_CONTEXT GWEN_XML_CONTEXT
Definition xmlctx.h:39