Graphviz 12.0.1~dev.20240716.0800
|
#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>
Go to the source code of this file.
Functions | |
glCompImage * | glCompImageNew (glCompObj *par, float x, float y) |
glCompImage * | glCompImageNewFile (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) |
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().
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().
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().
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().
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().
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().