#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 <util/list.h>
Go to the source code of this file.
|
| typedef struct glCompObj_ | glCompObj |
| |
| typedef void(* | glcompdrawfunc_t) (void *obj) |
| |
| typedef void(* | glcompclickfunc_t) (glCompObj *obj, float x, float y, glMouseButtonType t) |
| |
| typedef void(* | glcompmouseoverfunc_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 struct glCompSet_ | glCompSet |
| |
|
| 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
} |
| |
◆ GLCOMP_DEFAULT_HEIGHT
| #define GLCOMP_DEFAULT_HEIGHT 10.0f |
◆ GLCOMP_DEFAULT_WIDTH
| #define GLCOMP_DEFAULT_WIDTH 10.0f |
◆ GLCOMPSET_BEVEL_DIFF
| #define GLCOMPSET_BEVEL_DIFF 0.001f |
◆ GLCOMPSET_BORDERWIDTH
| #define GLCOMPSET_BORDERWIDTH 2.0f |
◆ GLCOMPSET_BUTTON_BEVEL
| #define GLCOMPSET_BUTTON_BEVEL 5.0f |
◆ GLCOMPSET_BUTTON_BEVEL_BRIGHTNESS
| #define GLCOMPSET_BUTTON_BEVEL_BRIGHTNESS 1.7f |
◆ GLCOMPSET_BUTTON_COLOR_ALPHA
| #define GLCOMPSET_BUTTON_COLOR_ALPHA 0.6f |
◆ GLCOMPSET_BUTTON_COLOR_B
| #define GLCOMPSET_BUTTON_COLOR_B 0.3f |
◆ GLCOMPSET_BUTTON_COLOR_G
| #define GLCOMPSET_BUTTON_COLOR_G 1.0f |
◆ GLCOMPSET_BUTTON_COLOR_R
| #define GLCOMPSET_BUTTON_COLOR_R 0.0f |
◆ GLCOMPSET_BUTTON_THICKNESS
| #define GLCOMPSET_BUTTON_THICKNESS 3.0f |
◆ GLCOMPSET_FONT_COLOR_ALPHA
| #define GLCOMPSET_FONT_COLOR_ALPHA 1.0f |
◆ GLCOMPSET_FONT_COLOR_B
| #define GLCOMPSET_FONT_COLOR_B 0.0f |
◆ GLCOMPSET_FONT_COLOR_G
| #define GLCOMPSET_FONT_COLOR_G 0.0f |
◆ GLCOMPSET_FONT_COLOR_R
| #define GLCOMPSET_FONT_COLOR_R 0.0f |
◆ GLCOMPSET_FONT_DESC
| #define GLCOMPSET_FONT_DESC "Times Italic" |
◆ GLCOMPSET_FONT_SIZE
| #define GLCOMPSET_FONT_SIZE 14.0f |
◆ GLCOMPSET_PANEL_BORDERWIDTH
| #define GLCOMPSET_PANEL_BORDERWIDTH 3.0f |
◆ GLCOMPSET_PANEL_COLOR_ALPHA
| #define GLCOMPSET_PANEL_COLOR_ALPHA 0.5f |
◆ GLCOMPSET_PANEL_COLOR_B
| #define GLCOMPSET_PANEL_COLOR_B 0.87f |
◆ GLCOMPSET_PANEL_COLOR_G
| #define GLCOMPSET_PANEL_COLOR_G 0.44f |
◆ GLCOMPSET_PANEL_COLOR_R
| #define GLCOMPSET_PANEL_COLOR_R 0.16f |
◆ GLCOMPSET_PANEL_SHADOW_WIDTH
| #define GLCOMPSET_PANEL_SHADOW_WIDTH 4.0f |
◆ glcompclickfunc_t
◆ glcompdrawfunc_t
| typedef void(* glcompdrawfunc_t) (void *obj) |
◆ glcompmousedownfunc_t
◆ glcompmouseoverfunc_t
| typedef void(* glcompmouseoverfunc_t) (glCompObj *obj, float x, float y) |
◆ glcompmouseupfunc_t
◆ glCompObj
◆ glCompSet
◆ 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.
◆ LIST()