Public Member Functions | Private Types | Private Attributes | List of all members
rs2::press_button_model Class Reference

#include <model-views.h>

Public Member Functions

std::string get_icon ()
 
std::string get_tooltip ()
 
bool is_pressed ()
 
 press_button_model (const char *icon_default, const char *icon_pressed, std::string tooltip_default, std::string tooltip_pressed, bool init_pressed)
 
void set_button_pressed (bool p)
 
void toggle_button ()
 

Private Types

enum  button_state { unpressed, pressed }
 

Private Attributes

std::string icon [2]
 
bool state_pressed = false
 
std::string tooltip [2]
 

Detailed Description

Definition at line 454 of file model-views.h.

Member Enumeration Documentation

Enumerator
unpressed 
pressed 

Definition at line 474 of file model-views.h.

Constructor & Destructor Documentation

rs2::press_button_model::press_button_model ( const char *  icon_default,
const char *  icon_pressed,
std::string  tooltip_default,
std::string  tooltip_pressed,
bool  init_pressed 
)
inline

Definition at line 457 of file model-views.h.

Member Function Documentation

std::string rs2::press_button_model::get_icon ( )
inline

Definition at line 471 of file model-views.h.

std::string rs2::press_button_model::get_tooltip ( )
inline

Definition at line 470 of file model-views.h.

bool rs2::press_button_model::is_pressed ( )
inline

Definition at line 469 of file model-views.h.

void rs2::press_button_model::set_button_pressed ( bool  p)
inline

Definition at line 468 of file model-views.h.

void rs2::press_button_model::toggle_button ( )
inline

Definition at line 467 of file model-views.h.

Member Data Documentation

std::string rs2::press_button_model::icon[2]
private

Definition at line 482 of file model-views.h.

bool rs2::press_button_model::state_pressed = false
private

Definition at line 480 of file model-views.h.

std::string rs2::press_button_model::tooltip[2]
private

Definition at line 481 of file model-views.h.


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


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