#include <stddef.h> /* Surprisingly, the only symbol needed is NULL */
+#include <config.h>
#include "glk.h"
/* Version of the Glk specification implemented by this library */
/* Hyperlinks supported on textbuffers and textgrids */
case gestalt_HyperlinkInput:
return val == wintype_TextBuffer || val == wintype_TextGrid;
-
- /* Unsupported capabilities */
+
+ /* Mouse support present in textgrids */
case gestalt_MouseInput:
+ return val == wintype_TextGrid;
+
case gestalt_Graphics:
+ return 1;
+
case gestalt_DrawImage:
+ return val == wintype_Graphics || val == wintype_TextBuffer;
+
+ case gestalt_GraphicsTransparency:
+ return 1;
+
case gestalt_Sound:
case gestalt_SoundVolume:
+#ifdef GSTREAMER_SOUND
+ return 1;
+#else
+ return 0;
+#endif
+
+ /* Unsupported capabilities */
case gestalt_SoundNotify:
case gestalt_SoundMusic:
- case gestalt_GraphicsTransparency:
/* Selector not supported */
default:
return 0;