Graphviz 12.0.1~dev.20240716.0800
Loading...
Searching...
No Matches
glcompdefs.h File Reference
#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  glCompPoly
 
struct  glCompColor
 
struct  glCompRect
 
struct  glCompTex
 
struct  glCompFont
 
struct  glCompCallBacks
 
struct  glCompCommon
 
struct  glCompImage
 
struct  glCompPanel
 
struct  glCompLabel
 
struct  _glCompButton
 
struct  _glCompObj
 
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_COLOR_R   0.0f
 
#define GLCOMPSET_PANEL_SHADOW_COLOR_G   0.0f
 
#define GLCOMPSET_PANEL_SHADOW_COLOR_B   0.0f
 
#define GLCOMPSET_PANEL_SHADOW_COLOR_A   0.3f
 
#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_BUTTON_FONT_COLOR_R   0.0f
 
#define GLCOMPSET_BUTTON_FONT_COLOR_G   0.0f
 
#define GLCOMPSET_BUTTON_FONT_COLOR_B   0.0f
 
#define GLCOMPSET_BUTTON_FONT_COLOR_ALPHA   1.0f
 
#define GLCOMPSET_FONT_SIZE_FACTOR   0.7f
 
#define GLCOMPSET_LABEL_COLOR_R   0.0f
 
#define GLCOMPSET_LABEL_COLOR_G   0.0f
 
#define GLCOMPSET_LABEL_COLOR_B   0.0f
 
#define GLCOMPSET_LABEL_COLOR_ALPHA   1.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 GL_FONTOPTIMIZE   1
 
#define GL_FONTVJUSTIFY   0
 
#define GL_FONTHJUSTIFY   0
 
#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 _glCompButton glCompButton
 
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)
 

Enumerations

enum  glCompAlignment {
  glAlignNone , glAlignLeft , glAlignTop , glAlignBottom ,
  glAlignRight , glAlignParent , glAlignCenter
}
 
enum  glCompVJustify { glFontVJustifyNone , glFontVJustifyTop , glFontVJustifyBottom , glFontVJustifyCenter }
 
enum  glCompHJustify { glFontHJustifyNone , glFontHJustifyLeft , glFontHJustifyRight , glFontHJustifyCenter }
 
enum  glCompMouseStatus { glMouseDown , glMouseUp }
 
enum  glMouseButtonType { glMouseLeftButton , glMouseRightButton , glMouseMiddleButton }
 
enum  glCompTexType { glTexImage , glTexLabel }
 
enum  glObjType { glPanelObj , glButtonObj , glLabelObj , glImageObj }
 

Macro Definition Documentation

◆ GL_FONTHJUSTIFY

#define GL_FONTHJUSTIFY   0

Definition at line 71 of file glcompdefs.h.

◆ GL_FONTOPTIMIZE

#define GL_FONTOPTIMIZE   1

Definition at line 67 of file glcompdefs.h.

◆ GL_FONTVJUSTIFY

#define GL_FONTVJUSTIFY   0

Definition at line 70 of file glcompdefs.h.

◆ GLCOMP_DEFAULT_HEIGHT

#define GLCOMP_DEFAULT_HEIGHT   10.0f

Definition at line 78 of file glcompdefs.h.

◆ GLCOMP_DEFAULT_WIDTH

#define GLCOMP_DEFAULT_WIDTH   10.0f

Definition at line 77 of file glcompdefs.h.

◆ GLCOMPSET_BEVEL_DIFF

#define GLCOMPSET_BEVEL_DIFF   0.001f

Definition at line 76 of file glcompdefs.h.

◆ GLCOMPSET_BORDERWIDTH

#define GLCOMPSET_BORDERWIDTH   2.0f

Definition at line 73 of file glcompdefs.h.

◆ GLCOMPSET_BUTTON_BEVEL

#define GLCOMPSET_BUTTON_BEVEL   5.0f

Definition at line 75 of file glcompdefs.h.

◆ GLCOMPSET_BUTTON_BEVEL_BRIGHTNESS

#define GLCOMPSET_BUTTON_BEVEL_BRIGHTNESS   1.7f

Definition at line 47 of file glcompdefs.h.

◆ GLCOMPSET_BUTTON_COLOR_ALPHA

#define GLCOMPSET_BUTTON_COLOR_ALPHA   0.6f

Definition at line 45 of file glcompdefs.h.

◆ GLCOMPSET_BUTTON_COLOR_B

#define GLCOMPSET_BUTTON_COLOR_B   0.3f

Definition at line 44 of file glcompdefs.h.

◆ GLCOMPSET_BUTTON_COLOR_G

#define GLCOMPSET_BUTTON_COLOR_G   1.0f

Definition at line 43 of file glcompdefs.h.

◆ GLCOMPSET_BUTTON_COLOR_R

#define GLCOMPSET_BUTTON_COLOR_R   0.0f

Definition at line 42 of file glcompdefs.h.

◆ GLCOMPSET_BUTTON_FONT_COLOR_ALPHA

#define GLCOMPSET_BUTTON_FONT_COLOR_ALPHA   1.0f

Definition at line 53 of file glcompdefs.h.

◆ GLCOMPSET_BUTTON_FONT_COLOR_B

#define GLCOMPSET_BUTTON_FONT_COLOR_B   0.0f

Definition at line 52 of file glcompdefs.h.

◆ GLCOMPSET_BUTTON_FONT_COLOR_G

#define GLCOMPSET_BUTTON_FONT_COLOR_G   0.0f

Definition at line 51 of file glcompdefs.h.

◆ GLCOMPSET_BUTTON_FONT_COLOR_R

#define GLCOMPSET_BUTTON_FONT_COLOR_R   0.0f

Definition at line 50 of file glcompdefs.h.

◆ GLCOMPSET_BUTTON_THICKNESS

#define GLCOMPSET_BUTTON_THICKNESS   3.0f

Definition at line 46 of file glcompdefs.h.

◆ GLCOMPSET_FONT_COLOR_ALPHA

#define GLCOMPSET_FONT_COLOR_ALPHA   1.0f

Definition at line 65 of file glcompdefs.h.

◆ GLCOMPSET_FONT_COLOR_B

#define GLCOMPSET_FONT_COLOR_B   0.0f

Definition at line 64 of file glcompdefs.h.

◆ GLCOMPSET_FONT_COLOR_G

#define GLCOMPSET_FONT_COLOR_G   0.0f

Definition at line 63 of file glcompdefs.h.

◆ GLCOMPSET_FONT_COLOR_R

#define GLCOMPSET_FONT_COLOR_R   0.0f

Definition at line 62 of file glcompdefs.h.

◆ GLCOMPSET_FONT_DESC

#define GLCOMPSET_FONT_DESC   "Times Italic"

Definition at line 66 of file glcompdefs.h.

◆ GLCOMPSET_FONT_SIZE

#define GLCOMPSET_FONT_SIZE   14.0f

Definition at line 48 of file glcompdefs.h.

◆ GLCOMPSET_FONT_SIZE_FACTOR

#define GLCOMPSET_FONT_SIZE_FACTOR   0.7f

Definition at line 55 of file glcompdefs.h.

◆ GLCOMPSET_LABEL_COLOR_ALPHA

#define GLCOMPSET_LABEL_COLOR_ALPHA   1.0f

Definition at line 60 of file glcompdefs.h.

◆ GLCOMPSET_LABEL_COLOR_B

#define GLCOMPSET_LABEL_COLOR_B   0.0f

Definition at line 59 of file glcompdefs.h.

◆ GLCOMPSET_LABEL_COLOR_G

#define GLCOMPSET_LABEL_COLOR_G   0.0f

Definition at line 58 of file glcompdefs.h.

◆ GLCOMPSET_LABEL_COLOR_R

#define GLCOMPSET_LABEL_COLOR_R   0.0f

Definition at line 57 of file glcompdefs.h.

◆ GLCOMPSET_PANEL_BORDERWIDTH

#define GLCOMPSET_PANEL_BORDERWIDTH   3.0f

Definition at line 74 of file glcompdefs.h.

◆ GLCOMPSET_PANEL_COLOR_ALPHA

#define GLCOMPSET_PANEL_COLOR_ALPHA   0.5f

Definition at line 35 of file glcompdefs.h.

◆ GLCOMPSET_PANEL_COLOR_B

#define GLCOMPSET_PANEL_COLOR_B   0.87f

Definition at line 34 of file glcompdefs.h.

◆ GLCOMPSET_PANEL_COLOR_G

#define GLCOMPSET_PANEL_COLOR_G   0.44f

Definition at line 33 of file glcompdefs.h.

◆ GLCOMPSET_PANEL_COLOR_R

#define GLCOMPSET_PANEL_COLOR_R   0.16f

Definition at line 32 of file glcompdefs.h.

◆ GLCOMPSET_PANEL_SHADOW_COLOR_A

#define GLCOMPSET_PANEL_SHADOW_COLOR_A   0.3f

Definition at line 39 of file glcompdefs.h.

◆ GLCOMPSET_PANEL_SHADOW_COLOR_B

#define GLCOMPSET_PANEL_SHADOW_COLOR_B   0.0f

Definition at line 38 of file glcompdefs.h.

◆ GLCOMPSET_PANEL_SHADOW_COLOR_G

#define GLCOMPSET_PANEL_SHADOW_COLOR_G   0.0f

Definition at line 37 of file glcompdefs.h.

◆ GLCOMPSET_PANEL_SHADOW_COLOR_R

#define GLCOMPSET_PANEL_SHADOW_COLOR_R   0.0f

Definition at line 36 of file glcompdefs.h.

◆ GLCOMPSET_PANEL_SHADOW_WIDTH

#define GLCOMPSET_PANEL_SHADOW_WIDTH   4.0f

Definition at line 40 of file glcompdefs.h.

Typedef Documentation

◆ glCompButton

typedef struct _glCompButton glCompButton

Definition at line 96 of file glcompdefs.h.

◆ glcompclickfunc_t

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

Definition at line 101 of file glcompdefs.h.

◆ glcompdoubleclickfunc_t

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

Definition at line 103 of file glcompdefs.h.

◆ glcompdrawfunc_t

typedef void(* glcompdrawfunc_t) (void *obj)

Definition at line 100 of file glcompdefs.h.

◆ glcompmousedownfunc_t

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

Definition at line 112 of file glcompdefs.h.

◆ glcompmousedragfunct_t

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

Definition at line 116 of file glcompdefs.h.

◆ glcompmouseinfunc_t

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

Definition at line 108 of file glcompdefs.h.

◆ glcompmouseoutfunc_t

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

Definition at line 110 of file glcompdefs.h.

◆ glcompmouseoverfunc_t

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

Definition at line 106 of file glcompdefs.h.

◆ glcompmouseupfunc_t

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

Definition at line 114 of file glcompdefs.h.

◆ glCompObj

typedef struct _glCompObj glCompObj

Definition at line 97 of file glcompdefs.h.

Enumeration Type Documentation

◆ glCompAlignment

Enumerator
glAlignNone 
glAlignLeft 
glAlignTop 
glAlignBottom 
glAlignRight 
glAlignParent 
glAlignCenter 

Definition at line 80 of file glcompdefs.h.

◆ glCompHJustify

Enumerator
glFontHJustifyNone 
glFontHJustifyLeft 
glFontHJustifyRight 
glFontHJustifyCenter 

Definition at line 85 of file glcompdefs.h.

◆ glCompMouseStatus

Enumerator
glMouseDown 
glMouseUp 

Definition at line 88 of file glcompdefs.h.

◆ glCompTexType

Enumerator
glTexImage 
glTexLabel 

Definition at line 92 of file glcompdefs.h.

◆ glCompVJustify

Enumerator
glFontVJustifyNone 
glFontVJustifyTop 
glFontVJustifyBottom 
glFontVJustifyCenter 

Definition at line 83 of file glcompdefs.h.

◆ glMouseButtonType

Enumerator
glMouseLeftButton 
glMouseRightButton 
glMouseMiddleButton 

Definition at line 89 of file glcompdefs.h.

◆ glObjType

enum glObjType
Enumerator
glPanelObj 
glButtonObj 
glLabelObj 
glImageObj 

Definition at line 93 of file glcompdefs.h.