Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

set_display_switch_callback(3alleg4) [mojave man page]

set_display_switch_callback(3alleg4)				  Allegro manual			      set_display_switch_callback(3alleg4)

NAME
set_display_switch_callback - Installs a switching notification callback. Allegro game programming library. SYNOPSIS
#include <allegro.h> int set_display_switch_callback(int dir, void (*cb)()); DESCRIPTION
Installs a notification callback for the switching mode that was previously selected by calling set_display_switch_mode(). The direction parameter can either be SWITCH_IN or SWITCH_OUT, depending whether you want to be notified about switches away from your program or back to your program. You can sometimes install callbacks for both directions at the same time, but not every platform supports this. You can install several switch callbacks, but no more than eight on any platform. RETURN VALUE
Returns zero on success, decreasing the number of empty callback slots by one. Returns -1 if the request is impossible for the current platform or you have reached the maximum number of allowed callbacks. SEE ALSO
remove_display_switch_callback(3alleg4), set_display_switch_mode(3alleg4), exswitch(3alleg4) Allegro version 4.4.2 set_display_switch_callback(3alleg4)

Check Out this Related Man Page

set_display_switch_callback(3alleg4)				  Allegro manual			      set_display_switch_callback(3alleg4)

NAME
set_display_switch_callback - Installs a switching notification callback. Allegro game programming library. SYNOPSIS
#include <allegro.h> int set_display_switch_callback(int dir, void (*cb)()); DESCRIPTION
Installs a notification callback for the switching mode that was previously selected by calling set_display_switch_mode(). The direction parameter can either be SWITCH_IN or SWITCH_OUT, depending whether you want to be notified about switches away from your program or back to your program. You can sometimes install callbacks for both directions at the same time, but not every platform supports this. You can install several switch callbacks, but no more than eight on any platform. RETURN VALUE
Returns zero on success, decreasing the number of empty callback slots by one. Returns -1 if the request is impossible for the current platform or you have reached the maximum number of allowed callbacks. SEE ALSO
remove_display_switch_callback(3alleg4), set_display_switch_mode(3alleg4), exswitch(3alleg4) Allegro version 4.4.2 set_display_switch_callback(3alleg4)
Man Page

3 More Discussions You Might Find Interesting

1. Programming

How a program can know where it is located by itself?

Hello, I'm a begginer of programming in UNIX platform. Now I'm trying to make a C program on Hp-UX11i and the program needs to know its absolute path when it is executed. the current directory of the program is not enough, because the program may change the current directory... I need... (1 Reply)
Discussion started by: maekawa
1 Replies

2. Programming

if

How I can include one head file if this program compiles on freeBSD and other if on the Linux platform. #include <some.h> I know that very often it does configure script, but can I do it directly in cpp code? (1 Reply)
Discussion started by: mirusnet
1 Replies

3. OS X (Apple)

vt switching

greetings, i hope this hasn't been covered previously. has anyone heard of a .kext or daemon that would allow linux or (open)solaris-like vt switching? googling didn't help much.. i know os x allows a '>console' login from loginwindow.app, but i'm mainly interested in this because there are... (0 Replies)
Discussion started by: bamdad
0 Replies