Graphviz 13.0.0~dev.20241220.2304
|
#include <glcomp/glcompset.h>
#include <glcomp/glcomppanel.h>
#include <glcomp/glcomplabel.h>
#include <glcomp/glcompbutton.h>
#include <glcomp/glcompmouse.h>
#include <glcomp/glutils.h>
#include <stdlib.h>
#include <util/alloc.h>
Go to the source code of this file.
Functions | |
static int | glCompPointInObject (glCompObj *p, float x, float y) |
static glCompObj * | glCompGetObjByMouse (glCompSet *s, glCompMouse *m) |
static void | glCompMouseMove (void *obj, float x, float y) |
static void | glCompSetMouseClick (void *obj, float x, float y, glMouseButtonType t) |
static void | glCompSetMouseDown (void *obj, float x, float y, glMouseButtonType t) |
static void | glCompSetMouseUp (void *obj, float x, float y, glMouseButtonType t) |
void | glCompInitCommon (glCompObj *childObj, glCompObj *parentObj, float x, float y) |
void | glCompEmptyCommon (glCompCommon *c) |
glCompSet * | glCompSetNew (int w, int h) |
void | glCompSetAddObj (glCompSet *s, glCompObj *obj) |
void | glCompDrawBegin (void) |
void | glCompDrawEnd (void) |
void | glCompSetDraw (glCompSet *s) |
void | glcompsetUpdateBorder (glCompSet *s, int w, int h) |
Variables | |
static float | startX |
static float | startY |
void glCompDrawBegin | ( | void | ) |
Definition at line 210 of file glcompset.c.
Referenced by glCompSetDraw().
void glCompDrawEnd | ( | void | ) |
Definition at line 230 of file glcompset.c.
Referenced by glCompSetDraw().
void glCompEmptyCommon | ( | glCompCommon * | c | ) |
Definition at line 177 of file glcompset.c.
References glCompCommon::font, and glDeleteFont().
Referenced by glCompImageDelete().
|
static |
Definition at line 31 of file glcompset.c.
References glCompObj_::common, glCompPointInObject(), glCompCommon::layer, NULL, glCompMouse::x, and glCompMouse::y.
Referenced by glCompSetMouseDown(), and glCompSetMouseUp().
Definition at line 114 of file glcompset.c.
References glCompColor::A, glCompCommon::align, glCompCommon::anchor, glCompColor::B, glCompCommon::borderWidth, glCompAnchor::bottom, glCompAnchor::bottomAnchor, glCompCommon::callbacks, glCompCallBacks::click, glCompCommon::color, glCompObj_::common, glCompCommon::data, glCompCallBacks::doubleclick, glCompCallBacks::draw, glCompCommon::enabled, glCompCommon::font, glCompCommon::functions, glCompColor::G, glAlignNone, GLCOMP_DEFAULT_HEIGHT, GLCOMP_DEFAULT_WIDTH, GLCOMPSET_BORDERWIDTH, GLCOMPSET_PANEL_COLOR_ALPHA, GLCOMPSET_PANEL_COLOR_B, GLCOMPSET_PANEL_COLOR_G, GLCOMPSET_PANEL_COLOR_R, glCompSetAddObj(), glNewFontFromParent(), glCompCommon::height, glCompCommon::layer, glCompAnchor::left, glCompAnchor::leftAnchor, glCompCallBacks::mousedown, glCompCallBacks::mousein, glCompCallBacks::mouseout, glCompCallBacks::mouseover, glCompCallBacks::mouseup, NULL, glCompCommon::parent, parent, glCompCommon::pos, glCompColor::R, glCompAnchor::right, glCompAnchor::rightAnchor, glCompAnchor::top, glCompAnchor::topAnchor, glCompCommon::visible, glCompCommon::width, glCompPoint::x, glCompPoint::y, and glCompPoint::z.
Referenced by glCompButtonNew(), glCompImageNew(), glCompLabelNew(), glCompPanelNew(), and glCompSetNew().
|
static |
Definition at line 48 of file glcompset.c.
References glCompSet_::base, glCompCommon::callbacks, glCompObj_::common, glCompMouse::dragX, glCompMouse::dragY, glCompCommon::height, glCompSet_::mouse, glCompCallBacks::mouseover, startX, startY, glCompMouse::x, and glCompMouse::y.
Referenced by glCompSetNew().
|
static |
Definition at line 23 of file glcompset.c.
References glCompObj_::common, glCompCommon::height, glCompCommon::refPos, glCompCommon::width, glCompPoint::x, and glCompPoint::y.
Referenced by glCompGetObjByMouse().
Definition at line 202 of file glcompset.c.
References glCompObj_::common, glCompCommon::compset, and gv_recalloc().
Referenced by glCompInitCommon().
void glCompSetDraw | ( | glCompSet * | s | ) |
Definition at line 239 of file glcompset.c.
References glCompDrawBegin(), and glCompDrawEnd().
Referenced by glexpose_main().
|
static |
Definition at line 59 of file glcompset.c.
References glCompCommon::callbacks, glCompCallBacks::click, and glCompObj_::common.
Referenced by glCompSetMouseUp().
|
static |
Definition at line 68 of file glcompset.c.
References glCompSet_::base, glCompCommon::callbacks, glCompMouse::clickedObj, glCompObj_::common, glCompCommon::compset, glCompMouse::down, glCompCommon::functions, glCompGetObjByMouse(), glMouseLeftButton, glCompCommon::height, glCompSet_::mouse, glCompCallBacks::mousedown, startX, startY, glCompMouse::t, glCompMouse::x, and glCompMouse::y.
Referenced by glCompSetNew().
|
static |
Definition at line 89 of file glcompset.c.
References glCompSet_::base, glCompCommon::callbacks, glCompCallBacks::click, glCompMouse::clickedObj, glCompObj_::common, glCompMouse::down, glCompCommon::functions, glCompGetObjByMouse(), glCompSetMouseClick(), glMouseLeftButton, glCompCommon::height, glCompSet_::mouse, glCompCallBacks::mouseup, NULL, startX, startY, glCompMouse::x, and glCompMouse::y.
Referenced by glCompSetNew().
glCompSet * glCompSetNew | ( | int | w, |
int | h | ||
) |
Definition at line 182 of file glcompset.c.
References glCompInitCommon(), glCompMouseInit(), glCompMouseMove(), glCompSetMouseDown(), glCompSetMouseUp(), glDeleteFont(), glNewFontFromParent(), gv_alloc(), and NULL.
Referenced by glcreate_gl_topview_menu().
void glcompsetUpdateBorder | ( | glCompSet * | s, |
int | w, | ||
int | h | ||
) |
Definition at line 247 of file glcompset.c.
Referenced by cb_reshape(), and configure_event().
|
static |
Definition at line 21 of file glcompset.c.
Referenced by glCompMouseMove(), glCompSetMouseDown(), and glCompSetMouseUp().
|
static |
Definition at line 21 of file glcompset.c.
Referenced by glCompMouseMove(), glCompSetMouseDown(), and glCompSetMouseUp().