Graphviz 13.0.0~dev.20241220.2304
Loading...
Searching...
No Matches
glcompset.c File Reference
#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>
Include dependency graph for glcompset.c:

Go to the source code of this file.

Functions

static int glCompPointInObject (glCompObj *p, float x, float y)
 
static glCompObjglCompGetObjByMouse (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)
 
glCompSetglCompSetNew (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
 

Function Documentation

◆ glCompDrawBegin()

void glCompDrawBegin ( void  )

Definition at line 210 of file glcompset.c.

Referenced by glCompSetDraw().

Here is the caller graph for this function:

◆ glCompDrawEnd()

void glCompDrawEnd ( void  )

Definition at line 230 of file glcompset.c.

Referenced by glCompSetDraw().

Here is the caller graph for this function:

◆ glCompEmptyCommon()

void glCompEmptyCommon ( glCompCommon c)

Definition at line 177 of file glcompset.c.

References glCompCommon::font, and glDeleteFont().

Referenced by glCompImageDelete().

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

◆ glCompGetObjByMouse()

static glCompObj * glCompGetObjByMouse ( glCompSet s,
glCompMouse m 
)
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().

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

◆ glCompInitCommon()

void glCompInitCommon ( glCompObj childObj,
glCompObj parentObj,
float  x,
float  y 
)

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().

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

◆ glCompMouseMove()

static void glCompMouseMove ( void *  obj,
float  x,
float  y 
)
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().

Here is the caller graph for this function:

◆ glCompPointInObject()

static int glCompPointInObject ( glCompObj p,
float  x,
float  y 
)
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().

Here is the caller graph for this function:

◆ glCompSetAddObj()

void glCompSetAddObj ( glCompSet s,
glCompObj obj 
)

Definition at line 202 of file glcompset.c.

References glCompObj_::common, glCompCommon::compset, and gv_recalloc().

Referenced by glCompInitCommon().

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

◆ glCompSetDraw()

void glCompSetDraw ( glCompSet s)

Definition at line 239 of file glcompset.c.

References glCompDrawBegin(), and glCompDrawEnd().

Referenced by glexpose_main().

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

◆ glCompSetMouseClick()

static void glCompSetMouseClick ( void *  obj,
float  x,
float  y,
glMouseButtonType  t 
)
static

Definition at line 59 of file glcompset.c.

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

Referenced by glCompSetMouseUp().

Here is the caller graph for this function:

◆ glCompSetMouseDown()

static void glCompSetMouseDown ( void *  obj,
float  x,
float  y,
glMouseButtonType  t 
)
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().

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

◆ glCompSetMouseUp()

static void glCompSetMouseUp ( void *  obj,
float  x,
float  y,
glMouseButtonType  t 
)
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().

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

◆ 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().

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

◆ glcompsetUpdateBorder()

void glcompsetUpdateBorder ( glCompSet s,
int  w,
int  h 
)

Definition at line 247 of file glcompset.c.

Referenced by cb_reshape(), and configure_event().

Here is the caller graph for this function:

Variable Documentation

◆ startX

float startX
static

Definition at line 21 of file glcompset.c.

Referenced by glCompMouseMove(), glCompSetMouseDown(), and glCompSetMouseUp().

◆ startY

float startY
static

Definition at line 21 of file glcompset.c.

Referenced by glCompMouseMove(), glCompSetMouseDown(), and glCompSetMouseUp().