From f27b90bf6ba325e5f1e9fd3dfa39a609d5ec60a4 Mon Sep 17 00:00:00 2001 From: Daniel Collin Date: Thu, 25 Oct 2012 22:48:27 +0200 Subject: [PATCH] Removed deprecated file --- ogl_editor/src/RocketGui.h | 97 ---------------------------------------------- 1 file changed, 97 deletions(-) delete mode 100644 ogl_editor/src/RocketGui.h diff --git a/ogl_editor/src/RocketGui.h b/ogl_editor/src/RocketGui.h deleted file mode 100644 index 5eed300..0000000 --- a/ogl_editor/src/RocketGui.h +++ /dev/null @@ -1,97 +0,0 @@ -#pragma once - -#include - -struct RocketImage; - -/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -typedef struct RocketGuiState -{ - int mousex; - int mousey; - int mouseDown; - - int hotItem; - int activeItem; - - int kbdItem; - int keyEntered; - int keyMod; - - int lastWidget; - -} RocketGuiState; - -/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -enum RocketDrawType -{ - DRAWTYPE_NONE, - DRAWTYPE_FILL, - DRAWTYPE_IMAGE, - DRAWTYPE_TEXT, - DRAWTYPE_SLIDER, -}; - -enum RocketSliderDirection -{ - SLIDERDIRECTION_HORIZONTAL, - SLIDERDIRECTION_VERTICAL, -}; - -/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -typedef struct RocketControlInfo -{ - enum RocketDrawType type; - - int x; - int y; - int width; - int height; - - unsigned int color; - struct RocketImage* imageData; - char* text; - - // todo: Use union with all data instead - int sliderThumbX; - int sliderThumbY; - int sliderThumbWidth; - int sliderThumbHeight; - -} RocketControlInfo; - -/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -void RocketGui_init(); -void RocketGui_reset(); -void RocketGui_begin(); -void RocketGui_end(); - -void RocketGui_beginVerticalStackPanelXY(int x, int y); -void RocketGui_beginHorizontalStackPanelXY(int x, int y); - -void RocketGui_beginVerticalStackPanel(); -void RocketGui_beginHorizontalStackPanel(); - -/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// Different controlls and gui functions - -RocketControlInfo* RocketGui_textLabel(const char* text); - -void RocketGui_staticImage(const char* filename); -void RocketGui_fill(uint32_t color, int x, int y, int w, int h); -void RocketGui_drawBorder(uint32_t color0, uint32_t color1, int x, int y, int w, int h); -void RocketGui_textLabelXY(const char* text, int x, int y); - -bool RocketGui_slider(int x, int y, int w, int h, int start, int end, - enum RocketSliderDirection dir, int itemSpace, int* value); - -bool RocketGui_buttonCoords(const char* text, int x, int y); -bool RocketGui_buttonCoordsImage(const char* text, int x, int y); - -bool RocketGui_button(const char* text); -bool RocketGui_buttonImage(const char* filename); -