gwenhywfar 5.10.1
Macros | Functions
htmlobject.c File Reference
#include "htmlobject_p.h"
#include <gwenhywfar/misc.h>
#include <gwenhywfar/debug.h>
#include <assert.h>
#include <string.h>
Include dependency graph for htmlobject.c:

Go to the source code of this file.

Macros

#define DISABLE_DEBUGLOG
 

Functions

void HtmlObject_AddFlags (HTML_OBJECT *o, uint32_t fl)
 
void HtmlObject_Attach (HTML_OBJECT *o)
 
void HtmlObject_free (HTML_OBJECT *o)
 
int HtmlObject_GetConfiguredHeight (const HTML_OBJECT *o)
 
int HtmlObject_GetConfiguredWidth (const HTML_OBJECT *o)
 
uint32_t HtmlObject_GetFlags (const HTML_OBJECT *o)
 
int HtmlObject_GetHeight (const HTML_OBJECT *o)
 
HTML_OBJECT_TYPE HtmlObject_GetObjectType (const HTML_OBJECT *o)
 
HTML_PROPSHtmlObject_GetProperties (const HTML_OBJECT *o)
 
const char * HtmlObject_GetText (const HTML_OBJECT *o)
 
int HtmlObject_GetWidth (const HTML_OBJECT *o)
 
int HtmlObject_GetX (const HTML_OBJECT *o)
 
GWEN_XML_CONTEXTHtmlObject_GetXmlCtx (const HTML_OBJECT *o)
 
int HtmlObject_GetY (const HTML_OBJECT *o)
 
int HtmlObject_Layout (HTML_OBJECT *o)
 
HTML_OBJECTHtmlObject_new (GWEN_XML_CONTEXT *ctx, HTML_OBJECT_TYPE t)
 
void HtmlObject_SetConfiguredHeight (HTML_OBJECT *o, int i)
 
void HtmlObject_SetConfiguredWidth (HTML_OBJECT *o, int i)
 
void HtmlObject_SetFlags (HTML_OBJECT *o, uint32_t fl)
 
void HtmlObject_SetHeight (HTML_OBJECT *o, int i)
 
HTML_OBJECT_LAYOUT_FN HtmlObject_SetLayoutFn (HTML_OBJECT *o, HTML_OBJECT_LAYOUT_FN fn)
 
void HtmlObject_SetObjectType (HTML_OBJECT *o, HTML_OBJECT_TYPE t)
 
void HtmlObject_SetProperties (HTML_OBJECT *o, HTML_PROPS *pr)
 
void HtmlObject_SetText (HTML_OBJECT *o, const char *s)
 
void HtmlObject_SetWidth (HTML_OBJECT *o, int i)
 
void HtmlObject_SetX (HTML_OBJECT *o, int i)
 
void HtmlObject_SetY (HTML_OBJECT *o, int i)
 
void HtmlObject_SubFlags (HTML_OBJECT *o, uint32_t fl)
 

Macro Definition Documentation

◆ DISABLE_DEBUGLOG

#define DISABLE_DEBUGLOG

Definition at line 14 of file htmlobject.c.

Function Documentation

◆ HtmlObject_AddFlags()

void HtmlObject_AddFlags ( HTML_OBJECT o,
uint32_t  fl 
)

Definition at line 275 of file htmlobject.c.

Referenced by HtmlGroup_Box_StartTag(), HtmlGroup_TableRow_StartTag(), and HtmlObject_Grid_new().

Here is the caller graph for this function:

◆ HtmlObject_Attach()

void HtmlObject_Attach ( HTML_OBJECT o)

Definition at line 68 of file htmlobject.c.

◆ HtmlObject_free()

void HtmlObject_free ( HTML_OBJECT o)

Definition at line 47 of file htmlobject.c.

References GWEN_FREE_OBJECT, GWEN_INHERIT_FINI, GWEN_TREE_FINI, and HtmlProps_free().

Here is the call graph for this function:

◆ HtmlObject_GetConfiguredHeight()

int HtmlObject_GetConfiguredHeight ( const HTML_OBJECT o)

Definition at line 215 of file htmlobject.c.

◆ HtmlObject_GetConfiguredWidth()

int HtmlObject_GetConfiguredWidth ( const HTML_OBJECT o)

Definition at line 197 of file htmlobject.c.

◆ HtmlObject_GetFlags()

uint32_t HtmlObject_GetFlags ( const HTML_OBJECT o)

Definition at line 255 of file htmlobject.c.

Referenced by dumpObject(), and HtmlObject_Box_Layout().

Here is the caller graph for this function:

◆ HtmlObject_GetHeight()

int HtmlObject_GetHeight ( const HTML_OBJECT o)

Definition at line 179 of file htmlobject.c.

Referenced by FOX16_HtmlCtx::_paintAt(), dumpObject(), FOX16_HtmlCtx::getHeight(), HtmlCtx_GetHeight(), HtmlObject_Box_Layout(), and HtmlObject_Grid_Layout().

Here is the caller graph for this function:

◆ HtmlObject_GetObjectType()

HTML_OBJECT_TYPE HtmlObject_GetObjectType ( const HTML_OBJECT o)

Definition at line 86 of file htmlobject.c.

Referenced by FOX16_HtmlCtx::_paint(), FOX16_HtmlCtx::_paintAt(), dumpObject(), HtmlCtx_SetText(), and HtmlGroup_UnorderedList_StartTag().

Here is the caller graph for this function:

◆ HtmlObject_GetProperties()

HTML_PROPS * HtmlObject_GetProperties ( const HTML_OBJECT o)

Definition at line 104 of file htmlobject.c.

Referenced by FOX16_HtmlCtx::_paint(), FOX16_HtmlCtx::_paintAt(), dumpObject(), HtmlCtx_SetStandardProps(), HtmlObject_Box_Layout(), and HtmlObject_Word_Layout().

Here is the caller graph for this function:

◆ HtmlObject_GetText()

const char * HtmlObject_GetText ( const HTML_OBJECT o)

Definition at line 233 of file htmlobject.c.

Referenced by FOX16_HtmlCtx::_paint(), FOX16_HtmlCtx::_paintAt(), dumpObject(), HtmlCtx_SetText(), and HtmlObject_Word_Layout().

Here is the caller graph for this function:

◆ HtmlObject_GetWidth()

int HtmlObject_GetWidth ( const HTML_OBJECT o)

Definition at line 161 of file htmlobject.c.

Referenced by FOX16_HtmlCtx::_paintAt(), dumpObject(), FOX16_HtmlCtx::getWidth(), HtmlCtx_GetWidth(), HtmlObject_Box_Layout(), and HtmlObject_Grid_Layout().

Here is the caller graph for this function:

◆ HtmlObject_GetX()

int HtmlObject_GetX ( const HTML_OBJECT o)

Definition at line 125 of file htmlobject.c.

Referenced by FOX16_HtmlCtx::_paint(), FOX16_HtmlCtx::_paintAt(), dumpObject(), and HtmlObject_Box_Layout().

Here is the caller graph for this function:

◆ HtmlObject_GetXmlCtx()

GWEN_XML_CONTEXT * HtmlObject_GetXmlCtx ( const HTML_OBJECT o)

Definition at line 77 of file htmlobject.c.

Referenced by HtmlObject_Box_Layout(), and HtmlObject_Word_Layout().

Here is the caller graph for this function:

◆ HtmlObject_GetY()

int HtmlObject_GetY ( const HTML_OBJECT o)

Definition at line 143 of file htmlobject.c.

Referenced by FOX16_HtmlCtx::_paint(), FOX16_HtmlCtx::_paintAt(), and dumpObject().

Here is the caller graph for this function:

◆ HtmlObject_Layout()

int HtmlObject_Layout ( HTML_OBJECT o)

Definition at line 295 of file htmlobject.c.

Referenced by HtmlCtx_Layout(), HtmlObject_Box_Layout(), and HtmlObject_Grid_Layout().

Here is the caller graph for this function:

◆ HtmlObject_new()

HTML_OBJECT * HtmlObject_new ( GWEN_XML_CONTEXT ctx,
HTML_OBJECT_TYPE  t 
)

Definition at line 31 of file htmlobject.c.

References GWEN_INHERIT_INIT, GWEN_NEW_OBJECT, and GWEN_TREE_INIT.

Referenced by HtmlGroup_Box_StartTag(), HtmlObject_Box_new(), HtmlObject_Grid_new(), HtmlObject_Image_new(), and HtmlObject_Word_new().

Here is the caller graph for this function:

◆ HtmlObject_SetConfiguredHeight()

void HtmlObject_SetConfiguredHeight ( HTML_OBJECT o,
int  i 
)

Definition at line 224 of file htmlobject.c.

◆ HtmlObject_SetConfiguredWidth()

void HtmlObject_SetConfiguredWidth ( HTML_OBJECT o,
int  i 
)

Definition at line 206 of file htmlobject.c.

◆ HtmlObject_SetFlags()

void HtmlObject_SetFlags ( HTML_OBJECT o,
uint32_t  fl 
)

Definition at line 265 of file htmlobject.c.

◆ HtmlObject_SetHeight()

void HtmlObject_SetHeight ( HTML_OBJECT o,
int  i 
)

Definition at line 188 of file htmlobject.c.

Referenced by HtmlCtx_Layout(), HtmlObject_Box_Layout(), HtmlObject_Grid_Layout(), HtmlObject_Image_Layout(), and HtmlObject_Word_Layout().

Here is the caller graph for this function:

◆ HtmlObject_SetLayoutFn()

HTML_OBJECT_LAYOUT_FN HtmlObject_SetLayoutFn ( HTML_OBJECT o,
HTML_OBJECT_LAYOUT_FN  fn 
)

Definition at line 310 of file htmlobject.c.

Referenced by HtmlObject_Box_new(), HtmlObject_Grid_new(), HtmlObject_Image_new(), and HtmlObject_Word_new().

Here is the caller graph for this function:

◆ HtmlObject_SetObjectType()

void HtmlObject_SetObjectType ( HTML_OBJECT o,
HTML_OBJECT_TYPE  t 
)

Definition at line 95 of file htmlobject.c.

Referenced by HtmlObject_GridEntry_new().

Here is the caller graph for this function:

◆ HtmlObject_SetProperties()

void HtmlObject_SetProperties ( HTML_OBJECT o,
HTML_PROPS pr 
)

Definition at line 113 of file htmlobject.c.

References HtmlProps_Attach(), and HtmlProps_free().

Referenced by HtmlCtx_SetStandardProps(), HtmlCtx_SetText(), HtmlGroup_Box_AddData(), HtmlGroup_Box_StartTag(), HtmlGroup_TableRow_StartTag(), and HtmlGroup_UnorderedList_StartTag().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ HtmlObject_SetText()

void HtmlObject_SetText ( HTML_OBJECT o,
const char *  s 
)

Definition at line 242 of file htmlobject.c.

References NULL.

Referenced by HtmlObject_Word_new().

Here is the caller graph for this function:

◆ HtmlObject_SetWidth()

void HtmlObject_SetWidth ( HTML_OBJECT o,
int  i 
)

Definition at line 170 of file htmlobject.c.

Referenced by HtmlCtx_Layout(), HtmlObject_Box_Layout(), HtmlObject_Grid_Layout(), HtmlObject_Image_Layout(), and HtmlObject_Word_Layout().

Here is the caller graph for this function:

◆ HtmlObject_SetX()

void HtmlObject_SetX ( HTML_OBJECT o,
int  i 
)

Definition at line 134 of file htmlobject.c.

Referenced by HtmlObject_Box_Layout(), and HtmlObject_Grid_Layout().

Here is the caller graph for this function:

◆ HtmlObject_SetY()

void HtmlObject_SetY ( HTML_OBJECT o,
int  i 
)

Definition at line 152 of file htmlobject.c.

Referenced by HtmlObject_Box_Layout(), and HtmlObject_Grid_Layout().

Here is the caller graph for this function:

◆ HtmlObject_SubFlags()

void HtmlObject_SubFlags ( HTML_OBJECT o,
uint32_t  fl 
)

Definition at line 285 of file htmlobject.c.