Graphviz 13.1.2~dev.20250724.1051
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 <stdbool.h>
#include <stddef.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, const glCompMouse m)
 
static void glCompMouseMove (glCompObj *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 199 of file glcompset.c.

Referenced by glCompSetDraw().

Here is the caller graph for this function:

◆ glCompDrawEnd()

void glCompDrawEnd ( void  )

Definition at line 219 of file glcompset.c.

Referenced by glCompSetDraw().

Here is the caller graph for this function:

◆ glCompEmptyCommon()

void glCompEmptyCommon ( glCompCommon c)

Definition at line 166 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,
const glCompMouse  m 
)
static

Definition at line 33 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 
)

◆ glCompMouseMove()

static void glCompMouseMove ( glCompObj obj,
float  x,
float  y 
)
static

Definition at line 47 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 25 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 191 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 228 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 58 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 67 of file glcompset.c.

References glCompSet_::base, 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 86 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 171 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 236 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 23 of file glcompset.c.

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

◆ startY

float startY
static

Definition at line 23 of file glcompset.c.

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