-
Notifications
You must be signed in to change notification settings - Fork 1
/
ImguiExtensionControl.hpp
47 lines (32 loc) · 1.07 KB
/
ImguiExtensionControl.hpp
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#pragma once
#include <cstdint>
#include "imgui_internal.h"
struct ID3D11RenderTargetView;
class ImguiExtensionControl
{
ImGuiContext* _context;
bool show_demo_window = true;
uint32_t _width = 0;
uint32_t _height = 0;
public:
ImguiExtensionControl();
~ImguiExtensionControl();
void OnSizeChanged(unsigned int width, unsigned int height);
void OnDraw(float alpha, ID3D11RenderTargetView* target);
void OnDestroy(int code);
bool OnSetFocus(bool focus);
void OnLButtonDown(float x, float y);
void OnLButtonUp(float x, float y);
void OnLButtonClick(float x, float y);
void OnLButtonDblClick(float x, float y);
void OnRButtonDown(float x, float y);
void OnRButtonUp(float x, float y);
void OnRButtonClick(float x, float y);
void OnMouseMove(float x, float y);
bool OnMouseZChanged(float dz);
void OnMouseEnter(float x, float y);
void OnMouseExit(float x, float y);
bool OnChar(unsigned nChar, unsigned nRepCnt, unsigned nFlags);
bool OnKeyDown(int dikCode);
bool OnKeyUp(int dikCode);
};