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

#include <notifications.h>

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

Public Member Functions

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)
 
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
 
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

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 35 of file notifications.h.

Constructor & Destructor Documentation

rs2::notification_model::notification_model ( )

Definition at line 64 of file notifications.cpp.

rs2::notification_model::notification_model ( const notification_data n)

Definition at line 76 of file notifications.cpp.

Member Function Documentation

int rs2::notification_model::calc_height ( )
virtual
void rs2::notification_model::delay ( int  days)

Definition at line 1009 of file notifications.cpp.

virtual void rs2::notification_model::dismiss ( bool  snooze)
inlinevirtual

Reimplemented in rs2::autocalib_notification_model.

Definition at line 61 of file notifications.h.

std::function< void()> rs2::notification_model::draw ( ux_window win,
int  w,
int  y,
std::shared_ptr< notification_model > &  selected,
std::string error_message 
)

Definition at line 314 of file notifications.cpp.

void rs2::notification_model::draw_content ( ux_window win,
int  x,
int  y,
float  t,
std::string error_message 
)
virtual
void rs2::notification_model::draw_dismiss ( ux_window win,
int  x,
int  y 
)
virtual

Reimplemented in rs2::autocalib_notification_model.

Definition at line 260 of file notifications.cpp.

virtual void rs2::notification_model::draw_expanded ( ux_window win,
std::string error_message 
)
inlinevirtual

Reimplemented in rs2::autocalib_notification_model, and rs2::fw_update_notification_model.

Definition at line 59 of file notifications.h.

virtual void rs2::notification_model::draw_pre_effect ( int  x,
int  y 
)
inlinevirtual

Reimplemented in rs2::process_notification_model.

Definition at line 56 of file notifications.h.

void rs2::notification_model::draw_text ( const char *  msg,
int  x,
int  y,
int  h 
)

Definition at line 198 of file notifications.cpp.

double rs2::notification_model::get_age_in_ms ( bool  total = false) const

Definition at line 87 of file notifications.cpp.

int rs2::notification_model::get_max_lifetime_ms ( ) const
virtual
std::string rs2::notification_model::get_title ( )

Definition at line 221 of file notifications.cpp.

bool rs2::notification_model::interacted ( ) const

Definition at line 93 of file notifications.cpp.

void rs2::notification_model::invoke ( std::function< void()>  action)

Definition at line 760 of file notifications.cpp.

template<class dst_type >
bool rs2::notification_model::is ( )
inline

Definition at line 41 of file notifications.h.

bool rs2::notification_model::is_delayed ( ) const

Definition at line 998 of file notifications.cpp.

void rs2::notification_model::set_color_scheme ( float  t) const
virtual
void rs2::notification_model::unset_color_scheme ( ) const

Definition at line 99 of file notifications.cpp.

Member Data Documentation

bool rs2::notification_model::animating = false

Definition at line 99 of file notifications.h.

rs2_notification_category rs2::notification_model::category

Definition at line 74 of file notifications.h.

int rs2::notification_model::count = 1

Definition at line 67 of file notifications.h.

std::chrono::system_clock::time_point rs2::notification_model::created_time

Definition at line 73 of file notifications.h.

std::function<void()> rs2::notification_model::custom_action

Definition at line 65 of file notifications.h.

std::string rs2::notification_model::delay_id = ""

Definition at line 93 of file notifications.h.

bool rs2::notification_model::dismissed = false

Definition at line 82 of file notifications.h.

single_consumer_queue<std::function<void()> > rs2::notification_model::dispatch_queue

Definition at line 103 of file notifications.h.

bool rs2::notification_model::enable_click = false

Definition at line 90 of file notifications.h.

bool rs2::notification_model::enable_complex_dismiss = false

Definition at line 91 of file notifications.h.

bool rs2::notification_model::enable_dismiss = true

Definition at line 88 of file notifications.h.

bool rs2::notification_model::enable_expand = true

Definition at line 89 of file notifications.h.

bool rs2::notification_model::expanded = false

Definition at line 83 of file notifications.h.

bool rs2::notification_model::forced = false

Definition at line 86 of file notifications.h.

int rs2::notification_model::height = 40

Definition at line 68 of file notifications.h.

int rs2::notification_model::index = 0

Definition at line 69 of file notifications.h.

std::chrono::system_clock::time_point rs2::notification_model::last_interacted

Definition at line 101 of file notifications.h.

std::chrono::system_clock::time_point rs2::notification_model::last_moved

Definition at line 100 of file notifications.h.

float rs2::notification_model::last_x

Definition at line 98 of file notifications.h.

float rs2::notification_model::last_y

Definition at line 98 of file notifications.h.

int rs2::notification_model::max_stack = 3

Definition at line 79 of file notifications.h.

std::string rs2::notification_model::message

Definition at line 70 of file notifications.h.

bool rs2::notification_model::pinned = false

Definition at line 85 of file notifications.h.

rs2_log_severity rs2::notification_model::severity = RS2_LOG_SEVERITY_NONE

Definition at line 72 of file notifications.h.

bool rs2::notification_model::snoozed = false

Definition at line 87 of file notifications.h.

int rs2::notification_model::stack_offset = 4

Definition at line 78 of file notifications.h.

double rs2::notification_model::timestamp = 0.0

Definition at line 71 of file notifications.h.

bool rs2::notification_model::to_close = false

Definition at line 75 of file notifications.h.

bool rs2::notification_model::visible = true

Definition at line 84 of file notifications.h.

int rs2::notification_model::width = 320

Definition at line 77 of file notifications.h.


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