---
name: "gui_menu_draw_menu"
section: "3alleg4"
platform: "linux"
package: "allegro4-doc"
version: "2:4.4.3.1-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/gui_menu_draw_menu/3alleg4"
---

# gui\_menu\_draw\_menu(3alleg4)

Hooks to modify the appearance of menus. Allegro game programming library.

## NAME

gui\_menu\_draw\_menu, gui\_menu\_draw\_menu\_item - Hooks to modify the appearance of menus. Allegro game programming library.

## SYNOPSIS

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

**extern void (\*gui\_menu\_draw\_menu)(int x, int y, int w, int h);**

**extern void (\*gui\_menu\_draw\_menu\_item)(MENU \*m, int x, int y, int w,**

**int h, int bar, int sel);**

## DESCRIPTION

If set, these functions will be called whenever a menu needs to be drawn, so you can change how menus look.

gui\_menu\_draw\_menu() is passed the position and size of the menu. It should draw the background of the menu onto screen.

gui\_menu\_draw\_menu\_item() is called once for each menu item that is to be drawn. bar will be set if the item is part of a top-level horizontal menu bar, and sel will be set if the menu item is selected. It should also draw onto screen.

## SEE ALSO
