Graphviz 12.0.1~dev.20240716.0800
Loading...
Searching...
No Matches
glcompset.c File Reference
#include <cgraph/alloc.h>
#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 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 215 of file glcompset.c.

Referenced by glCompSetDraw().

Here is the caller graph for this function:

◆ glCompDrawEnd()

void glCompDrawEnd ( void  )

Definition at line 235 of file glcompset.c.

Referenced by glCompSetDraw().

Here is the caller graph for this function:

◆ glCompEmptyCommon()

void glCompEmptyCommon ( glCompCommon c)

Definition at line 183 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::pos, glCompPoint::x, and glCompPoint::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 120 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 _glCompObj::common, glCompCommon::height, startX, and startY.

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 207 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 244 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 61 of file glcompset.c.

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 glCompGetObjByMouse(), glMouseLeftButton, startX, and startY.

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 95 of file glcompset.c.

References glCompCallBacks::click, _glCompObj::common, glCompCommon::functions, glCompGetObjByMouse(), glCompSetMouseClick(), glMouseLeftButton, NULL, startX, and startY.

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 188 of file glcompset.c.

References glCompInitCommon(), glCompMouseInit(), glCompMouseMove(), glCompSetMouseDown(), glCompSetMouseUp(), 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 252 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().