Graphviz 12.0.1~dev.20240716.0800
Loading...
Searching...
No Matches
glcompimage.c File Reference
#include <cgraph/alloc.h>
#include <glcomp/glcompimage.h>
#include <glcomp/glcompfont.h>
#include <glcomp/glcompset.h>
#include <glcomp/glutils.h>
#include <glcomp/glcomptexture.h>
#include <stdbool.h>
Include dependency graph for glcompimage.c:

Go to the source code of this file.

Functions

glCompImageglCompImageNew (glCompObj *par, float x, float y)
 
glCompImageglCompImageNewFile (float x, float y, char *imgfile)
 
void glCompImageDelete (glCompImage *p)
 
int glCompImageLoad (glCompImage *i, unsigned char *data, int width, int height, bool is2D)
 
int glCompImageLoadPng (glCompImage *i, char *pngFile)
 
void glCompImageDraw (void *obj)
 

Function Documentation

◆ glCompImageDelete()

void glCompImageDelete ( glCompImage p)

Definition at line 50 of file glcompimage.c.

References glCompImage::common, free(), glCompDeleteTexture(), glCompEmptyCommon(), and glCompImage::texture.

Referenced by glCompButtonAddPngGlyph(), and glCompImageNewFile().

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

◆ glCompImageDraw()

void glCompImageDraw ( void *  obj)

Definition at line 82 of file glcompimage.c.

References glCompImage::common, glCompTex::data, glCompCalcWidget(), GLCOMPSET_BEVEL_DIFF, glCompTex::height, glCompImage::height, glCompTex::id, glCompCommon::layer, glCompCommon::parent, ref(), glCompImage::texture, glCompCommon::visible, glCompTex::width, and glCompImage::width.

Referenced by glCompImageNew().

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

◆ glCompImageLoad()

int glCompImageLoad ( glCompImage i,
unsigned char *  data,
int  width,
int  height,
bool  is2D 
)

Definition at line 58 of file glcompimage.c.

References glCompImage::common, glCompCommon::compset, glCompDeleteTexture(), glCompSetAddNewTexImage(), glCompCommon::height, NULL, glCompImage::texture, and glCompCommon::width.

Referenced by glCompImageLoadPng(), and glCompImageNewFile().

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

◆ glCompImageLoadPng()

int glCompImageLoadPng ( glCompImage i,
char *  pngFile 
)

Definition at line 75 of file glcompimage.c.

References glCompImageLoad(), and glCompLoadPng().

Referenced by glCompButtonAddPngGlyph(), and glcreate_gl_topview_menu().

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

◆ glCompImageNew()

glCompImage * glCompImageNew ( glCompObj par,
float  x,
float  y 
)

Definition at line 19 of file glcompimage.c.

References glCompImage::common, glCompCallBacks::draw, glCompCommon::functions, glCompImageDraw(), glCompInitCommon(), glImageObj, gv_alloc(), NULL, glCompImage::objType, glCompImage::stretch, and glCompImage::texture.

Referenced by glCompButtonAddPngGlyph(), glCompImageNewFile(), and glcreate_gl_topview_menu().

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

◆ glCompImageNewFile()

glCompImage * glCompImageNewFile ( float  x,
float  y,
char *  imgfile 
)

Definition at line 36 of file glcompimage.c.

References glCompImageDelete(), glCompImageLoad(), glCompImageNew(), glCompLoadPng(), and NULL.

Referenced by InsertImage().

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