function Buttons() {
	this.buttons = [];
}

Buttons.prototype.addButton = function(button) {
	this.buttons.push(button);
}
Buttons.prototype.processClick = function(p) {
	for (var i =0; i < this.buttons.length; ++i) {
		var button = this.buttons[i];
		if (button.contains(p)) {
			button.action();
		}
	}
}
Buttons.prototype.render = function(g) {
	for (var i =0; i < this.buttons.length; ++i) {
		this.buttons[i].render(g);
	}
}
