X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=mod_query%2Flisting.h;h=b8eb288bf30728ea676ae44542578542d2b1d96d;hb=69fc8b21b1d40335e5c4223bcc74c26d49202fb2;hp=457ec086e9cf06fdc8899ffa419be95eb59d808c;hpb=8366314611bf30a0f31d25bf5f5023186fa87692;p=ion3.git diff --git a/mod_query/listing.h b/mod_query/listing.h index 457ec08..b8eb288 100644 --- a/mod_query/listing.h +++ b/mod_query/listing.h @@ -1,12 +1,9 @@ /* * ion/mod_query/listing.h * - * Copyright (c) Tuomo Valkonen 1999-2006. + * Copyright (c) Tuomo Valkonen 1999-2007. * - * 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 #include #include +#include INTRSTRUCT(WListing); INTRSTRUCT(WListingItemInfo); @@ -36,13 +34,19 @@ 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); extern void fit_listing(GrBrush *brush, const WRectangle *geom, WListing *l); extern void draw_listing(GrBrush *brush, const WRectangle *geom, WListing *l, - bool complete, const char *style, - const char *selstyle); + bool complete, GrAttr selattr); extern bool scrollup_listing(WListing *l); extern bool scrolldown_listing(WListing *l); extern bool listing_select(WListing *l, int i);