htmlobject_be.h
Go to the documentation of this file.
/***************************************************************************
begin : Sat Feb 20 2010
copyright : (C) 2010 by Martin Preuss
email : martin@libchipcard.de
***************************************************************************
* Please see toplevel file COPYING for license details *
***************************************************************************/
#ifndef HTMLOBJECT_BE_H
#define HTMLOBJECT_BE_H
#include <gwenhywfar/tree.h>
#include <gwenhywfar/inherit.h>
#include <gwenhywfar/xmlctx.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct HTML_OBJECT HTML_OBJECT;
GWEN_TREE_FUNCTION_LIB_DEFS(HTML_OBJECT, HtmlObject, GWENHYWFAR_API)
GWEN_INHERIT_FUNCTION_LIB_DEFS(HTML_OBJECT, GWENHYWFAR_API)
#define HTML_OBJECT_FLAGS_START_ON_NEWLINE 0x00000001
#define HTML_OBJECT_FLAGS_END_WITH_NEWLINE 0x00000002
#define HTML_OBJECT_FLAGS_JUSTIFY_LEFT 0x00000000
#define HTML_OBJECT_FLAGS_JUSTIFY_RIGHT 0x00000004
#define HTML_OBJECT_FLAGS_JUSTIFY_HCENTER 0x00000008
#define HTML_OBJECT_FLAGS_JUSTIFY_TOP 0x00000000
#define HTML_OBJECT_FLAGS_JUSTIFY_BOTTOM 0x00000010
#define HTML_OBJECT_FLAGS_JUSTIFY_VCENTER 0x00000020
typedef int (*HTML_OBJECT_LAYOUT_FN)(HTML_OBJECT *o);
typedef enum {
HtmlObjectType_Unknown=0,
HtmlObjectType_Box,
HtmlObjectType_Word,
HtmlObjectType_OrderedList,
HtmlObjectType_UnorderedList,
HtmlObjectType_ListEntry,
HtmlObjectType_Grid,
HtmlObjectType_GridEntry,
HtmlObjectType_Control,
HtmlObjectType_Image,
HtmlObjectType_Count
} HTML_OBJECT_TYPE;
#include <gwenhywfar/htmlprops_be.h>
#include <gwenhywfar/htmlctx_be.h>
GWENHYWFAR_API HTML_OBJECT *HtmlObject_new(GWEN_XML_CONTEXT *ctx, HTML_OBJECT_TYPE t);
GWENHYWFAR_API void HtmlObject_free(HTML_OBJECT *o);
GWENHYWFAR_API void HtmlObject_Attach(HTML_OBJECT *o);
GWENHYWFAR_API GWEN_XML_CONTEXT *HtmlObject_GetXmlCtx(const HTML_OBJECT *o);
GWENHYWFAR_API HTML_OBJECT_TYPE HtmlObject_GetObjectType(const HTML_OBJECT *o);
GWENHYWFAR_API void HtmlObject_SetObjectType(HTML_OBJECT *o, HTML_OBJECT_TYPE t);
GWENHYWFAR_API HTML_PROPS *HtmlObject_GetProperties(const HTML_OBJECT *o);
GWENHYWFAR_API void HtmlObject_SetProperties(HTML_OBJECT *o, HTML_PROPS *pr);
GWENHYWFAR_API int HtmlObject_GetX(const HTML_OBJECT *o);
GWENHYWFAR_API void HtmlObject_SetX(HTML_OBJECT *o, int i);
GWENHYWFAR_API int HtmlObject_GetY(const HTML_OBJECT *o);
GWENHYWFAR_API void HtmlObject_SetY(HTML_OBJECT *o, int i);
GWENHYWFAR_API int HtmlObject_GetWidth(const HTML_OBJECT *o);
GWENHYWFAR_API void HtmlObject_SetWidth(HTML_OBJECT *o, int i);
GWENHYWFAR_API int HtmlObject_GetHeight(const HTML_OBJECT *o);
GWENHYWFAR_API void HtmlObject_SetHeight(HTML_OBJECT *o, int i);
GWENHYWFAR_API int HtmlObject_GetConfiguredWidth(const HTML_OBJECT *o);
GWENHYWFAR_API void HtmlObject_SetConfiguredWidth(HTML_OBJECT *o, int i);
GWENHYWFAR_API int HtmlObject_GetConfiguredHeight(const HTML_OBJECT *o);
GWENHYWFAR_API void HtmlObject_SetConfiguredHeight(HTML_OBJECT *o, int i);
GWENHYWFAR_API const char *HtmlObject_GetText(const HTML_OBJECT *o);
GWENHYWFAR_API void HtmlObject_SetText(HTML_OBJECT *o, const char *s);
GWENHYWFAR_API int HtmlObject_Layout(HTML_OBJECT *o);
GWENHYWFAR_API uint32_t HtmlObject_GetFlags(const HTML_OBJECT *o);
GWENHYWFAR_API void HtmlObject_SetFlags(HTML_OBJECT *o, uint32_t fl);
GWENHYWFAR_API void HtmlObject_AddFlags(HTML_OBJECT *o, uint32_t fl);
GWENHYWFAR_API void HtmlObject_SubFlags(HTML_OBJECT *o, uint32_t fl);
GWENHYWFAR_API HTML_OBJECT_LAYOUT_FN HtmlObject_SetLayoutFn(HTML_OBJECT *o,
HTML_OBJECT_LAYOUT_FN fn);
#ifdef __cplusplus
}
#endif
#endif
GWENHYWFAR_API
#define GWENHYWFAR_API
Definition gwenhywfarapi.h:67
htmlctx_be.h
HtmlObject_SetConfiguredHeight
GWENHYWFAR_API void HtmlObject_SetConfiguredHeight(HTML_OBJECT *o, int i)
HtmlObject_GetXmlCtx
GWENHYWFAR_API GWEN_XML_CONTEXT * HtmlObject_GetXmlCtx(const HTML_OBJECT *o)
HtmlObject_SetY
GWENHYWFAR_API void HtmlObject_SetY(HTML_OBJECT *o, int i)
HtmlObject_new
GWENHYWFAR_API HTML_OBJECT * HtmlObject_new(GWEN_XML_CONTEXT *ctx, HTML_OBJECT_TYPE t)
HtmlObject_Layout
GWENHYWFAR_API int HtmlObject_Layout(HTML_OBJECT *o)
HtmlObject_GetText
GWENHYWFAR_API const char * HtmlObject_GetText(const HTML_OBJECT *o)
HtmlObject_SetObjectType
GWENHYWFAR_API void HtmlObject_SetObjectType(HTML_OBJECT *o, HTML_OBJECT_TYPE t)
HtmlObject_AddFlags
GWENHYWFAR_API void HtmlObject_AddFlags(HTML_OBJECT *o, uint32_t fl)
HtmlObject_GetFlags
GWENHYWFAR_API uint32_t HtmlObject_GetFlags(const HTML_OBJECT *o)
HtmlObject_GetObjectType
GWENHYWFAR_API HTML_OBJECT_TYPE HtmlObject_GetObjectType(const HTML_OBJECT *o)
HTML_OBJECT_TYPE
HTML_OBJECT_TYPE
Definition htmlobject_be.h:43
HtmlObjectType_Grid
@ HtmlObjectType_Grid
Definition htmlobject_be.h:50
HtmlObjectType_UnorderedList
@ HtmlObjectType_UnorderedList
Definition htmlobject_be.h:48
HtmlObjectType_GridEntry
@ HtmlObjectType_GridEntry
Definition htmlobject_be.h:51
HtmlObjectType_Unknown
@ HtmlObjectType_Unknown
Definition htmlobject_be.h:44
HtmlObjectType_Count
@ HtmlObjectType_Count
Definition htmlobject_be.h:55
HtmlObjectType_OrderedList
@ HtmlObjectType_OrderedList
Definition htmlobject_be.h:47
HtmlObjectType_Control
@ HtmlObjectType_Control
Definition htmlobject_be.h:52
HtmlObjectType_Image
@ HtmlObjectType_Image
Definition htmlobject_be.h:53
HtmlObjectType_Box
@ HtmlObjectType_Box
Definition htmlobject_be.h:45
HtmlObjectType_Word
@ HtmlObjectType_Word
Definition htmlobject_be.h:46
HtmlObjectType_ListEntry
@ HtmlObjectType_ListEntry
Definition htmlobject_be.h:49
HtmlObject_GetConfiguredWidth
GWENHYWFAR_API int HtmlObject_GetConfiguredWidth(const HTML_OBJECT *o)
HtmlObject_SetFlags
GWENHYWFAR_API void HtmlObject_SetFlags(HTML_OBJECT *o, uint32_t fl)
HtmlObject_free
GWENHYWFAR_API void HtmlObject_free(HTML_OBJECT *o)
HtmlObject_Attach
GWENHYWFAR_API void HtmlObject_Attach(HTML_OBJECT *o)
HtmlObject_SetLayoutFn
GWENHYWFAR_API HTML_OBJECT_LAYOUT_FN HtmlObject_SetLayoutFn(HTML_OBJECT *o, HTML_OBJECT_LAYOUT_FN fn)
HtmlObject_GetY
GWENHYWFAR_API int HtmlObject_GetY(const HTML_OBJECT *o)
HtmlObject_SetProperties
GWENHYWFAR_API void HtmlObject_SetProperties(HTML_OBJECT *o, HTML_PROPS *pr)
HTML_OBJECT_LAYOUT_FN
int(* HTML_OBJECT_LAYOUT_FN)(HTML_OBJECT *o)
Definition htmlobject_be.h:41
HtmlObject_SetWidth
GWENHYWFAR_API void HtmlObject_SetWidth(HTML_OBJECT *o, int i)
HtmlObject_GetProperties
GWENHYWFAR_API HTML_PROPS * HtmlObject_GetProperties(const HTML_OBJECT *o)
HtmlObject_SetX
GWENHYWFAR_API void HtmlObject_SetX(HTML_OBJECT *o, int i)
HtmlObject_GetConfiguredHeight
GWENHYWFAR_API int HtmlObject_GetConfiguredHeight(const HTML_OBJECT *o)
HtmlObject_GetWidth
GWENHYWFAR_API int HtmlObject_GetWidth(const HTML_OBJECT *o)
HtmlObject_SetText
GWENHYWFAR_API void HtmlObject_SetText(HTML_OBJECT *o, const char *s)
HtmlObject_GetX
GWENHYWFAR_API int HtmlObject_GetX(const HTML_OBJECT *o)
HtmlObject_GetHeight
GWENHYWFAR_API int HtmlObject_GetHeight(const HTML_OBJECT *o)
HtmlObject_SetHeight
GWENHYWFAR_API void HtmlObject_SetHeight(HTML_OBJECT *o, int i)
HTML_OBJECT
struct HTML_OBJECT HTML_OBJECT
Definition htmlobject_be.h:25
HtmlObject_SubFlags
GWENHYWFAR_API void HtmlObject_SubFlags(HTML_OBJECT *o, uint32_t fl)
HtmlObject_SetConfiguredWidth
GWENHYWFAR_API void HtmlObject_SetConfiguredWidth(HTML_OBJECT *o, int i)
htmlprops_be.h
HTML_PROPS
struct HTML_PROPS HTML_PROPS
Definition htmlprops_be.h:15
inherit.h
GWEN_INHERIT_FUNCTION_LIB_DEFS
#define GWEN_INHERIT_FUNCTION_LIB_DEFS(t, decl)
Definition inherit.h:125
tree.h
GWEN_TREE_FUNCTION_LIB_DEFS
#define GWEN_TREE_FUNCTION_LIB_DEFS(t, pr, decl)
Definition tree.h:384
xmlctx.h
GWEN_XML_CONTEXT
struct GWEN_XML_CONTEXT GWEN_XML_CONTEXT
Definition xmlctx.h:39