X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bam_tview.h;h=80f046483be3c7822da697825d9725604840d6a7;hb=5193fbf4944f67fd2d2bb0be5a54b5bbd27c5e6b;hp=2f395ff892e2baf75d0f4c444f0658f91b2a765f;hpb=3880f184334b2b5afe27de5c5a0f344cdcff1ef9;p=samtools.git diff --git a/bam_tview.h b/bam_tview.h index 2f395ff..80f0464 100644 --- a/bam_tview.h +++ b/bam_tview.h @@ -6,6 +6,7 @@ #include #include #include +#include #include "bam.h" #include "faidx.h" #include "bam2bcf.h" @@ -29,13 +30,16 @@ typedef struct AbstractTview { char *ref; khash_t(kh_rg) *rg_hash; /* callbacks */ - void (*destroy)(struct AbstractTview* ); + void (*my_destroy)(struct AbstractTview* ); void (*my_mvprintw)(struct AbstractTview* ,int,int,const char*,...); void (*my_mvaddch)(struct AbstractTview*,int,int,int); void (*my_attron)(struct AbstractTview*,int); void (*my_attroff)(struct AbstractTview*,int); void (*my_clear)(struct AbstractTview*); int (*my_colorpair)(struct AbstractTview*,int); + int (*my_drawaln)(struct AbstractTview*,int,int); + int (*my_loop)(struct AbstractTview*); + int (*my_underline)(struct AbstractTview*); } tview_t; @@ -59,13 +63,13 @@ char bam_aux_getCQi(bam1_t *b, int i); int tv_pl_func(uint32_t tid, uint32_t pos, int n, const bam_pileup1_t *pl, void *data); int base_tv_init(tview_t*,const char *fn, const char *fn_fa, const char *samples); void base_tv_destroy(tview_t*); +int base_draw_aln(tview_t *tv, int tid, int pos); -int tv_draw_aln(tview_t *tv, int tid, int pos); - - -enum { - BAM_TVIEW_UNDERLINE - }; +typedef struct Tixel + { + int ch; + int attributes; + }tixel_t; #endif