#include <notifications.h>
Public Member Functions | |
void | draw_pre_effect (int x, int y) override |
void | draw_progress_bar (ux_window &win, int w) |
process_notification_model (std::shared_ptr< process_manager > manager) | |
Public Member Functions inherited from rs2::notification_model | |
virtual int | calc_height () |
void | delay (int days) |
virtual void | dismiss (bool snooze) |
std::function< void()> | draw (ux_window &win, int w, int y, std::shared_ptr< notification_model > &selected, std::string &error_message) |
virtual void | draw_content (ux_window &win, int x, int y, float t, std::string &error_message) |
virtual void | draw_dismiss (ux_window &win, int x, int y) |
virtual void | draw_expanded (ux_window &win, std::string &error_message) |
void | draw_text (const char *msg, int x, int y, int h) |
double | get_age_in_ms (bool total=false) const |
virtual int | get_max_lifetime_ms () const |
std::string | get_title () |
bool | interacted () const |
void | invoke (std::function< void()> action) |
template<class dst_type > | |
bool | is () |
bool | is_delayed () const |
notification_model () | |
notification_model (const notification_data &n) | |
virtual void | set_color_scheme (float t) const |
void | unset_color_scheme () const |
Public Attributes | |
progress_bar | _progress_bar |
std::shared_ptr< process_manager > | update_manager = nullptr |
int | update_state = 0 |
int | update_state_prev = 0 |
Public Attributes inherited from rs2::notification_model | |
bool | animating = false |
rs2_notification_category | category |
int | count = 1 |
std::chrono::system_clock::time_point | created_time |
std::function< void()> | custom_action |
std::string | delay_id = "" |
bool | dismissed = false |
single_consumer_queue< std::function< void()> > | dispatch_queue |
bool | enable_click = false |
bool | enable_complex_dismiss = false |
bool | enable_dismiss = true |
bool | enable_expand = true |
bool | expanded = false |
bool | forced = false |
int | height = 40 |
int | index = 0 |
std::chrono::system_clock::time_point | last_interacted |
std::chrono::system_clock::time_point | last_moved |
float | last_x |
float | last_y |
int | max_stack = 3 |
std::string | message |
bool | pinned = false |
rs2_log_severity | severity = RS2_LOG_SEVERITY_NONE |
bool | snoozed = false |
int | stack_offset = 4 |
double | timestamp = 0.0 |
bool | to_close = false |
bool | visible = true |
int | width = 320 |
Definition at line 159 of file notifications.h.
|
inline |
Definition at line 161 of file notifications.h.
|
overridevirtual |
Reimplemented from rs2::notification_model.
Definition at line 238 of file notifications.cpp.
Definition at line 161 of file notifications.cpp.
progress_bar rs2::process_notification_model::_progress_bar |
Definition at line 171 of file notifications.h.
std::shared_ptr<process_manager> rs2::process_notification_model::update_manager = nullptr |
Definition at line 168 of file notifications.h.
int rs2::process_notification_model::update_state = 0 |
Definition at line 169 of file notifications.h.
int rs2::process_notification_model::update_state_prev = 0 |
Definition at line 170 of file notifications.h.