4 * Copyright (c) 2009-2011 project bchan
6 * This software is provided 'as-is', without any express or implied
7 * warranty. In no event will the authors be held liable for any damages
8 * arising from the use of this software.
10 * Permission is granted to anyone to use this software for any purpose,
11 * including commercial applications, and to alter it and redistribute it
12 * freely, subject to the following restrictions:
14 * 1. The origin of this software must not be misrepresented; you must not
15 * claim that you wrote the original software. If you use this software
16 * in a product, an acknowledgment in the product documentation would be
17 * appreciated but is not required.
19 * 2. Altered source versions must be plainly marked as such, and must not be
20 * misrepresented as being the original software.
22 * 3. This notice may not be removed or altered from any source
30 #include "subjectlist.h"
32 #ifndef __SUBJECTLAYOUT_H__
33 #define __SUBJECTLAYOUT_H__
35 typedef struct sbjtlayout_t_ sbjtlayout_t;
37 IMPORT sbjtlayout_t* sbjtlayout_new(GID gid);
38 IMPORT VOID sbjtlayout_delete(sbjtlayout_t *layout);
39 IMPORT W sbjtlayout_appendthread(sbjtlayout_t *layout, sbjtlist_tuple_t *tuple);
40 IMPORT VOID sbjtlayout_getdrawrect(sbjtlayout_t *layout, W *l, W *t, W *r, W *b);
41 IMPORT TC* sbjtlayout_gettitle(sbjtlayout_t *layout);
42 IMPORT VOID sbjtlayout_clear(sbjtlayout_t *layout);
43 IMPORT VOID sbjtlayout_setfsspec(sbjtlayout_t *layout, FSSPEC *fspec);
44 IMPORT VOID sbjtlayout_setvobjbgcol(sbjtlayout_t *layout, COLOR color);
45 IMPORT COLOR sbjtlayout_getvobjbgcol(sbjtlayout_t *layout);
46 IMPORT VOID sbjtlayout_setresnumberdisplay(sbjtlayout_t *layout, Bool display);
47 IMPORT VOID sbjtlayout_setsincedisplay(sbjtlayout_t *layout, Bool display);
48 IMPORT VOID sbjtlayout_setvigordisplay(sbjtlayout_t *layout, Bool display);
49 IMPORT Bool sbjtlayout_getresnumberdisplay(sbjtlayout_t *layout);
50 IMPORT Bool sbjtlayout_getsincedisplay(sbjtlayout_t *layout);
51 IMPORT Bool sbjtlayout_getvigordisplay(sbjtlayout_t *layout);
53 typedef struct sbjtdraw_t_ sbjtdraw_t;
55 IMPORT sbjtdraw_t* sbjtdraw_new(sbjtlayout_t *layout);
56 IMPORT VOID sbjtdraw_delete(sbjtdraw_t *draw);
57 IMPORT W sbjtdraw_draw(sbjtdraw_t *draw, RECT *r);
58 IMPORT W sbjtdraw_findthread(sbjtdraw_t *draw, PNT rel_pos, sbjtlist_tuple_t **thread, RECT *vframe);
59 IMPORT VOID sbjtdraw_setviewrect(sbjtdraw_t *draw, W l, W t, W r, W b);
60 IMPORT VOID sbjtdraw_getviewrect(sbjtdraw_t *draw, W *l, W *t, W *r, W *b);
61 IMPORT VOID sbjtdraw_scrollviewrect(sbjtdraw_t *draw, W dh, W dv);