tec::IMGUISystem
#include <imgui-system.hpp>
Inherits from tec::CommandQueue< IMGUISystem >, tec::EventQueue< KeyboardEvent >, tec::EventQueue< MouseMoveEvent >, tec::EventQueue< MouseScrollEvent >, tec::EventQueue< MouseBtnEvent >, tec::EventQueue< WindowResizedEvent >
Public Functions
| Name | |
|---|---|
| IMGUISystem(GLFWwindow * window) | |
| ~IMGUISystem() | |
| void | CreateGUI() |
| void | Update(double delta) |
| void | CreateDeviceObjects() |
| void | AddWindowDrawFunction(std::string name, std::function< void()> && func) |
| void | ShowWindow(const std::string name) |
| void | HideWindow(const std::string name) |
| bool | IsWindowVisible(const std::string & name) const |
| const char * | GetClipboardText(void * user_data) |
| void | SetClipboardText(void * user_data, const char * text) |
| void | RenderDrawLists(ImDrawData * draw_data) |
Additional inherited members
Public Functions inherited from tec::CommandQueue< IMGUISystem >
| Name | |
|---|---|
| CommandQueue() | |
| ~CommandQueue() | |
| void | ProcessCommandQueue() |
| void | QueueCommand(Command< T > && command) |
| void | QueueCommand(std::function< void(T *)> && command) |
Protected Attributes inherited from tec::CommandQueue< IMGUISystem >
| Name | |
|---|---|
| std::atomic< std::queue< Command< T > > * > | global_command_queue |
| std::queue< Command< T > > * | local_queue |
Public Functions inherited from tec::EventQueue< KeyboardEvent >
| Name | |
|---|---|
| EventQueue() | |
| EventQueue(eid entity_id) | |
| virtual | ~EventQueue() |
| void | ProcessEventQueue() |
| void | QueueEvent(Event< T > && e) |
Protected Attributes inherited from tec::EventQueue< KeyboardEvent >
| Name | |
|---|---|
| Queue< Event< T > > * | read_event_queue |
| std::atomic< Queue< Event< T > > * > | write_event_queue |
Public Functions inherited from tec::EventQueue< MouseMoveEvent >
| Name | |
|---|---|
| EventQueue() | |
| EventQueue(eid entity_id) | |
| virtual | ~EventQueue() |
| void | ProcessEventQueue() |
| void | QueueEvent(Event< T > && e) |
Protected Attributes inherited from tec::EventQueue< MouseMoveEvent >
| Name | |
|---|---|
| Queue< Event< T > > * | read_event_queue |
| std::atomic< Queue< Event< T > > * > | write_event_queue |
Public Functions inherited from tec::EventQueue< MouseScrollEvent >
| Name | |
|---|---|
| EventQueue() | |
| EventQueue(eid entity_id) | |
| virtual | ~EventQueue() |
| void | ProcessEventQueue() |
| void | QueueEvent(Event< T > && e) |
Protected Attributes inherited from tec::EventQueue< MouseScrollEvent >
| Name | |
|---|---|
| Queue< Event< T > > * | read_event_queue |
| std::atomic< Queue< Event< T > > * > | write_event_queue |
Public Functions inherited from tec::EventQueue< MouseBtnEvent >
| Name | |
|---|---|
| EventQueue() | |
| EventQueue(eid entity_id) | |
| virtual | ~EventQueue() |
| void | ProcessEventQueue() |
| void | QueueEvent(Event< T > && e) |
Protected Attributes inherited from tec::EventQueue< MouseBtnEvent >
| Name | |
|---|---|
| Queue< Event< T > > * | read_event_queue |
| std::atomic< Queue< Event< T > > * > | write_event_queue |
Public Functions inherited from tec::EventQueue< WindowResizedEvent >
| Name | |
|---|---|
| EventQueue() | |
| EventQueue(eid entity_id) | |
| virtual | ~EventQueue() |
| void | ProcessEventQueue() |
| void | QueueEvent(Event< T > && e) |
Protected Attributes inherited from tec::EventQueue< WindowResizedEvent >
| Name | |
|---|---|
| Queue< Event< T > > * | read_event_queue |
| std::atomic< Queue< Event< T > > * > | write_event_queue |
Public Functions Documentation
function IMGUISystem
IMGUISystem(
GLFWwindow * window
)
function ~IMGUISystem
~IMGUISystem()
function CreateGUI
void CreateGUI()
function Update
void Update(
double delta
)
function CreateDeviceObjects
void CreateDeviceObjects()
function AddWindowDrawFunction
void AddWindowDrawFunction(
std::string name,
std::function< void()> && func
)
function ShowWindow
inline void ShowWindow(
const std::string name
)
function HideWindow
inline void HideWindow(
const std::string name
)
function IsWindowVisible
inline bool IsWindowVisible(
const std::string & name
) const
function GetClipboardText
static const char * GetClipboardText(
void * user_data
)
function SetClipboardText
static void SetClipboardText(
void * user_data,
const char * text
)
function RenderDrawLists
static void RenderDrawLists(
ImDrawData * draw_data
)
Updated on 2022-07-24 at 19:27:35 +0000