gwenhywfar  5.10.1
Macros | Functions
o_image.c File Reference
#include "o_image_p.h"
Include dependency graph for o_image.c:

Go to the source code of this file.

Macros

#define DISABLE_DEBUGLOG
 

Functions

 GWEN_INHERIT (HTML_OBJECT, OBJECT_IMAGE)
 
void GWENHYWFAR_CB HtmlObject_Image_FreeData (GWEN_UNUSED void *bp, void *p)
 
HTML_IMAGEHtmlObject_Image_GetImage (const HTML_OBJECT *o)
 
int HtmlObject_Image_GetScaledHeight (const HTML_OBJECT *o)
 
int HtmlObject_Image_GetScaledWidth (const HTML_OBJECT *o)
 
static int HtmlObject_Image_Layout (HTML_OBJECT *o)
 
HTML_OBJECTHtmlObject_Image_new (GWEN_XML_CONTEXT *ctx)
 
void HtmlObject_Image_SetImage (HTML_OBJECT *o, HTML_IMAGE *img)
 
void HtmlObject_Image_SetScaledHeight (HTML_OBJECT *o, int i)
 
void HtmlObject_Image_SetScaledWidth (HTML_OBJECT *o, int i)
 

Macro Definition Documentation

◆ DISABLE_DEBUGLOG

#define DISABLE_DEBUGLOG

Definition at line 14 of file o_image.c.

Function Documentation

◆ GWEN_INHERIT()

GWEN_INHERIT ( HTML_OBJECT  ,
OBJECT_IMAGE   
)

◆ HtmlObject_Image_FreeData()

void GWENHYWFAR_CB HtmlObject_Image_FreeData ( GWEN_UNUSED void *  bp,
void *  p 
)

Definition at line 55 of file o_image.c.

References GWEN_FREE_OBJECT, and HtmlImage_free().

Referenced by HtmlObject_Image_new().

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

◆ HtmlObject_Image_GetImage()

HTML_IMAGE* HtmlObject_Image_GetImage ( const HTML_OBJECT o)

Definition at line 119 of file o_image.c.

References GWEN_INHERIT_GETDATA.

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

Here is the caller graph for this function:

◆ HtmlObject_Image_GetScaledHeight()

int HtmlObject_Image_GetScaledHeight ( const HTML_OBJECT o)

Definition at line 93 of file o_image.c.

References GWEN_INHERIT_GETDATA.

◆ HtmlObject_Image_GetScaledWidth()

int HtmlObject_Image_GetScaledWidth ( const HTML_OBJECT o)

Definition at line 67 of file o_image.c.

References GWEN_INHERIT_GETDATA.

◆ HtmlObject_Image_Layout()

static int HtmlObject_Image_Layout ( HTML_OBJECT o)
static

Definition at line 24 of file o_image.c.

References GWEN_INHERIT_GETDATA, HtmlObject_SetHeight(), and HtmlObject_SetWidth().

Referenced by HtmlObject_Image_new().

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

◆ HtmlObject_Image_new()

HTML_OBJECT* HtmlObject_Image_new ( GWEN_XML_CONTEXT ctx)

Definition at line 40 of file o_image.c.

References GWEN_INHERIT_SETDATA, GWEN_NEW_OBJECT, HtmlObject_Image_FreeData(), HtmlObject_Image_Layout(), HtmlObject_new(), HtmlObject_SetLayoutFn(), and HtmlObjectType_Image.

Referenced by HtmlGroup_Box_StartTag().

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

◆ HtmlObject_Image_SetImage()

void HtmlObject_Image_SetImage ( HTML_OBJECT o,
HTML_IMAGE img 
)

Definition at line 132 of file o_image.c.

References GWEN_INHERIT_GETDATA, HtmlImage_Attach(), and HtmlImage_free().

Referenced by HtmlGroup_Box_StartTag().

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

◆ HtmlObject_Image_SetScaledHeight()

void HtmlObject_Image_SetScaledHeight ( HTML_OBJECT o,
int  i 
)

Definition at line 106 of file o_image.c.

References GWEN_INHERIT_GETDATA.

Referenced by HtmlGroup_Box_StartTag().

Here is the caller graph for this function:

◆ HtmlObject_Image_SetScaledWidth()

void HtmlObject_Image_SetScaledWidth ( HTML_OBJECT o,
int  i 
)

Definition at line 80 of file o_image.c.

References GWEN_INHERIT_GETDATA.

Referenced by HtmlGroup_Box_StartTag().

Here is the caller graph for this function: