Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

gui_menu_draw_menu(3alleg4) [opendarwin man page]

gui_menu_draw_menu(3alleg4)					  Allegro manual				       gui_menu_draw_menu(3alleg4)

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 hori- zontal menu bar, and sel will be set if the menu item is selected. It should also draw onto screen. SEE ALSO
Allegro version 4.4.2 gui_menu_draw_menu(3alleg4)

Check Out this Related Man Page

d_menu_proc(3alleg4)						  Allegro manual					      d_menu_proc(3alleg4)

NAME
d_menu_proc - Dialog procedure implementing a menu bar object. Allegro game programming library. SYNOPSIS
#include <allegro.h> int d_menu_proc(int msg, DIALOG *d, int c); DESCRIPTION
This object is a menu bar which will drop down child menus when it is clicked or if an alt+key corresponding to one of the shortcuts in the menu is pressed. It ignores a lot of the fields in the dialog structure, in particular the color is taken from the gui_*_color variables, and the width and height are calculated automatically (the w and h fields from the DIALOG are only used as a minimum size.) The dp field points to an array of menu structures: see do_menu() for more information. The top level menu will be displayed as a horizontal bar, but when child menus drop down from it they will be in the normal vertical format used by do_menu(). When a menu item is selected, the return value from the menu callback function is passed back to the dialog manager, so your callbacks should return D_O_K, D_REDRAW, or D_CLOSE. SEE ALSO
active_menu(3alleg4), gui_menu_draw_menu(3alleg4), exgui(3alleg4) Allegro version 4.4.2 d_menu_proc(3alleg4)
Man Page

2 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Shopt -s histappend

What is the point of this? Whenever I close my shell it appends to the history file without adding this. I have never seen it overwrite my history file. # When the shell exits, append to the history file instead of overwriting it shopt -s histappend (3 Replies)
Discussion started by: cokedude
3 Replies

2. OS X (Apple)

Undeletable file

Greetings, I'm trying to delete a file with a weird name from within Terminal on a Mac. It's a very old file (1992) with null characters in the name: “␀␀Word FinderÂŽ Plus™”. Here are some examples of what I've tried: 12FX009:5 dpontius$ ls ␀␀Word FinderÂŽ Plus™ 12FX009:5 dpontius$ rm... (29 Replies)
Discussion started by: dpontius
29 Replies