Graphviz 12.0.1~dev.20240716.0800
Loading...
Searching...
No Matches
glcompfont.h File Reference
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <glcomp/opengl.h>
#include <glcomp/glcompdefs.h>
#include <GL/glut.h>
Include dependency graph for glcompfont.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void glprintfglut (void *font, float xpos, float ypos, float zpos, char *bf)
 
glCompFontglNewFont (glCompSet *s, char *text, glCompColor *c, char *fontdesc, int fs, bool is2D)
 
glCompFontglNewFontFromParent (glCompObj *o, char *text)
 
void glDeleteFont (glCompFont *f)
 
void glCompDrawText (glCompFont *f, float x, float y)
 
void glCompRenderText (glCompFont *f, glCompObj *parentObj)
 
void glCompDrawText3D (glCompFont *f, float x, float y, double z, float w, float h)
 

Function Documentation

◆ glCompDrawText()

void glCompDrawText ( glCompFont f,
float  x,
float  y 
)

Definition at line 136 of file glcompfont.c.

References glCompTex::data, glCompTex::height, glCompFont::tex, and glCompTex::width.

Referenced by glCompRenderText().

Here is the caller graph for this function:

◆ glCompDrawText3D()

void glCompDrawText3D ( glCompFont f,
float  x,
float  y,
double  z,
float  w,
float  h 
)

Definition at line 117 of file glcompfont.c.

References glCompTex::id, glCompFont::tex, and z.

Referenced by EmbedText().

Here is the caller graph for this function:

◆ glCompRenderText()

void glCompRenderText ( glCompFont f,
glCompObj parentObj 
)

Definition at line 142 of file glcompfont.c.

References glCompFont::color, _glCompObj::common, glCompDrawText(), glCompSetColor(), glFontHJustifyCenter, glFontHJustifyLeft, glFontHJustifyNone, glFontHJustifyRight, glFontVJustifyBottom, glFontVJustifyCenter, glFontVJustifyNone, glFontVJustifyTop, glCompTex::height, glCompJustify::HJustify, glCompFont::justify, ref(), glCompCommon::refPos, glCompFont::tex, glCompJustify::VJustify, glCompTex::width, and glCompPoint::x.

Referenced by glCompLabelDraw().

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

◆ glDeleteFont()

void glDeleteFont ( glCompFont f)

Definition at line 38 of file glcompfont.c.

References glCompFont::fontdesc, free(), glCompDeleteTexture(), and glCompFont::tex.

Referenced by glCompEmptyCommon().

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

◆ glNewFont()

glCompFont * glNewFont ( glCompSet s,
char *  text,
glCompColor c,
char *  fontdesc,
int  fs,
bool  is2D 
)

Definition at line 47 of file glcompfont.c.

References glCompColor::A, glCompColor::B, font, glCompColor::G, GL_FONTHJUSTIFY, GL_FONTOPTIMIZE, GL_FONTVJUSTIFY, glCompSetAddNewTexLabel(), gv_alloc(), gv_strdup(), NULL, and glCompColor::R.

Referenced by EmbedText(), and glNewFontFromParent().

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

◆ glNewFontFromParent()

glCompFont * glNewFontFromParent ( glCompObj o,
char *  text 
)

Definition at line 75 of file glcompfont.c.

References glCompColor::A, glCompColor::B, _glCompObj::common, glCompCommon::compset, font, glCompColor::G, GLCOMPSET_FONT_COLOR_ALPHA, GLCOMPSET_FONT_COLOR_B, GLCOMPSET_FONT_COLOR_G, GLCOMPSET_FONT_COLOR_R, GLCOMPSET_FONT_DESC, GLCOMPSET_FONT_SIZE, glCompSetAddNewTexLabel(), glNewFont(), gv_alloc(), gv_strdup(), glCompCommon::parent, parent, and glCompColor::R.

Referenced by glCompButtonNew(), glCompInitCommon(), glCompLabelNew(), glCompPanelNew(), and glCompSetNew().

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

◆ glprintfglut()

void glprintfglut ( void *  font,
float  xpos,
float  ypos,
float  zpos,
char *  bf 
)

Definition at line 31 of file glcompfont.c.

References font, and print_bitmap_string().

Referenced by renderEdgeLabels(), renderNodeLabels(), and renderSelectedNodes().

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