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 set_show_dismiss_button (const bool &show) -> void
 
NOTIFY_INLINE auto set_on_dismiss (const std::function< void()> &callback) -> void
 
NOTIFY_INLINE auto set_button_label (const char *format,...) -> void
 Set the label for the button in the notification.
 
NOTIFY_INLINE auto set_window_flags (ImGuiWindowFlags flags) -> void
 
NOTIFY_INLINE auto set_horizontal_pos (const ImGuiToastHorizontalPos &pos) -> void
 
NOTIFY_INLINE auto set_frame_padding (const ImVec2 &frame_padding) -> void
 
NOTIFY_INLINE auto set_frame_padding (float x, float y) -> void
 
NOTIFY_INLINE auto get_on_dismiss () -> const std::function< void()> &
 
NOTIFY_INLINE auto get_window_flags () -> const ImGuiWindowFlags &
 
NOTIFY_INLINE auto get_show_dismiss_button () -> const bool
 
NOTIFY_INLINE auto get_title () -> const 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_horizontal_pos () -> const ImGuiToastHorizontalPos &
 
NOTIFY_INLINE auto get_frame_padding () -> const ImVec2 &
 
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 109 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 313 of file imgui_notify.h.

◆ ImGuiToast() [2/4]

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

Definition at line 325 of file imgui_notify.h.

◆ ImGuiToast() [3/4]

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

Definition at line 327 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 330 of file imgui_notify.h.

Member Function Documentation

◆ get_color() [1/2]

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

Definition at line 222 of file imgui_notify.h.

◆ get_color() [2/2]

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

Definition at line 203 of file imgui_notify.h.

◆ get_content()

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

Definition at line 251 of file imgui_notify.h.

◆ get_default_title()

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

Definition at line 176 of file imgui_notify.h.

◆ get_draw_callback()

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

Definition at line 253 of file imgui_notify.h.

◆ get_elapsed_time()

NOTIFY_INLINE auto ImGuiToast::get_elapsed_time ( )
inline

Definition at line 261 of file imgui_notify.h.

◆ get_fade_percent()

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

Definition at line 285 of file imgui_notify.h.

◆ get_frame_padding()

NOTIFY_INLINE auto ImGuiToast::get_frame_padding ( ) -> const ImVec2&
inline

Definition at line 259 of file imgui_notify.h.

◆ get_horizontal_pos()

NOTIFY_INLINE auto ImGuiToast::get_horizontal_pos ( ) -> const ImGuiToastHorizontalPos&
inline

Definition at line 257 of file imgui_notify.h.

◆ get_icon() [1/2]

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

Definition at line 246 of file imgui_notify.h.

◆ get_icon() [2/2]

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

Definition at line 227 of file imgui_notify.h.

◆ get_on_dismiss()

NOTIFY_INLINE auto ImGuiToast::get_on_dismiss ( ) -> const std::function<void()>&
inline

Definition at line 168 of file imgui_notify.h.

◆ get_phase()

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

Definition at line 263 of file imgui_notify.h.

◆ get_show_dismiss_button()

NOTIFY_INLINE auto ImGuiToast::get_show_dismiss_button ( ) -> const bool
inline

Definition at line 172 of file imgui_notify.h.

◆ get_tick_count()

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

Definition at line 302 of file imgui_notify.h.

◆ get_title()

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

Definition at line 174 of file imgui_notify.h.

◆ get_type()

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

Definition at line 200 of file imgui_notify.h.

◆ get_window_flags()

NOTIFY_INLINE auto ImGuiToast::get_window_flags ( ) -> const ImGuiWindowFlags&
inline

Definition at line 170 of file imgui_notify.h.

◆ has_draw_callback()

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

Definition at line 255 of file imgui_notify.h.

◆ set_button_label()

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

Set the label for the button in the notification.

Parameters
formatThe format string for the label.
...The arguments for the format string.

Definition at line 153 of file imgui_notify.h.

◆ set_content()

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

Definition at line 138 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 308 of file imgui_notify.h.

◆ set_draw_callback()

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

Definition at line 142 of file imgui_notify.h.

◆ set_frame_padding() [1/2]

NOTIFY_INLINE auto ImGuiToast::set_frame_padding ( const ImVec2 & frame_padding) -> void
inline

Definition at line 162 of file imgui_notify.h.

◆ set_frame_padding() [2/2]

NOTIFY_INLINE auto ImGuiToast::set_frame_padding ( float x,
float y ) -> void
inline

Definition at line 164 of file imgui_notify.h.

◆ set_horizontal_pos()

NOTIFY_INLINE auto ImGuiToast::set_horizontal_pos ( const ImGuiToastHorizontalPos & pos) -> void
inline

Definition at line 160 of file imgui_notify.h.

◆ set_on_dismiss()

NOTIFY_INLINE auto ImGuiToast::set_on_dismiss ( const std::function< void()> & callback) -> void
inline

Definition at line 146 of file imgui_notify.h.

◆ set_show_dismiss_button()

NOTIFY_INLINE auto ImGuiToast::set_show_dismiss_button ( const bool & show) -> void
inline

Definition at line 144 of file imgui_notify.h.

◆ set_title()

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

Definition at line 136 of file imgui_notify.h.

◆ set_type()

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

Definition at line 140 of file imgui_notify.h.

◆ set_window_flags()

NOTIFY_INLINE auto ImGuiToast::set_window_flags ( ImGuiWindowFlags flags) -> void
inline

Definition at line 158 of file imgui_notify.h.

Member Data Documentation

◆ unique_id

uint64_t ImGuiToast::unique_id = 0

Definition at line 134 of file imgui_notify.h.


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