-
Notifications
You must be signed in to change notification settings - Fork 0
/
Frame.h
41 lines (30 loc) · 854 Bytes
/
Frame.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef __FRAME_H__
#define __FRAME_H__
// system includes
#include <string>
namespace df{
class Frame {
private:
int width; // Width of frame.
int height; // Height of frame.
std::string frame_str; // All frame characters stored as string.
public:
// Create empty frame.
Frame();
// Create frame of indicated width and height with string.
Frame(int new_width, int new_height, std::string frame_str);
// Set width of frame.
void setWidth(int new_width);
// Get width of frame.
int getWidth() const;
// Set height of frame.
void setHeight(int new_height);
// Get height of frame.
int getHeight() const;
// Set frame characters (stored as string).
void setString(std::string new_frame_str);
// Get frame characters (stored as string).
std::string getString() const;
};
}
#endif