midday-commander
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
Modal Class Reference

A helper class allowing Actions to receive input and show messages. More...

#include <Modal.h>

Public Member Functions

 Modal (std::string title, int height, int width)
 
 Modal (int height, int width)
 
Modalshow ()
 
std::string input ()
 
Modalmessage (std::string)
 
void destroy ()
 

Private Attributes

std::string title
 
int height
 
int width
 
WINDOW * window {}
 

Detailed Description

A helper class allowing Actions to receive input and show messages.

Constructor & Destructor Documentation

◆ Modal() [1/2]

Modal::Modal ( std::string  title,
int  height,
int  width 
)

◆ Modal() [2/2]

Modal::Modal ( int  height,
int  width 
)

Member Function Documentation

◆ destroy()

void Modal::destroy ( )
Here is the caller graph for this function:

◆ input()

std::string Modal::input ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ message()

Modal & Modal::message ( std::string  message)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ show()

Modal & Modal::show ( )
Here is the caller graph for this function:

Member Data Documentation

◆ height

int Modal::height
private

◆ title

std::string Modal::title
private

◆ width

int Modal::width
private

◆ window

WINDOW* Modal::window {}
private

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