Ohm/GUI/Menu/Menu.cc
// Check if the user is pressing the 'close' button at the top right.
Check if the user is pressing the 'close' button at the top right.
Check if the user is pressing the ' close ' button at the top right .
bool Menu::IsClosing() {
	return isClicking &&
		mouseX == previousMouseX &&
		mouseY == previousMouseY &&
		IsInRegion(
			mouseX, mouseY,
			offsetX + TITLEBAR_WIDTH - BUTTON_HEIGHT, offsetY,
			BUTTON_WIDTH, BUTTON_HEIGHT
		);
}
bool Menu :: IsClosing ( ) { return isClicking && mouseX == previousMouseX && mouseY == previousMouseY && IsInRegion ( mouseX , mouseY , offsetX + TITLEBAR_WIDTH - BUTTON_HEIGHT , offsetY , BUTTON_WIDTH , BUTTON_HEIGHT ) ; }
Check if the user is pressing the 'close' button at the top right.
Check if the user is pressing the ' close ' button at the top right .