EMath++
Classes for mathematical concepts
Loading...
Searching...
No Matches
efc::IWindow Class Reference

Window class extension for input. More...

+ Inheritance diagram for efc::IWindow:
+ Collaboration diagram for efc::IWindow:

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
 

Detailed Description

Window class extension for input.

Window class implementation that focuses on showin data.

Definition at line 233 of file interface.cpp.

Constructor & Destructor Documentation

◆ IWindow()

efc::IWindow::IWindow ( )
inlinenoexcept

Default constructor.

Definition at line 238 of file interface.cpp.

Member Function Documentation

◆ get_title_x()

const unsigned int efc::IWindow::get_title_x ( ) const
inlineoverridevirtualnoexcept

Gets the title x coordinate.

Returns
(const unsigned int) The title x coordinate as a const unsigned int

Reimplemented from efc::Window.

Definition at line 248 of file interface.cpp.

◆ get_title_y()

const unsigned int efc::IWindow::get_title_y ( ) const
inlineoverridevirtualnoexcept

Gets the title y coordinate.

Returns
(const unsigned int) The title y coordinate as a const unsigned int

Reimplemented from efc::Window.

Definition at line 243 of file interface.cpp.


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