Unravel Engine C++ Reference
Loading...
Searching...
No Matches
ImGui Namespace Reference

Classes

struct  Font
 
union  ImTexture
 

Functions

void PushFont (Font::Enum _font)
 
ImFont * GetFont (Font::Enum _font)
 
void PushEnabled (bool _enabled)
 
void PopEnabled ()
 
bool IsReadonly ()
 
void PushReadonly (bool _enabled)
 
void PopReadonly ()
 
void PushWindowFontSize (int size)
 
void PopWindowFontSize ()
 
void PushWindowFontScale (float scale)
 
void PopWindowFontScale ()
 
uint64_t GetDrawCalls ()
 
void KeepAliveOneFrame (const gfx::texture::ptr &tex)
 
ImTexture ToTex (gfx::texture_handle _handle, uint8_t _index, gfx::program_handle _phandle, uint8_t _mip=0, uint8_t _flags=IMGUI_FLAGS_ALPHA_BLEND)
 
ImTextureID ToId (gfx::texture_handle _handle, uint8_t _mip=0, uint8_t _flags=IMGUI_FLAGS_ALPHA_BLEND)
 
ImTextureID ToId (const gfx::texture &_handle, uint8_t _mip=0, uint8_t _flags=IMGUI_FLAGS_ALPHA_BLEND)
 
ImTextureID ToId (const gfx::texture::ptr &_handle, uint8_t _mip=0, uint8_t _flags=IMGUI_FLAGS_ALPHA_BLEND)
 
ImTextureID ToId (const asset_handle< gfx::texture > &_handle, uint8_t _mip=0, uint8_t _flags=IMGUI_FLAGS_ALPHA_BLEND)
 
ImVec2 GetSize (const gfx::texture &tex, const ImVec2 &fallback={})
 
ImVec2 GetSize (const gfx::texture::ptr &tex, const ImVec2 &fallback={})
 
ImVec2 GetSize (const asset_handle< gfx::texture > &_handle, const ImVec2 &fallback={})
 
void Image (gfx::texture_handle _handle, uint8_t _mip, uint8_t _flags, const ImVec2 &_size, const ImVec2 &_uv0=ImVec2(0.0f, 0.0f), const ImVec2 &_uv1=ImVec2(1.0f, 1.0f))
 
void Image (gfx::texture_handle _handle, const ImVec2 &_size, const ImVec2 &_uv0=ImVec2(0.0f, 0.0f), const ImVec2 &_uv1=ImVec2(1.0f, 1.0f))
 
bool ImageButton (gfx::texture_handle _handle, uint8_t _mip, uint8_t _flags, const ImVec2 &_size, const ImVec2 &_uv0=ImVec2(0.0f, 0.0f), const ImVec2 &_uv1=ImVec2(1.0f, 1.0f), const ImVec4 &_bgCol=ImVec4(0.0f, 0.0f, 0.0f, 0.0f), const ImVec4 &_tintCol=ImVec4(1.0f, 1.0f, 1.0f, 1.0f))
 
bool ImageButton (gfx::texture_handle _handle, const ImVec2 &_size, const ImVec2 &_uv0=ImVec2(0.0f, 0.0f), const ImVec2 &_uv1=ImVec2(1.0f, 1.0f), const ImVec4 &_bgCol=ImVec4(0.0f, 0.0f, 0.0f, 0.0f), const ImVec4 &_tintCol=ImVec4(1.0f, 1.0f, 1.0f, 1.0f))
 
void NextLine ()
 
bool MouseOverArea ()
 
NOTIFY_INLINE ImGuiToastGetNotification (uint64_t unique_id)
 
NOTIFY_INLINE void PushNotification (const ImGuiToast &toast)
 Insert a new toast in the list.
 
NOTIFY_INLINE void PushNotification (uint64_t unique_id, const ImGuiToast &toast)
 Insert or update a notification with a unique ID If the notification already exists, it updates the content and refreshes timing:
 
NOTIFY_INLINE void RemoveNotification (int index)
 Remove a toast from the list by its index.
 
NOTIFY_INLINE void RenderNotifications ()
 Render toasts, call at the end of your rendering!
 

Variables

NOTIFY_INLINE std::vector< ImGuiToastnotifications
 

Function Documentation

◆ GetDrawCalls()

uint64_t ImGui::GetDrawCalls ( )

Definition at line 715 of file imgui.cpp.

◆ GetFont()

ImFont * ImGui::GetFont ( Font::Enum _font)

Definition at line 623 of file imgui.cpp.

◆ GetNotification()

NOTIFY_INLINE ImGuiToast * ImGui::GetNotification ( uint64_t unique_id)

Definition at line 291 of file imgui_notify.h.

◆ GetSize() [1/3]

ImVec2 ImGui::GetSize ( const asset_handle< gfx::texture > & _handle,
const ImVec2 & fallback = {} )
inline

Definition at line 156 of file imgui.h.

◆ GetSize() [2/3]

ImVec2 ImGui::GetSize ( const gfx::texture & tex,
const ImVec2 & fallback = {} )
inline

Definition at line 141 of file imgui.h.

◆ GetSize() [3/3]

ImVec2 ImGui::GetSize ( const gfx::texture::ptr & tex,
const ImVec2 & fallback = {} )
inline

Definition at line 146 of file imgui.h.

◆ Image() [1/2]

void ImGui::Image ( gfx::texture_handle _handle,
const ImVec2 & _size,
const ImVec2 & _uv0 = ImVec2(0.0f, 0.0f),
const ImVec2 & _uv1 = ImVec2(1.0f, 1.0f) )
inline

Definition at line 178 of file imgui.h.

◆ Image() [2/2]

void ImGui::Image ( gfx::texture_handle _handle,
uint8_t _mip,
uint8_t _flags,
const ImVec2 & _size,
const ImVec2 & _uv0 = ImVec2(0.0f, 0.0f),
const ImVec2 & _uv1 = ImVec2(1.0f, 1.0f) )
inline

Definition at line 167 of file imgui.h.

◆ ImageButton() [1/2]

bool ImGui::ImageButton ( gfx::texture_handle _handle,
const ImVec2 & _size,
const ImVec2 & _uv0 = ImVec2(0.0f, 0.0f),
const ImVec2 & _uv1 = ImVec2(1.0f, 1.0f),
const ImVec4 & _bgCol = ImVec4(0.0f, 0.0f, 0.0f, 0.0f),
const ImVec4 & _tintCol = ImVec4(1.0f, 1.0f, 1.0f, 1.0f) )
inline

Definition at line 200 of file imgui.h.

◆ ImageButton() [2/2]

bool ImGui::ImageButton ( gfx::texture_handle _handle,
uint8_t _mip,
uint8_t _flags,
const ImVec2 & _size,
const ImVec2 & _uv0 = ImVec2(0.0f, 0.0f),
const ImVec2 & _uv1 = ImVec2(1.0f, 1.0f),
const ImVec4 & _bgCol = ImVec4(0.0f, 0.0f, 0.0f, 0.0f),
const ImVec4 & _tintCol = ImVec4(1.0f, 1.0f, 1.0f, 1.0f) )
inline

Definition at line 187 of file imgui.h.

◆ IsReadonly()

bool ImGui::IsReadonly ( )

Definition at line 643 of file imgui.cpp.

◆ KeepAliveOneFrame()

void ImGui::KeepAliveOneFrame ( const gfx::texture::ptr & tex)

Definition at line 720 of file imgui.cpp.

◆ MouseOverArea()

bool ImGui::MouseOverArea ( )
inline

Definition at line 217 of file imgui.h.

◆ NextLine()

void ImGui::NextLine ( )
inline

Definition at line 211 of file imgui.h.

◆ PopEnabled()

void ImGui::PopEnabled ( )

Definition at line 635 of file imgui.cpp.

◆ PopReadonly()

void ImGui::PopReadonly ( )

Definition at line 658 of file imgui.cpp.

◆ PopWindowFontScale()

void ImGui::PopWindowFontScale ( )

Definition at line 705 of file imgui.cpp.

◆ PopWindowFontSize()

void ImGui::PopWindowFontSize ( )

Definition at line 682 of file imgui.cpp.

◆ PushEnabled()

void ImGui::PushEnabled ( bool _enabled)

Definition at line 628 of file imgui.cpp.

◆ PushFont()

void ImGui::PushFont ( Font::Enum _font)

Definition at line 617 of file imgui.cpp.

◆ PushNotification() [1/2]

NOTIFY_INLINE void ImGui::PushNotification ( const ImGuiToast & toast)

Insert a new toast in the list.

Definition at line 306 of file imgui_notify.h.

◆ PushNotification() [2/2]

NOTIFY_INLINE void ImGui::PushNotification ( uint64_t unique_id,
const ImGuiToast & toast )

Insert or update a notification with a unique ID If the notification already exists, it updates the content and refreshes timing:

  • If still fading in: preserves current fade-in progress
  • If in wait/fade-out phase: resets to start of wait phase (fully visible)
  • If expired: starts fresh with fade-in

Definition at line 318 of file imgui_notify.h.

◆ PushReadonly()

void ImGui::PushReadonly ( bool _enabled)

Definition at line 649 of file imgui.cpp.

◆ PushWindowFontScale()

void ImGui::PushWindowFontScale ( float scale)

Definition at line 692 of file imgui.cpp.

◆ PushWindowFontSize()

void ImGui::PushWindowFontSize ( int size)

Definition at line 666 of file imgui.cpp.

◆ RemoveNotification()

NOTIFY_INLINE void ImGui::RemoveNotification ( int index)

Remove a toast from the list by its index.

Parameters
indexindex of the toast to remove

Definition at line 359 of file imgui_notify.h.

◆ RenderNotifications()

NOTIFY_INLINE void ImGui::RenderNotifications ( )

Render toasts, call at the end of your rendering!

Definition at line 367 of file imgui_notify.h.

◆ ToId() [1/4]

ImTextureID ImGui::ToId ( const asset_handle< gfx::texture > & _handle,
uint8_t _mip = 0,
uint8_t _flags = IMGUI_FLAGS_ALPHA_BLEND )
inline

Definition at line 134 of file imgui.h.

◆ ToId() [2/4]

ImTextureID ImGui::ToId ( const gfx::texture & _handle,
uint8_t _mip = 0,
uint8_t _flags = IMGUI_FLAGS_ALPHA_BLEND )
inline

Definition at line 108 of file imgui.h.

◆ ToId() [3/4]

ImTextureID ImGui::ToId ( const gfx::texture::ptr & _handle,
uint8_t _mip = 0,
uint8_t _flags = IMGUI_FLAGS_ALPHA_BLEND )
inline

Definition at line 123 of file imgui.h.

◆ ToId() [4/4]

ImTextureID ImGui::ToId ( gfx::texture_handle _handle,
uint8_t _mip = 0,
uint8_t _flags = IMGUI_FLAGS_ALPHA_BLEND )
inline

Definition at line 102 of file imgui.h.

◆ ToTex()

ImTexture ImGui::ToTex ( gfx::texture_handle _handle,
uint8_t _index,
gfx::program_handle _phandle,
uint8_t _mip = 0,
uint8_t _flags = IMGUI_FLAGS_ALPHA_BLEND )
inline

Definition at line 87 of file imgui.h.

Variable Documentation

◆ notifications

NOTIFY_INLINE std::vector<ImGuiToast> ImGui::notifications

Definition at line 288 of file imgui_notify.h.