Graphviz 13.0.0~dev.20241220.2304
Loading...
Searching...
No Matches
glcompdefs.h File Reference
#include <cgraph/list.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <math.h>
#include <glcomp/opengl.h>
Include dependency graph for glcompdefs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  glCompAnchor
 
struct  glCompJustify
 
struct  glCompPoint
 
struct  glCompColor
 
struct  glCompRect
 
struct  glCompTex
 
struct  glCompFont
 
struct  glCompCallBacks
 
struct  glCompCommon
 
struct  glCompObj_
 object prototype More...
 
struct  glCompImage
 
struct  glCompPanel
 
struct  glCompLabel
 
struct  glCompButton
 
struct  glCompMouse
 
struct  glCompSet_
 

Macros

#define GLCOMPSET_PANEL_COLOR_R   0.16f
 
#define GLCOMPSET_PANEL_COLOR_G   0.44f
 
#define GLCOMPSET_PANEL_COLOR_B   0.87f
 
#define GLCOMPSET_PANEL_COLOR_ALPHA   0.5f
 
#define GLCOMPSET_PANEL_SHADOW_WIDTH   4.0f
 
#define GLCOMPSET_BUTTON_COLOR_R   0.0f
 
#define GLCOMPSET_BUTTON_COLOR_G   1.0f
 
#define GLCOMPSET_BUTTON_COLOR_B   0.3f
 
#define GLCOMPSET_BUTTON_COLOR_ALPHA   0.6f
 
#define GLCOMPSET_BUTTON_THICKNESS   3.0f
 
#define GLCOMPSET_BUTTON_BEVEL_BRIGHTNESS   1.7f
 
#define GLCOMPSET_FONT_SIZE   14.0f
 
#define GLCOMPSET_FONT_COLOR_R   0.0f
 
#define GLCOMPSET_FONT_COLOR_G   0.0f
 
#define GLCOMPSET_FONT_COLOR_B   0.0f
 
#define GLCOMPSET_FONT_COLOR_ALPHA   1.0f
 
#define GLCOMPSET_FONT_DESC   "Times Italic"
 
#define GLCOMPSET_BORDERWIDTH   2.0f
 
#define GLCOMPSET_PANEL_BORDERWIDTH   3.0f
 
#define GLCOMPSET_BUTTON_BEVEL   5.0f
 
#define GLCOMPSET_BEVEL_DIFF   0.001f
 
#define GLCOMP_DEFAULT_WIDTH   10.0f
 
#define GLCOMP_DEFAULT_HEIGHT   10.0f
 

Typedefs

typedef struct glCompObj_ glCompObj
 
typedef void(* glcompdrawfunc_t) (void *obj)
 
typedef void(* glcompclickfunc_t) (glCompObj *obj, float x, float y, glMouseButtonType t)
 
typedef void(* glcompdoubleclickfunc_t) (glCompObj *obj, float x, float y, glMouseButtonType t)
 
typedef void(* glcompmouseoverfunc_t) (glCompObj *obj, float x, float y)
 
typedef void(* glcompmouseinfunc_t) (glCompObj *obj, float x, float y)
 
typedef void(* glcompmouseoutfunc_t) (glCompObj *obj, float x, float y)
 
typedef void(* glcompmousedownfunc_t) (glCompObj *obj, float x, float y, glMouseButtonType t)
 
typedef void(* glcompmouseupfunc_t) (glCompObj *obj, float x, float y, glMouseButtonType t)
 
typedef void(* glcompmousedragfunct_t) (glCompObj *obj, float dx, float dy, glMouseButtonType t)
 
typedef struct glCompSet_ glCompSet
 

Enumerations

enum  glCompAlignment {
  glAlignNone , glAlignLeft , glAlignTop , glAlignBottom ,
  glAlignRight , glAlignParent , glAlignCenter
}
 
enum  glCompVJustify { glFontVJustifyNone , glFontVJustifyCenter }
 
enum  glCompHJustify { glFontHJustifyNone , glFontHJustifyCenter }
 
enum  glCompMouseStatus { glMouseDown , glMouseUp }
 
enum  glMouseButtonType { glMouseLeftButton , glMouseRightButton , glMouseMiddleButton }
 
enum  glCompTexType { glTexImage , glTexLabel }
 

Macro Definition Documentation

◆ GLCOMP_DEFAULT_HEIGHT

#define GLCOMP_DEFAULT_HEIGHT   10.0f

Definition at line 58 of file glcompdefs.h.

◆ GLCOMP_DEFAULT_WIDTH

#define GLCOMP_DEFAULT_WIDTH   10.0f

Definition at line 57 of file glcompdefs.h.

◆ GLCOMPSET_BEVEL_DIFF

#define GLCOMPSET_BEVEL_DIFF   0.001f

Definition at line 56 of file glcompdefs.h.

◆ GLCOMPSET_BORDERWIDTH

#define GLCOMPSET_BORDERWIDTH   2.0f

Definition at line 53 of file glcompdefs.h.

◆ GLCOMPSET_BUTTON_BEVEL

#define GLCOMPSET_BUTTON_BEVEL   5.0f

Definition at line 55 of file glcompdefs.h.

◆ GLCOMPSET_BUTTON_BEVEL_BRIGHTNESS

#define GLCOMPSET_BUTTON_BEVEL_BRIGHTNESS   1.7f

Definition at line 44 of file glcompdefs.h.

◆ GLCOMPSET_BUTTON_COLOR_ALPHA

#define GLCOMPSET_BUTTON_COLOR_ALPHA   0.6f

Definition at line 42 of file glcompdefs.h.

◆ GLCOMPSET_BUTTON_COLOR_B

#define GLCOMPSET_BUTTON_COLOR_B   0.3f

Definition at line 41 of file glcompdefs.h.

◆ GLCOMPSET_BUTTON_COLOR_G

#define GLCOMPSET_BUTTON_COLOR_G   1.0f

Definition at line 40 of file glcompdefs.h.

◆ GLCOMPSET_BUTTON_COLOR_R

#define GLCOMPSET_BUTTON_COLOR_R   0.0f

Definition at line 39 of file glcompdefs.h.

◆ GLCOMPSET_BUTTON_THICKNESS

#define GLCOMPSET_BUTTON_THICKNESS   3.0f

Definition at line 43 of file glcompdefs.h.

◆ GLCOMPSET_FONT_COLOR_ALPHA

#define GLCOMPSET_FONT_COLOR_ALPHA   1.0f

Definition at line 50 of file glcompdefs.h.

◆ GLCOMPSET_FONT_COLOR_B

#define GLCOMPSET_FONT_COLOR_B   0.0f

Definition at line 49 of file glcompdefs.h.

◆ GLCOMPSET_FONT_COLOR_G

#define GLCOMPSET_FONT_COLOR_G   0.0f

Definition at line 48 of file glcompdefs.h.

◆ GLCOMPSET_FONT_COLOR_R

#define GLCOMPSET_FONT_COLOR_R   0.0f

Definition at line 47 of file glcompdefs.h.

◆ GLCOMPSET_FONT_DESC

#define GLCOMPSET_FONT_DESC   "Times Italic"

Definition at line 51 of file glcompdefs.h.

◆ GLCOMPSET_FONT_SIZE

#define GLCOMPSET_FONT_SIZE   14.0f

Definition at line 45 of file glcompdefs.h.

◆ GLCOMPSET_PANEL_BORDERWIDTH

#define GLCOMPSET_PANEL_BORDERWIDTH   3.0f

Definition at line 54 of file glcompdefs.h.

◆ GLCOMPSET_PANEL_COLOR_ALPHA

#define GLCOMPSET_PANEL_COLOR_ALPHA   0.5f

Definition at line 36 of file glcompdefs.h.

◆ GLCOMPSET_PANEL_COLOR_B

#define GLCOMPSET_PANEL_COLOR_B   0.87f

Definition at line 35 of file glcompdefs.h.

◆ GLCOMPSET_PANEL_COLOR_G

#define GLCOMPSET_PANEL_COLOR_G   0.44f

Definition at line 34 of file glcompdefs.h.

◆ GLCOMPSET_PANEL_COLOR_R

#define GLCOMPSET_PANEL_COLOR_R   0.16f

Definition at line 33 of file glcompdefs.h.

◆ GLCOMPSET_PANEL_SHADOW_WIDTH

#define GLCOMPSET_PANEL_SHADOW_WIDTH   4.0f

Definition at line 37 of file glcompdefs.h.

Typedef Documentation

◆ glcompclickfunc_t

typedef void(* glcompclickfunc_t) (glCompObj *obj, float x, float y, glMouseButtonType t)

Definition at line 76 of file glcompdefs.h.

◆ glcompdoubleclickfunc_t

typedef void(* glcompdoubleclickfunc_t) (glCompObj *obj, float x, float y, glMouseButtonType t)

Definition at line 78 of file glcompdefs.h.

◆ glcompdrawfunc_t

typedef void(* glcompdrawfunc_t) (void *obj)

Definition at line 75 of file glcompdefs.h.

◆ glcompmousedownfunc_t

typedef void(* glcompmousedownfunc_t) (glCompObj *obj, float x, float y, glMouseButtonType t)

Definition at line 87 of file glcompdefs.h.

◆ glcompmousedragfunct_t

typedef void(* glcompmousedragfunct_t) (glCompObj *obj, float dx, float dy, glMouseButtonType t)

Definition at line 91 of file glcompdefs.h.

◆ glcompmouseinfunc_t

typedef void(* glcompmouseinfunc_t) (glCompObj *obj, float x, float y)

Definition at line 83 of file glcompdefs.h.

◆ glcompmouseoutfunc_t

typedef void(* glcompmouseoutfunc_t) (glCompObj *obj, float x, float y)

Definition at line 85 of file glcompdefs.h.

◆ glcompmouseoverfunc_t

typedef void(* glcompmouseoverfunc_t) (glCompObj *obj, float x, float y)

Definition at line 81 of file glcompdefs.h.

◆ glcompmouseupfunc_t

typedef void(* glcompmouseupfunc_t) (glCompObj *obj, float x, float y, glMouseButtonType t)

Definition at line 89 of file glcompdefs.h.

◆ glCompObj

typedef struct glCompObj_ glCompObj

Definition at line 72 of file glcompdefs.h.

◆ glCompSet

typedef struct glCompSet_ glCompSet

Definition at line 172 of file glcompdefs.h.

Enumeration Type Documentation

◆ glCompAlignment

Enumerator
glAlignNone 
glAlignLeft 
glAlignTop 
glAlignBottom 
glAlignRight 
glAlignParent 
glAlignCenter 

Definition at line 60 of file glcompdefs.h.

◆ glCompHJustify

Enumerator
glFontHJustifyNone 
glFontHJustifyCenter 

Definition at line 64 of file glcompdefs.h.

◆ glCompMouseStatus

Enumerator
glMouseDown 
glMouseUp 

Definition at line 66 of file glcompdefs.h.

◆ glCompTexType

Enumerator
glTexImage 
glTexLabel 

Definition at line 70 of file glcompdefs.h.

◆ glCompVJustify

Enumerator
glFontVJustifyNone 
glFontVJustifyCenter 

Definition at line 63 of file glcompdefs.h.

◆ glMouseButtonType

Enumerator
glMouseLeftButton 
glMouseRightButton 
glMouseMiddleButton 

Definition at line 67 of file glcompdefs.h.