Max 5 API Reference
00001 /*************************/ 00002 /* Copyright 1988 IRCAM. */ 00003 /*************************/ 00004 #ifndef _EXT_WIND_H_ 00005 #define _EXT_WIND_H_ 00006 00007 #ifdef __cplusplus 00008 extern "C" { 00009 #endif 00010 00011 00012 /** Returned values from wind_advise() 00013 @ingroup misc 00014 */ 00015 typedef enum { 00016 aaYes = 1, ///< Yes button was choosen 00017 aaNo, ///< No button was choosen 00018 aaCancel ///< Cancel button was choosen 00019 } e_max_wind_advise_result; 00020 00021 00022 /** Throw a dialog which may have text and up to three buttons. 00023 For example, this can be used to ask "Save changes before..." 00024 @ingroup misc 00025 @param w The window with which this dialog is associated. 00026 @param s A string with any sprintf()-like formatting to be displayed. 00027 @param ... Any variables that should be substituted in the string defined by s. 00028 @return One of the values defined in #e_max_wind_advise_result, depending on what the user selected. 00029 */ 00030 short wind_advise(t_object *w, char *s, ...); 00031 00032 00033 /** Change the cursor. 00034 @ingroup misc 00035 00036 @param which One of the following predefined cursors: 00037 @code 00038 #define C_ARROW 1 00039 #define C_WATCH 2 00040 #define C_IBEAM 3 00041 #define C_HAND 4 00042 #define C_CROSS 5 00043 #define C_PENCIL 6 00044 #define C_GROW 8 00045 @endcode 00046 00047 @remark wind_setcursor() keeps track of what the cursor was previously set 00048 to, so if something else has changed the cursor, you may not see a new 00049 cursor if you set it to the previous argument to wind_setcursor(). 00050 00051 The solution is to call wind_setcursor(0) before calling it with the 00052 desired cursor constant. Use wind_setcursor(-1) to tell Max you’ll set 00053 the cursor to your own cursor directly. 00054 */ 00055 void wind_setcursor(short which); 00056 00057 00058 #ifdef __cplusplus 00059 } 00060 #endif 00061 00062 #endif // _EXT_WIND_H_
Copyright © 2008, Cycling '74