EMath++
Classes for mathematical concepts
|
Window class extension for input. More...
Public Member Functions | |
IWindow () noexcept | |
Default constructor. | |
const unsigned int | get_title_y () const noexcept override |
Gets the title y coordinate. | |
const unsigned int | get_title_x () const noexcept override |
Gets the title x coordinate. | |
~IWindow () noexcept=default | |
Default destructor. | |
Public Member Functions inherited from efc::Window | |
Window () noexcept | |
Generic constructor with default values. | |
const char * | get_title () const noexcept |
Returns the c_str() const char pointer of the title std::string. | |
const unsigned int & | get_y () const noexcept |
Returns the y coordinate. | |
const unsigned int & | get_x () const noexcept |
Returns the x coordinate. | |
const unsigned int & | get_height () const noexcept |
Returns the height value. | |
const unsigned int & | get_width () const noexcept |
Returns the width value. | |
const unsigned int | get_title_size () const noexcept |
Returns the title size. | |
void | set_title (const ::std::string &&title) noexcept |
Sets the title. | |
void | set_coords (const unsigned int y, const unsigned int x) noexcept |
Sets the y and x coordinates. | |
void | set_size (const unsigned int h, const unsigned int w) noexcept |
Sets the size. | |
void | set_active (const bool active) noexcept |
Sets the active boolean to the provided value. | |
virtual const unsigned int | get_title_y () const noexcept |
Gets the title y coordinate. | |
virtual const unsigned int | get_title_x () const noexcept |
Gets the title x coordinate. | |
const bool | needs_update () noexcept |
Gets if the window needs a redraw. | |
const bool | is_active () const noexcept |
Gets if the window is active/focused. | |
void | place () |
Deletes the WINDOW pointer and creates a new WINDOW at the class coordinates. | |
virtual | ~Window () noexcept |
Calls curses delwin() function on the curses WINDOW object and returns. | |
Additional Inherited Members | |
Public Attributes inherited from efc::Window | |
WINDOW * | o |
Pointer to the curses WINDOW object. | |
Protected Attributes inherited from efc::Window | |
bool | c |
Two booleans: c for knowing if contents changed, and a for knowing if window is active. | |
bool | a |
::std::string | t |
String t: window title. | |
unsigned int | y |
Four unsigned ints: x and y for the coordinates relative to the console window, w and h for the size of the window. | |
unsigned int | x |
unsigned int | h |
unsigned int | w |
Window class extension for input.
Window class implementation that focuses on showin data.
Definition at line 233 of file interface.cpp.
|
inlinenoexcept |
Default constructor.
Definition at line 238 of file interface.cpp.
|
inlineoverridevirtualnoexcept |
Gets the title x coordinate.
Reimplemented from efc::Window.
Definition at line 248 of file interface.cpp.
|
inlineoverridevirtualnoexcept |
Gets the title y coordinate.
Reimplemented from efc::Window.
Definition at line 243 of file interface.cpp.