Study Dungeon  1.0.0
A group project for COSC345
Data Structures | Macros | Functions
menu.h File Reference

Classes and functions for the UI system. More...

#include "util.h"
#include <algorithm>
#include <chrono>
#include <conio.h>
#include <functional>
#include <iostream>
#include <memory>
#include <string>
#include <unordered_map>
#include <vector>
#include <windows.h>

Go to the source code of this file.

Data Structures

class  ConsoleUI::AsciiArt
 An object that stores ascii art in the form of a string. More...
 
class  ConsoleUI::ANSIArt
 A object that holds art containing 256bit colour ANSI codes. More...
 
class  ConsoleUI::ConsoleWindow
 Object repesenting the Console window. More...
 
class  ConsoleUI::Button
 The class for the button object. More...
 
class  ConsoleUI::Menu
 Defines the menu that is made of buttons. More...
 
class  ConsoleUI::Scene
 Defines a UI scene. More...
 
class  ConsoleUI::UIManager
 Defines the UI manager. More...
 

Functions

void ConsoleUI::setConsoleCursorPosition (int x, int y)
 Set the Console Cursor Position. More...
 
COORD ConsoleUI::getConsoleWindowSize ()
 Get the size of the console window. More...
 

Detailed Description

Classes and functions for the UI system.

Author
Green Alligators
Version
1.0.0
Date
2024-10-05

Function Documentation

◆ getConsoleWindowSize()

COORD ConsoleUI::getConsoleWindowSize ( )

Get the size of the console window.

Returns
COORD the X and Y dimensions of the console window

◆ setConsoleCursorPosition()

void ConsoleUI::setConsoleCursorPosition ( int  x,
int  y 
)

Set the Console Cursor Position.

Parameters
xNumber of characters from the left
ynumber of lines from the top