Graphviz 13.0.0~dev.20241220.2304
Loading...
Searching...
No Matches
glcompbutton.c File Reference
#include <glcomp/glcompbutton.h>
#include <glcomp/glcomplabel.h>
#include <glcomp/glcompimage.h>
#include <glcomp/glcompfont.h>
#include <glcomp/glutils.h>
#include <glcomp/glcompset.h>
#include <stdbool.h>
#include <stddef.h>
#include <string.h>
#include <GL/glut.h>
#include <util/alloc.h>
Include dependency graph for glcompbutton.c:

Go to the source code of this file.

Functions

glCompButtonglCompButtonNew (void *par, float x, float y, float w, float h, char *caption)
 
int glCompButtonAddPngGlyph (glCompButton *b, const char *fileName)
 
void glCompButtonHide (glCompButton *p)
 
void glCompButtonShow (glCompButton *p)
 
void glCompButtonDraw (glCompButton *p)
 
void glCompButtonClick (glCompObj *o, float x, float y, glMouseButtonType t)
 
void glCompButtonDoubleClick (glCompObj *obj, float x, float y, glMouseButtonType t)
 
void glCompButtonMouseDown (glCompObj *obj, float x, float y, glMouseButtonType t)
 
void glCompButtonMouseIn (glCompObj *obj, float x, float y)
 
void glCompButtonMouseOut (glCompObj *obj, float x, float y)
 
void glCompButtonMouseOver (glCompObj *obj, float x, float y)
 
void glCompButtonMouseUp (glCompObj *obj, float x, float y, glMouseButtonType t)
 

Function Documentation

◆ glCompButtonAddPngGlyph()

int glCompButtonAddPngGlyph ( glCompButton b,
const char *  fileName 
)

Definition at line 64 of file glcompbutton.c.

References glCompCommon::align, glCompCommon::anchor, glCompImage::base, glCompLabel::base, glCompAnchor::bottom, glCompAnchor::bottomAnchor, glCompObj_::common, fileName(), glAlignNone, glCompImageDelete(), glCompImageLoadPng(), glCompImageNew(), glCompButton::image, glCompButton::label, glCompAnchor::left, glCompAnchor::leftAnchor, glCompAnchor::right, glCompAnchor::rightAnchor, glCompAnchor::top, glCompAnchor::topAnchor, and glCompCommon::width.

Referenced by glcreate_gl_topview_menu().

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

◆ glCompButtonClick()

void glCompButtonClick ( glCompObj o,
float  x,
float  y,
glMouseButtonType  t 
)

Definition at line 135 of file glcompbutton.c.

References glCompButton::base, glCompCommon::callbacks, glCompCallBacks::click, glCompObj_::common, glCompButton::groupid, and glCompButton::status.

Referenced by glCompButtonNew().

Here is the caller graph for this function:

◆ glCompButtonDoubleClick()

void glCompButtonDoubleClick ( glCompObj obj,
float  x,
float  y,
glMouseButtonType  t 
)

Definition at line 147 of file glcompbutton.c.

References glCompCommon::callbacks, glCompObj_::common, and glCompCallBacks::doubleclick.

Referenced by glCompButtonNew().

Here is the caller graph for this function:

◆ glCompButtonDraw()

void glCompButtonDraw ( glCompButton p)

Definition at line 117 of file glcompbutton.c.

References glCompImage::base, glCompLabel::base, glCompButton::base, glCompCommon::borderWidth, glCompCommon::callbacks, glCompObj_::common, glCompCallBacks::draw, glCompCommon::functions, glCompCalcWidget(), glCompDrawRectPrism(), glCompButton::image, glCompButton::label, glCompCommon::parent, ref(), glCompButton::status, and glCompCommon::visible.

Referenced by glCompButtonNew().

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

◆ glCompButtonHide()

void glCompButtonHide ( glCompButton p)

Definition at line 99 of file glcompbutton.c.

References glCompImage::base, glCompLabel::base, glCompButton::base, glCompObj_::common, glCompButton::image, glCompButton::label, and glCompCommon::visible.

Referenced by glcreate_gl_topview_menu(), menu_switch_to_fisheye(), and switch2D3D().

Here is the caller graph for this function:

◆ glCompButtonMouseDown()

void glCompButtonMouseDown ( glCompObj obj,
float  x,
float  y,
glMouseButtonType  t 
)

Definition at line 154 of file glcompbutton.c.

References glCompCommon::callbacks, glCompObj_::common, and glCompCallBacks::mousedown.

Referenced by glCompButtonNew().

Here is the caller graph for this function:

◆ glCompButtonMouseIn()

void glCompButtonMouseIn ( glCompObj obj,
float  x,
float  y 
)

Definition at line 166 of file glcompbutton.c.

References glCompCommon::callbacks, glCompObj_::common, and glCompCallBacks::mousein.

Referenced by glCompButtonNew().

Here is the caller graph for this function:

◆ glCompButtonMouseOut()

void glCompButtonMouseOut ( glCompObj obj,
float  x,
float  y 
)

Definition at line 171 of file glcompbutton.c.

References glCompCommon::callbacks, glCompObj_::common, and glCompCallBacks::mouseout.

Referenced by glCompButtonNew().

Here is the caller graph for this function:

◆ glCompButtonMouseOver()

void glCompButtonMouseOver ( glCompObj obj,
float  x,
float  y 
)

Definition at line 176 of file glcompbutton.c.

References glCompCommon::callbacks, glCompObj_::common, and glCompCallBacks::mouseover.

Referenced by glCompButtonNew().

Here is the caller graph for this function:

◆ glCompButtonMouseUp()

void glCompButtonMouseUp ( glCompObj obj,
float  x,
float  y,
glMouseButtonType  t 
)

Definition at line 181 of file glcompbutton.c.

References glCompCommon::callbacks, glCompObj_::common, and glCompCallBacks::mouseup.

Referenced by glCompButtonNew().

Here is the caller graph for this function:

◆ glCompButtonNew()

glCompButton * glCompButtonNew ( void *  par,
float  x,
float  y,
float  w,
float  h,
char *  caption 
)

Definition at line 23 of file glcompbutton.c.

References glCompColor::A, glCompCommon::align, glCompColor::B, glCompLabel::base, glCompButton::base, glCompCommon::borderWidth, glCompCommon::callbacks, glCompCallBacks::click, glCompCommon::color, glCompObj_::common, glCompCallBacks::doubleclick, glCompCallBacks::draw, glCompCommon::font, glCompCommon::functions, glCompColor::G, glAlignParent, glCompButtonClick(), glCompButtonDoubleClick(), glCompButtonDraw(), glCompButtonMouseDown(), glCompButtonMouseIn(), glCompButtonMouseOut(), glCompButtonMouseOver(), glCompButtonMouseUp(), glCompInitCommon(), glCompLabelNew(), GLCOMPSET_BUTTON_BEVEL, GLCOMPSET_BUTTON_COLOR_ALPHA, GLCOMPSET_BUTTON_COLOR_B, GLCOMPSET_BUTTON_COLOR_G, GLCOMPSET_BUTTON_COLOR_R, glDeleteFont(), glFontHJustifyCenter, glFontVJustifyCenter, glNewFontFromParent(), glCompButton::groupid, gv_alloc(), glCompCommon::height, glCompJustify::HJustify, glCompButton::image, glCompFont::justify, glCompButton::label, glCompCallBacks::mousedown, glCompCallBacks::mousein, glCompCallBacks::mouseout, glCompCallBacks::mouseover, glCompCallBacks::mouseup, NULL, glCompColor::R, glCompButton::status, glCompJustify::VJustify, and glCompCommon::width.

Referenced by glcreate_gl_topview_menu().

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

◆ glCompButtonShow()

void glCompButtonShow ( glCompButton p)

Definition at line 108 of file glcompbutton.c.

References glCompImage::base, glCompLabel::base, glCompButton::base, glCompObj_::common, glCompButton::image, glCompButton::label, and glCompCommon::visible.

Referenced by menu_switch_to_fisheye(), and switch2D3D().

Here is the caller graph for this function: