---
name: "scare_mouse_area"
section: "3alleg"
platform: "linux"
package: "liballegro-doc"
version: "2:4.2.2-2.2"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/scare_mouse_area"
---

# scare\_mouse\_area(3alleg)

Helper for hiding the mouse cursor before drawing in an area. Allegro game programming library.

## NAME

scare\_mouse\_area - Helper for hiding the mouse cursor before drawing in an area. Allegro game programming library.

## SYNOPSIS

**#include \<allegro.h\>**

**void scare\_mouse\_area(int x, int y, int w, int h);**

## DESCRIPTION

Like scare\_mouse(), but will only hide the cursor if it is inside the  specified rectangle. Otherwise the cursor will simply be frozen in place  until you call unscare\_mouse(), so it cannot interfere with your drawing.

## SEE ALSO

[**unscare\_mouse**(3alleg)](/unscare_mouse/3alleg.md), [**scare\_mouse**(3alleg)](/scare_mouse/3alleg.md), [**show\_mouse**(3alleg)](/show_mouse/3alleg.md)
