-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathimgui.h
More file actions
28 lines (23 loc) · 938 Bytes
/
imgui.h
File metadata and controls
28 lines (23 loc) · 938 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#pragma once
#include <stdint.h>
#include "core.h"
namespace Pixie
{
class Window;
class Font;
class ImGui
{
public:
static void Begin(Window* window, Font* font);
static void End();
// UI widgets
static void Label(const char* text, int x, int y, uint32_t colour);
static bool Button(const char* label, int x, int y, int width, int height);
static void Input(char* text, int textBufferLength, int x, int y, int width, int height);
static bool Checkbox(const char* label, bool checked, int x, int y);
static bool RadioButton(const char* label, bool checked, int x, int y);
// Basic drawing
static void Rect(int x, int y, int width, int height, uint32_t borderColour);
static void FilledRect(int x, int y, int width, int height, uint32_t colour, uint32_t borderColour);
};
}