Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
terminal_gui/include/drawable.h
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
19 lines (14 sloc)
443 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef DRAWABLE_H | |
#define DRAWABLE_H | |
#include "terminal.h" | |
#include "position.h" | |
class Drawable : public Position | |
{ | |
public: | |
Terminal::Color foreground, background; | |
Drawable( int _x=0, int _y=0, | |
Terminal::Color _foreground=Terminal::Color::FG_DEFAULT, Terminal::Color _background=Terminal::Color::BG_DEFAULT ) | |
: Position( _x, _y ), foreground(_foreground), background(_background) {} | |
virtual void draw() const = 0; | |
}; | |
#endif |