X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bam_tview.h;h=80f046483be3c7822da697825d9725604840d6a7;hb=dbc7644895129440a9b1d7b448d5d8046b7af5d4;hp=c9952c9496f31f865973435e2ee8703b79b3f898;hpb=1bdc0794c25967da86e798ebcfd51c2a5891ebc8;p=samtools.git diff --git a/bam_tview.h b/bam_tview.h index c9952c9..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" @@ -36,6 +37,9 @@ typedef struct AbstractTview { 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