X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;ds=sidebyside;f=libchimara%2Fgarglk.h;h=91c436434f7203d7885b6e6d78adea0545241fda;hb=9b7445bd66c18e85b0d312f0c12a5050fe528073;hp=1e55f5b0d6b0f6d7c3892e4371382ae1c3c45e2f;hpb=eadb51bbb70b0b71a283ed7af7977dc10031f1ff;p=projects%2Fchimara%2Fchimara.git
diff --git a/libchimara/garglk.h b/libchimara/garglk.h
index 1e55f5b..91c4364 100644
--- a/libchimara/garglk.h
+++ b/libchimara/garglk.h
@@ -10,8 +10,7 @@
*
* Chimara
* Currently, in Chimara, the functions are defined, but a few of them
- * (garglk_set_line_terminators(),
- * garglk_unput_string(), and garglk_unput_string_uni()) are not implemented.
+ * (garglk_unput_string() and garglk_unput_string_uni()) are not implemented.
* You can call them, but they will have no effect except to print a warning
* to the console.
*
@@ -23,25 +22,36 @@ extern char* garglk_fileref_get_name(frefid_t fref);
extern void garglk_set_program_name(const char *name);
extern void garglk_set_program_info(const char *info);
extern void garglk_set_story_name(const char *name);
-
+extern void garglk_set_story_title(const char *title);
/*
This function is not implemented even in Gargoyle. Looks like it was planned,
but never added.
extern void garglk_set_config(const char *name);
*/
-/* JM: functions added to support Z-machine features that aren't in the Glk standard */
-
-extern void garglk_set_line_terminators(winid_t win, const glui32 *keycodes, glui32 numkeycodes);
-
/* garglk_unput_string - removes the specified string from the end of the output buffer, if
* indeed it is there. */
extern void garglk_unput_string(char *str);
extern void garglk_unput_string_uni(glui32 *str);
-/* TODO document */
+/**
+ * zcolor_Transparent:
+ *
+ * Z-machine color constant representing no color, i.e. transparency.
+ *
+ * Passing this constant to garglk_set_zcolors() or
+ * garglk_set_zcolors_stream() is not currently implemented.
+ */
#define zcolor_Transparent (-4)
-/* TODO document */
+/**
+ * zcolor_Cursor:
+ *
+ * Z-machine color constant representing the color at the current position of
+ * the cursor.
+ *
+ * Passing this constant to garglk_set_zcolors() or
+ * garglk_set_zcolors_stream() is not currently implemented.
+ */
#define zcolor_Cursor (-3)
/**
* zcolor_Current:
@@ -70,12 +80,22 @@ extern void garglk_set_reversevideo_stream(strid_t str, glui32 reverse);
* %keycode_Erase to represent only the
* Delete key. In character input, Delete is
* still reported as %keycode_Delete, but the two are distinguished in
- * garglk_set_line_terminators().
+ * glk_set_terminators_line_event().
*/
#define keycode_Erase (0xffffef7f)
-/* TODO document */
+/**
+ * keycode_MouseWheelUp:
+ *
+ * This key code represents the mouse wheel scrolling up in a window. It is
+ * never used in Chimara.
+ */
#define keycode_MouseWheelUp (0xffffeffe)
-/* TODO document */
+/**
+ * keycode_MouseWheelDown:
+ *
+ * This key code represents the mouse wheel scrolling down in a window. It is
+ * never used in Chimara.
+ */
#define keycode_MouseWheelDown (0xffffefff)
#endif /* __GARGLK_H__ */