gwenhywfar  5.11.1beta
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
21 extern "C" {
22 #endif
23 
24 
25 typedef 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 
43 typedef enum {
54 
57 
58 
60 #include <gwenhywfar/htmlctx_be.h>
61 
62 
66 
68 
71 
74 
77 
80 
83 
86 
89 
92 
95 
97 
102 
103 
106 
107 #ifdef __cplusplus
108 }
109 #endif
110 
111 
112 #endif
113 
#define GWENHYWFAR_API
Definition: gwenhywfarapi.h:67
GWENHYWFAR_API void HtmlObject_SetConfiguredHeight(HTML_OBJECT *o, int i)
GWENHYWFAR_API GWEN_XML_CONTEXT * HtmlObject_GetXmlCtx(const HTML_OBJECT *o)
GWENHYWFAR_API void HtmlObject_SetY(HTML_OBJECT *o, int i)
GWENHYWFAR_API int HtmlObject_Layout(HTML_OBJECT *o)
GWENHYWFAR_API void HtmlObject_SetObjectType(HTML_OBJECT *o, HTML_OBJECT_TYPE t)
GWENHYWFAR_API void HtmlObject_AddFlags(HTML_OBJECT *o, uint32_t fl)
GWENHYWFAR_API HTML_OBJECT * HtmlObject_new(GWEN_XML_CONTEXT *ctx, HTML_OBJECT_TYPE t)
GWENHYWFAR_API uint32_t HtmlObject_GetFlags(const HTML_OBJECT *o)
GWENHYWFAR_API HTML_OBJECT_TYPE HtmlObject_GetObjectType(const HTML_OBJECT *o)
HTML_OBJECT_TYPE
Definition: htmlobject_be.h:43
@ HtmlObjectType_Grid
Definition: htmlobject_be.h:50
@ HtmlObjectType_UnorderedList
Definition: htmlobject_be.h:48
@ HtmlObjectType_GridEntry
Definition: htmlobject_be.h:51
@ HtmlObjectType_Unknown
Definition: htmlobject_be.h:44
@ HtmlObjectType_Count
Definition: htmlobject_be.h:55
@ HtmlObjectType_OrderedList
Definition: htmlobject_be.h:47
@ HtmlObjectType_Control
Definition: htmlobject_be.h:52
@ HtmlObjectType_Image
Definition: htmlobject_be.h:53
@ HtmlObjectType_Box
Definition: htmlobject_be.h:45
@ HtmlObjectType_Word
Definition: htmlobject_be.h:46
@ HtmlObjectType_ListEntry
Definition: htmlobject_be.h:49
GWENHYWFAR_API int HtmlObject_GetConfiguredWidth(const HTML_OBJECT *o)
GWENHYWFAR_API void HtmlObject_SetFlags(HTML_OBJECT *o, uint32_t fl)
GWENHYWFAR_API void HtmlObject_free(HTML_OBJECT *o)
GWENHYWFAR_API void HtmlObject_Attach(HTML_OBJECT *o)
GWENHYWFAR_API HTML_OBJECT_LAYOUT_FN HtmlObject_SetLayoutFn(HTML_OBJECT *o, HTML_OBJECT_LAYOUT_FN fn)
GWENHYWFAR_API int HtmlObject_GetY(const HTML_OBJECT *o)
GWENHYWFAR_API void HtmlObject_SetProperties(HTML_OBJECT *o, HTML_PROPS *pr)
int(* HTML_OBJECT_LAYOUT_FN)(HTML_OBJECT *o)
Definition: htmlobject_be.h:41
GWENHYWFAR_API void HtmlObject_SetWidth(HTML_OBJECT *o, int i)
GWENHYWFAR_API const char * HtmlObject_GetText(const HTML_OBJECT *o)
GWENHYWFAR_API HTML_PROPS * HtmlObject_GetProperties(const HTML_OBJECT *o)
GWENHYWFAR_API void HtmlObject_SetX(HTML_OBJECT *o, int i)
GWENHYWFAR_API int HtmlObject_GetConfiguredHeight(const HTML_OBJECT *o)
GWENHYWFAR_API int HtmlObject_GetWidth(const HTML_OBJECT *o)
GWENHYWFAR_API void HtmlObject_SetText(HTML_OBJECT *o, const char *s)
GWENHYWFAR_API int HtmlObject_GetX(const HTML_OBJECT *o)
GWENHYWFAR_API int HtmlObject_GetHeight(const HTML_OBJECT *o)
GWENHYWFAR_API void HtmlObject_SetHeight(HTML_OBJECT *o, int i)
struct HTML_OBJECT HTML_OBJECT
Definition: htmlobject_be.h:25
GWENHYWFAR_API void HtmlObject_SubFlags(HTML_OBJECT *o, uint32_t fl)
GWENHYWFAR_API void HtmlObject_SetConfiguredWidth(HTML_OBJECT *o, int i)
struct HTML_PROPS HTML_PROPS
Definition: htmlprops_be.h:15
#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