RigsofRods
Soft-body Physics Simulation
Public Member Functions | Private Member Functions | Private Attributes
RoR::GUI::MessageBoxDialog Class Reference

#include <GUI_MessageBox.h>

+ Collaboration diagram for RoR::GUI::MessageBoxDialog:

Public Member Functions

void Show (MessageBoxConfig const &cfg)
 
void Show (const char *title, const char *text, bool allow_close, const char *button1_text, const char *button2_text)
 
void Draw ()
 
bool IsVisible () const
 

Private Member Functions

void DrawButton (MessageBoxButton const &button)
 

Private Attributes

MessageBoxConfig m_cfg
 
bool * m_close_handle = nullptr
 If nullptr, close button is hidden. Otherwise visible. More...
 
bool m_is_visible = false
 

Detailed Description

Definition at line 65 of file GUI_MessageBox.h.

Member Function Documentation

◆ Draw()

void MessageBoxDialog::Draw ( )

Definition at line 97 of file GUI_MessageBox.cpp.

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

◆ DrawButton()

void MessageBoxDialog::DrawButton ( MessageBoxButton const &  button)
private

Definition at line 133 of file GUI_MessageBox.cpp.

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

◆ IsVisible()

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

Definition at line 71 of file GUI_MessageBox.h.

+ Here is the caller graph for this function:

◆ Show() [1/2]

void MessageBoxDialog::Show ( const char *  title,
const char *  text,
bool  allow_close,
const char *  button1_text,
const char *  button2_text 
)

Definition at line 69 of file GUI_MessageBox.cpp.

+ Here is the call graph for this function:

◆ Show() [2/2]

void MessageBoxDialog::Show ( MessageBoxConfig const &  cfg)

Definition at line 42 of file GUI_MessageBox.cpp.

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

Field Documentation

◆ m_cfg

MessageBoxConfig RoR::GUI::MessageBoxDialog::m_cfg
private

Definition at line 76 of file GUI_MessageBox.h.

◆ m_close_handle

bool* RoR::GUI::MessageBoxDialog::m_close_handle = nullptr
private

If nullptr, close button is hidden. Otherwise visible.

Definition at line 77 of file GUI_MessageBox.h.

◆ m_is_visible

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

Definition at line 78 of file GUI_MessageBox.h.


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