---
name: "al_set_window_constraints"
section: "3alleg5"
platform: "linux"
package: "allegro5-doc"
version: "2:5.2.10.1+dfsg-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/al_set_window_constraints/3alleg5"
---

# al\_set\_window\_constraints(3alleg5)

Allegro 5 API

## NAME

al\_set\_window\_constraints - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro.h>
  bool al_set_window_constraints(ALLEGRO_DISPLAY *display,
     int min_w, int min_h, int max_w, int max_h)
  ```

## DESCRIPTION

Constrains a non-fullscreen resizable display. The constraints are a hint only, and are not necessarily respected by the window environment. A value of 0 for any of the parameters indicates no constraint for that parameter.

The constraints will be applied to a display only after the al\_apply\_window\_constraints(3alleg5) function call.

## SINCE

5\.1.0

## SEE ALSO

al\_apply\_window\_constraints(3alleg5), al\_get\_window\_constraints(3alleg5)
