示例#1
0
void frame::set_colour(const colour_pair& cp) { set_attribute(true, cp.get_id()); }
示例#2
0
void frame::set_colour(const colour_pair& cp, bool set) { set_attribute(set, cp.get_id()); }
示例#3
0
void swap(colour_pair& a, colour_pair& b) {
	a.swap(b);	
}
示例#4
0
colour_pair::colour_pair(const colour_pair& other) 
:	id { get_any_id(other.get_foreground(), other.get_background()) }
{	}
示例#5
0
bool colour_pair::operator==(const colour_pair& other) const {
	return other.get_pair() == get_pair(); //id == id should work too
}