RigsofRods
Soft-body Physics Simulation
Data Structures | Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes
RoR::GUI::FrictionSettings Class Reference

#include <GUI_FrictionSettings.h>

+ Collaboration diagram for RoR::GUI::FrictionSettings:

Data Structures

struct  Entry
 

Public Member Functions

void SetVisible (bool visible)
 
bool IsVisible () const
 
bool IsHovered () const
 
void AnalyzeTerrain ()
 
void setActiveCol (const ground_model_t *gm)
 
void Draw ()
 

Private Member Functions

void DrawTooltip (const char *title, const char *text)
 

Static Private Member Functions

static bool GmComboItemGetter (void *data, int idx, const char **out_text)
 

Private Attributes

std::vector< Entrym_gm_entries
 
int m_selected_gm = 0
 
const ground_model_tm_nearest_gm = nullptr
 
bool m_is_visible = false
 
bool m_is_hovered = false
 

Detailed Description

Definition at line 36 of file GUI_FrictionSettings.h.

Member Function Documentation

◆ AnalyzeTerrain()

void FrictionSettings::AnalyzeTerrain ( )

Definition at line 139 of file GUI_FrictionSettings.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Draw()

void FrictionSettings::Draw ( )

Definition at line 42 of file GUI_FrictionSettings.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DrawTooltip()

void FrictionSettings::DrawTooltip ( const char *  title,
const char *  text 
)
private

Definition at line 150 of file GUI_FrictionSettings.cpp.

+ Here is the caller graph for this function:

◆ GmComboItemGetter()

bool FrictionSettings::GmComboItemGetter ( void *  data,
int  idx,
const char **  out_text 
)
staticprivate

Definition at line 131 of file GUI_FrictionSettings.cpp.

+ Here is the caller graph for this function:

◆ IsHovered()

bool RoR::GUI::FrictionSettings::IsHovered ( ) const
inline

Definition at line 53 of file GUI_FrictionSettings.h.

+ Here is the call graph for this function:

◆ IsVisible()

bool RoR::GUI::FrictionSettings::IsVisible ( ) const
inline

Definition at line 52 of file GUI_FrictionSettings.h.

+ Here is the caller graph for this function:

◆ setActiveCol()

void RoR::GUI::FrictionSettings::setActiveCol ( const ground_model_t gm)
inline

Definition at line 56 of file GUI_FrictionSettings.h.

+ Here is the caller graph for this function:

◆ SetVisible()

void RoR::GUI::FrictionSettings::SetVisible ( bool  visible)
inline

Definition at line 51 of file GUI_FrictionSettings.h.

+ Here is the caller graph for this function:

Field Documentation

◆ m_gm_entries

std::vector<Entry> RoR::GUI::FrictionSettings::m_gm_entries
private

Definition at line 63 of file GUI_FrictionSettings.h.

◆ m_is_hovered

bool RoR::GUI::FrictionSettings::m_is_hovered = false
private

Definition at line 67 of file GUI_FrictionSettings.h.

◆ m_is_visible

bool RoR::GUI::FrictionSettings::m_is_visible = false
private

Definition at line 66 of file GUI_FrictionSettings.h.

◆ m_nearest_gm

const ground_model_t* RoR::GUI::FrictionSettings::m_nearest_gm = nullptr
private

Definition at line 65 of file GUI_FrictionSettings.h.

◆ m_selected_gm

int RoR::GUI::FrictionSettings::m_selected_gm = 0
private

Definition at line 64 of file GUI_FrictionSettings.h.


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