aboutsummaryrefslogtreecommitdiff
path: root/src/raygui.h
diff options
context:
space:
mode:
authorraysan5 <raysan5@gmail.com>2016-06-01 14:01:35 +0200
committerraysan5 <raysan5@gmail.com>2016-06-01 14:01:35 +0200
commit0a27525a4ba2ca9f8f6c4e723b50411549d6c558 (patch)
tree22392949117f3b95327e01371cfba13ff6ed61db /src/raygui.h
parent3e88156817d5de5cc413acf67f0fd0a39a69acb2 (diff)
downloadraylib-0a27525a4ba2ca9f8f6c4e723b50411549d6c558.tar.gz
raylib-0a27525a4ba2ca9f8f6c4e723b50411549d6c558.zip
Dependencies review
Checking some files to be converted to header-only
Diffstat (limited to 'src/raygui.h')
-rw-r--r--src/raygui.h43
1 files changed, 41 insertions, 2 deletions
diff --git a/src/raygui.h b/src/raygui.h
index 6906eca7..3951e087 100644
--- a/src/raygui.h
+++ b/src/raygui.h
@@ -23,16 +23,55 @@
#ifndef RAYGUI_H
#define RAYGUI_H
-#include "raylib.h"
+//#include "raylib.h"
//----------------------------------------------------------------------------------
// Defines and Macros
//----------------------------------------------------------------------------------
-#define NUM_PROPERTIES 98
+#define NUM_PROPERTIES 98
+
+#define BLANK (Color){ 0, 0, 0, 0 } // Blank (Transparent)
+
+#define KEY_LEFT 263
+#define KEY_RIGHT 262
+
+#define MOUSE_LEFT_BUTTON 0
+
//----------------------------------------------------------------------------------
// Types and Structures Definition
+// NOTE: Some types are required for RAYGUI_STANDALONE usage
//----------------------------------------------------------------------------------
+#ifndef __cplusplus
+// Boolean type
+ #ifndef true
+ typedef enum { false, true } bool;
+ #endif
+#endif
+
+// Vector2 type
+typedef struct Vector2 {
+ float x;
+ float y;
+} Vector2;
+
+// Color type, RGBA (32bit)
+typedef struct Color {
+ unsigned char r;
+ unsigned char g;
+ unsigned char b;
+ unsigned char a;
+} Color;
+
+// Rectangle type
+typedef struct Rectangle {
+ int x;
+ int y;
+ int width;
+ int height;
+} Rectangle;
+
+// Gui properties enumeration
typedef enum GuiProperty {
GLOBAL_BASE_COLOR = 0,
GLOBAL_BORDER_COLOR,