Public Member Functions | List of all members
rs2::metadata_warning_model Struct Reference

#include <notifications.h>

Inheritance diagram for rs2::metadata_warning_model:
Inheritance graph
[legend]

Public Member Functions

int calc_height () override
 
void draw_content (ux_window &win, int x, int y, float t, std::string &error_message) override
 
int get_max_lifetime_ms () const override
 
 metadata_warning_model ()
 
void set_color_scheme (float t) const override
 
- Public Member Functions inherited from rs2::notification_model
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_dismiss (ux_window &win, int x, int y)
 
virtual void draw_expanded (ux_window &win, std::string &error_message)
 
virtual void draw_pre_effect (int x, int y)
 
void draw_text (const char *msg, int x, int y, int h)
 
double get_age_in_ms (bool total=false) 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)
 
void unset_color_scheme () const
 

Additional Inherited Members

- 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
 

Detailed Description

Definition at line 187 of file notifications.h.

Constructor & Destructor Documentation

rs2::metadata_warning_model::metadata_warning_model ( )

Definition at line 941 of file notifications.cpp.

Member Function Documentation

int rs2::metadata_warning_model::calc_height ( )
inlineoverridevirtual

Reimplemented from rs2::notification_model.

Definition at line 193 of file notifications.h.

void rs2::metadata_warning_model::draw_content ( ux_window win,
int  x,
int  y,
float  t,
std::string error_message 
)
overridevirtual

Reimplemented from rs2::notification_model.

Definition at line 961 of file notifications.cpp.

int rs2::metadata_warning_model::get_max_lifetime_ms ( ) const
inlineoverridevirtual

Reimplemented from rs2::notification_model.

Definition at line 194 of file notifications.h.

void rs2::metadata_warning_model::set_color_scheme ( float  t) const
overridevirtual

Reimplemented from rs2::notification_model.

Definition at line 953 of file notifications.cpp.


The documentation for this struct was generated from the following files:


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:40