Skip to content

Commit 2b91e0e

Browse files
committed
Add GUI library source
1 parent 0392419 commit 2b91e0e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+23195
-0
lines changed

GUILibrary/Source/GUI.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#include "GUI.h"
2+
3+
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
4+
5+
void SetRect(GUIRect *pRect, int left, int top, int right, int bottom) {
6+
pRect->left = left;
7+
pRect->top = top;
8+
pRect->right = right;
9+
pRect->bottom = bottom;
10+
}

GUILibrary/Source/GUI.h

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#ifndef _GUI_
2+
#define _GUI_
3+
4+
#pragma region Rectangle Structure
5+
/// <summary>
6+
/// The GUIRect structure defines a rectangle by the coordinates of its upper-left and lower-right corners.
7+
/// </summary>
8+
struct GUIRect { long left; long top; long right; long bottom; };
9+
10+
/// <summary>
11+
/// Sets the bounds of a GUIRect.
12+
/// </summary>
13+
/// <param name="pRect">Pointer to the GUIRect.</param>
14+
/// <param name="left">Position of top left corner on X axis.</param>
15+
/// <param name="top">Position of top left corner on Y axis.</param>
16+
/// <param name="right">Position of bottom right corner on X axis.</param>
17+
/// <param name="bottom">Position of bottom right corner on Y axis.</param>
18+
void SetRect(GUIRect *pRect, int left, int top, int right, int bottom);
19+
#pragma endregion
20+
21+
#include "RTETools.h"
22+
23+
#include "GUI/Interface.h"
24+
#include "GUI/GUIProperties.h"
25+
#include "GUI/GUIInput.h"
26+
#include "GUI/GUIFont.h"
27+
#include "GUI/GUISkin.h"
28+
#include "GUI/GUIPanel.h"
29+
#include "GUI/GUIManager.h"
30+
#include "GUI/GUIUtil.h"
31+
#include "GUI/GUIControl.h"
32+
#include "GUI/GUIEvent.h"
33+
#include "GUI/GUIControlFactory.h"
34+
#include "GUI/GUIControlManager.h"
35+
#include "GUI/GUISound.h"
36+
37+
#endif

0 commit comments

Comments
 (0)