]> git.decadent.org.uk Git - ion3.git/blobdiff - mod_query/listing.h
Imported Upstream version 20090110
[ion3.git] / mod_query / listing.h
index b4d10f06dca7b0612377ab6a0ec37d5f8063e33e..2b2a215aeffdcdbdfc1ee1224f2cc5442af8c64f 100644 (file)
@@ -1,12 +1,9 @@
 /*
  * ion/mod_query/listing.h
  *
- * Copyright (c) Tuomo Valkonen 1999-2007
+ * Copyright (c) Tuomo Valkonen 1999-2009
  *
- * Ion is free software; you can redistribute it and/or modify it under
- * the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1 of the License, or
- * (at your option) any later version.
+ * See the included file LICENSE for details.
  */
 
 #ifndef ION_MOD_QUERY_LISTING_H
@@ -15,6 +12,7 @@
 #include <ioncore/common.h>
 #include <ioncore/gr.h>
 #include <ioncore/rectangle.h>
+#include <libtu/minmax.h>
 
 INTRSTRUCT(WListing);
 INTRSTRUCT(WListingItemInfo);
@@ -36,6 +34,13 @@ DECLSTRUCT(WListing){
     bool onecol;
 };
 
+
+#define LISTING_DRAW_COMPLETE 1
+#define LISTING_DRAW_ALL 0
+#define LISTING_DRAW_SELECTED(X) minof(-1, -(X)-2)
+#define LISTING_DRAW_GET_SELECTED(X) (-(X)-2)
+
+    
 extern void init_listing(WListing *l);
 extern void setup_listing(WListing *l, char **strs, int nstrs, bool onecol);
 extern void deinit_listing(WListing *l);