Public Member Functions | Public Attributes | List of all members
gui Struct Reference

Public Member Functions

bool button (const rect &r, const std::string &label)
 
bool checkbox (const rect &r, bool &value)
 
void fill_rect (const rect &r, const color &c)
 
 gui ()
 
void indicator (const rect &r, double min, double max, double value)
 
void label (const int2 &p, const color &c, const char *format,...)
 
void option_label (const int2 &p, const color &c, rs::device &dev, rs::option opt, double max_width, bool enabled, double *value=nullptr)
 
void outline_rect (const rect &r, const color &c)
 
bool slider (int id, const rect &r, double min, double max, double step, double &value, bool disable_dragger=false)
 
void vscroll (const rect &r, int client_height, int &offset)
 

Public Attributes

bool click
 
int clicked_id
 
int2 clicked_offset
 
int2 cursor
 
bool mouse_down
 
int2 scroll_vec
 

Detailed Description

Definition at line 39 of file cpp-config-ui.cpp.

Constructor & Destructor Documentation

gui::gui ( )
inline

Definition at line 45 of file cpp-config-ui.cpp.

Member Function Documentation

bool gui::button ( const rect r,
const std::string label 
)
inline

Definition at line 142 of file cpp-config-ui.cpp.

bool gui::checkbox ( const rect r,
bool &  value 
)
inline

Definition at line 151 of file cpp-config-ui.cpp.

void gui::fill_rect ( const rect r,
const color c 
)
inline

Definition at line 112 of file cpp-config-ui.cpp.

void gui::indicator ( const rect r,
double  min,
double  max,
double  value 
)
inline

Definition at line 193 of file cpp-config-ui.cpp.

void gui::label ( const int2 p,
const color c,
const char *  format,
  ... 
)
inline

Definition at line 47 of file cpp-config-ui.cpp.

void gui::option_label ( const int2 p,
const color c,
rs::device dev,
rs::option  opt,
double  max_width,
bool  enabled,
double *  value = nullptr 
)
inline

Definition at line 62 of file cpp-config-ui.cpp.

void gui::outline_rect ( const rect r,
const color c 
)
inline

Definition at line 123 of file cpp-config-ui.cpp.

bool gui::slider ( int  id,
const rect r,
double  min,
double  max,
double  step,
double &  value,
bool  disable_dragger = false 
)
inline

Definition at line 165 of file cpp-config-ui.cpp.

void gui::vscroll ( const rect r,
int  client_height,
int offset 
)
inline

Definition at line 230 of file cpp-config-ui.cpp.

Member Data Documentation

bool gui::click

Definition at line 42 of file cpp-config-ui.cpp.

int gui::clicked_id

Definition at line 43 of file cpp-config-ui.cpp.

int2 gui::clicked_offset

Definition at line 41 of file cpp-config-ui.cpp.

int2 gui::cursor

Definition at line 41 of file cpp-config-ui.cpp.

bool gui::mouse_down

Definition at line 42 of file cpp-config-ui.cpp.

int2 gui::scroll_vec

Definition at line 41 of file cpp-config-ui.cpp.


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


librealsense
Author(s): Sergey Dorodnicov , Mark Horn , Reagan Lopez
autogenerated on Fri Mar 13 2020 03:16:19