Unravel Engine C++ Reference
Loading...
Searching...
No Matches
ImGuiToast Class Reference

#include <imgui_notify.h>

Public Member Functions

NOTIFY_INLINE auto set_title (const char *format,...) -> void
 
NOTIFY_INLINE auto set_content (const char *format,...) -> void
 
NOTIFY_INLINE auto set_type (const ImGuiToastType &type) -> void
 
NOTIFY_INLINE auto set_draw_callback (const ImGuiToastDrawCallback &callback) -> void
 
NOTIFY_INLINE auto get_title () -> char *
 
NOTIFY_INLINE auto get_default_title () -> const char *
 
NOTIFY_INLINE auto get_type () -> const ImGuiToastType &
 
NOTIFY_INLINE auto get_color () -> const ImVec4
 
NOTIFY_INLINE auto get_icon () -> const char *
 
NOTIFY_INLINE auto get_content () -> char *
 
NOTIFY_INLINE auto get_draw_callback () -> const ImGuiToastDrawCallback &
 
NOTIFY_INLINE auto has_draw_callback () -> bool
 
NOTIFY_INLINE auto get_elapsed_time ()
 
NOTIFY_INLINE auto get_phase () -> const ImGuiToastPhase
 
NOTIFY_INLINE auto get_fade_percent () -> const float
 
NOTIFY_INLINE auto set_creation_time (uint64_t offset) -> const uint64_t
 
 ImGuiToast (ImGuiToastType type, int dismiss_time=NOTIFY_DEFAULT_DISMISS)
 
 ImGuiToast (ImGuiToastType type, const char *format,...)
 
 ImGuiToast (ImGuiToastType type, int dismiss_time, const char *format,...)
 
 ImGuiToast (ImGuiToastType type, const ImGuiToastDrawCallback &callback, int dismiss_time=NOTIFY_DEFAULT_DISMISS)
 

Static Public Member Functions

static NOTIFY_INLINE auto get_color (ImGuiToastType type) -> const ImVec4
 
static NOTIFY_INLINE auto get_icon (ImGuiToastType type) -> const char *
 
static NOTIFY_INLINE auto get_tick_count () -> const unsigned long long
 

Public Attributes

uint64_t unique_id = 0
 

Detailed Description

Definition at line 97 of file imgui_notify.h.

Constructor & Destructor Documentation

◆ ImGuiToast() [1/4]

ImGuiToast::ImGuiToast ( ImGuiToastType type,
int dismiss_time = NOTIFY_DEFAULT_DISMISS )
inline

Definition at line 262 of file imgui_notify.h.

◆ ImGuiToast() [2/4]

ImGuiToast::ImGuiToast ( ImGuiToastType type,
const char * format,
... )
inline

Definition at line 274 of file imgui_notify.h.

◆ ImGuiToast() [3/4]

ImGuiToast::ImGuiToast ( ImGuiToastType type,
int dismiss_time,
const char * format,
... )
inline

Definition at line 276 of file imgui_notify.h.

◆ ImGuiToast() [4/4]

ImGuiToast::ImGuiToast ( ImGuiToastType type,
const ImGuiToastDrawCallback & callback,
int dismiss_time = NOTIFY_DEFAULT_DISMISS )
inline

Definition at line 279 of file imgui_notify.h.

Member Function Documentation

◆ get_color() [1/2]

NOTIFY_INLINE auto ImGuiToast::get_color ( ) -> const ImVec4
inline

Definition at line 175 of file imgui_notify.h.

◆ get_color() [2/2]

static NOTIFY_INLINE auto ImGuiToast::get_color ( ImGuiToastType type) -> const ImVec4
inlinestatic

Definition at line 156 of file imgui_notify.h.

◆ get_content()

NOTIFY_INLINE auto ImGuiToast::get_content ( ) -> char*
inline

Definition at line 204 of file imgui_notify.h.

◆ get_default_title()

NOTIFY_INLINE auto ImGuiToast::get_default_title ( ) -> const char*
inline

Definition at line 129 of file imgui_notify.h.

◆ get_draw_callback()

NOTIFY_INLINE auto ImGuiToast::get_draw_callback ( ) -> const ImGuiToastDrawCallback&
inline

Definition at line 206 of file imgui_notify.h.

◆ get_elapsed_time()

NOTIFY_INLINE auto ImGuiToast::get_elapsed_time ( )
inline

Definition at line 210 of file imgui_notify.h.

◆ get_fade_percent()

NOTIFY_INLINE auto ImGuiToast::get_fade_percent ( ) -> const float
inline

Definition at line 234 of file imgui_notify.h.

◆ get_icon() [1/2]

NOTIFY_INLINE auto ImGuiToast::get_icon ( ) -> const char*
inline

Definition at line 199 of file imgui_notify.h.

◆ get_icon() [2/2]

static NOTIFY_INLINE auto ImGuiToast::get_icon ( ImGuiToastType type) -> const char*
inlinestatic

Definition at line 180 of file imgui_notify.h.

◆ get_phase()

NOTIFY_INLINE auto ImGuiToast::get_phase ( ) -> const ImGuiToastPhase
inline

Definition at line 212 of file imgui_notify.h.

◆ get_tick_count()

static NOTIFY_INLINE auto ImGuiToast::get_tick_count ( ) -> const unsigned long long
inlinestatic

Definition at line 251 of file imgui_notify.h.

◆ get_title()

NOTIFY_INLINE auto ImGuiToast::get_title ( ) -> char*
inline

Definition at line 127 of file imgui_notify.h.

◆ get_type()

NOTIFY_INLINE auto ImGuiToast::get_type ( ) -> const ImGuiToastType&
inline

Definition at line 153 of file imgui_notify.h.

◆ has_draw_callback()

NOTIFY_INLINE auto ImGuiToast::has_draw_callback ( ) -> bool
inline

Definition at line 208 of file imgui_notify.h.

◆ set_content()

NOTIFY_INLINE auto ImGuiToast::set_content ( const char * format,
... ) -> void
inline

Definition at line 118 of file imgui_notify.h.

◆ set_creation_time()

NOTIFY_INLINE auto ImGuiToast::set_creation_time ( uint64_t offset) -> const uint64_t
inline

Definition at line 257 of file imgui_notify.h.

◆ set_draw_callback()

NOTIFY_INLINE auto ImGuiToast::set_draw_callback ( const ImGuiToastDrawCallback & callback) -> void
inline

Definition at line 122 of file imgui_notify.h.

◆ set_title()

NOTIFY_INLINE auto ImGuiToast::set_title ( const char * format,
... ) -> void
inline

Definition at line 116 of file imgui_notify.h.

◆ set_type()

NOTIFY_INLINE auto ImGuiToast::set_type ( const ImGuiToastType & type) -> void
inline

Definition at line 120 of file imgui_notify.h.

Member Data Documentation

◆ unique_id

uint64_t ImGuiToast::unique_id = 0

Definition at line 114 of file imgui_notify.h.


The documentation for this class was generated from the following file: