|
| API const char * | notcurses_version (void) |
| |
| API void | notcurses_version_components (int *major, int *minor, int *patch, int *tweak) |
| |
| API int | ncstrwidth (const char *egcs, int *validbytes, int *validwidth) __attribute__((nonnull(1))) |
| |
| API int | notcurses_ucs32_to_utf8 (const uint32_t *ucs32, unsigned ucs32count, unsigned char *resultbuf, size_t buflen) __attribute__((nonnull(1 |
| |
| API int | nccell_load (struct ncplane *n, nccell *c, const char *gcluster) |
| |
| API int | nccell_duplicate (struct ncplane *n, nccell *targ, const nccell *c) |
| |
| API void | nccell_release (struct ncplane *n, nccell *c) |
| |
| API | __attribute__ ((returns_nonnull)) const char *nccell_extended_gcluster(const struct ncplane *n |
| |
| API int | notcurses_lex_margins (const char *op, notcurses_options *opts) __attribute__((nonnull(1))) |
| |
| API int | notcurses_lex_blitter (const char *op, ncblitter_e *blitter) __attribute__((nonnull(1))) |
| |
| API const char * | notcurses_str_blitter (ncblitter_e blitter) |
| |
| API int | notcurses_lex_scalemode (const char *op, ncscale_e *scalemode) __attribute__((nonnull(1))) |
| |
| API const char * | notcurses_str_scalemode (ncscale_e scalemode) |
| |
| API ALLOC struct notcurses * | notcurses_init (const notcurses_options *opts, FILE *fp) |
| |
| API ALLOC struct notcurses * | notcurses_core_init (const notcurses_options *opts, FILE *fp) |
| |
| API int | notcurses_stop (struct notcurses *nc) |
| |
| API int | notcurses_enter_alternate_screen (struct notcurses *nc) __attribute__((nonnull(1))) |
| |
| API int | notcurses_leave_alternate_screen (struct notcurses *nc) __attribute__((nonnull(1))) |
| |
| API struct ncplane * | notcurses_stdplane (struct notcurses *nc) __attribute__((nonnull(1))) |
| |
| API const struct ncplane * | notcurses_stdplane_const (const struct notcurses *nc) __attribute__((nonnull(1))) |
| |
| API struct ncplane * | ncpile_top (struct ncplane *n) __attribute__((nonnull(1))) |
| |
| API struct ncplane * | ncpile_bottom (struct ncplane *n) __attribute__((nonnull(1))) |
| |
| API int | ncpile_render (struct ncplane *n) __attribute__((nonnull(1))) |
| |
| API int | ncpile_rasterize (struct ncplane *n) __attribute__((nonnull(1))) |
| |
| API int | ncpile_render_to_buffer (struct ncplane *p, char **buf, size_t *buflen) __attribute__((nonnull(1 |
| |
| API int API int | ncpile_render_to_file (struct ncplane *p, FILE *fp) __attribute__((nonnull(1 |
| |
| API int API int API void | notcurses_drop_planes (struct notcurses *nc) __attribute__((nonnull(1))) |
| |
| API uint32_t | notcurses_get (struct notcurses *n, const struct timespec *ts, ncinput *ni) __attribute__((nonnull(1))) |
| |
| API int | notcurses_getvec (struct notcurses *n, const struct timespec *ts, ncinput *ni, int vcount) __attribute__((nonnull(1 |
| |
| API int API int | notcurses_inputready_fd (struct notcurses *n) __attribute__((nonnull(1))) |
| |
| API int | notcurses_mice_enable (struct notcurses *n, unsigned eventmask) __attribute__((nonnull(1))) |
| |
| | __attribute__ ((nonnull(1))) static inline int notcurses_mice_disable(struct notcurses *n) |
| |
| API int | notcurses_linesigs_disable (struct notcurses *n) __attribute__((nonnull(1))) |
| |
| API int | notcurses_linesigs_enable (struct notcurses *n) __attribute__((nonnull(1))) |
| |
| API int | notcurses_refresh (struct notcurses *n, unsigned *RESTRICT y, unsigned *RESTRICT x) __attribute__((nonnull(1))) |
| |
| API struct notcurses * | ncplane_notcurses (const struct ncplane *n) __attribute__((nonnull(1))) |
| |
| API const struct notcurses * | ncplane_notcurses_const (const struct ncplane *n) __attribute__((nonnull(1))) |
| |
| API void | ncplane_dim_yx (const struct ncplane *n, unsigned *RESTRICT y, unsigned *RESTRICT x) __attribute__((nonnull(1))) |
| |
| API void | ncplane_pixel_geom (const struct ncplane *n, unsigned *RESTRICT pxy, unsigned *RESTRICT pxx, unsigned *RESTRICT celldimy, unsigned *RESTRICT celldimx, unsigned *RESTRICT maxbmapy, unsigned *RESTRICT maxbmapx) __attribute__((nonnull(1))) |
| |
| API char * | notcurses_at_yx (struct notcurses *nc, unsigned yoff, unsigned xoff, uint16_t *stylemask, uint64_t *channels) __attribute__((nonnull(1))) |
| |
| API ALLOC struct ncplane * | ncplane_create (struct ncplane *n, const ncplane_options *nopts) __attribute__((nonnull(1 |
| |
| API ALLOC struct ncplane API ALLOC struct ncplane * | ncpile_create (struct notcurses *nc, const ncplane_options *nopts) __attribute__((nonnull(1 |
| |
| API ALLOC struct ncplane API ALLOC struct ncplane API int | ncplane_resize_maximize (struct ncplane *n) |
| |
| API int | ncplane_resize_marginalized (struct ncplane *n) |
| |
| API int | ncplane_resize_realign (struct ncplane *n) |
| |
| API int | ncplane_resize_placewithin (struct ncplane *n) |
| |
| API void | ncplane_set_resizecb (struct ncplane *n, int(*resizecb)(struct ncplane *)) |
| |
| API int | ncplane_set_name (struct ncplane *n, const char *name) __attribute__((nonnull(1))) |
| |
| API ALLOC char * | ncplane_name (const struct ncplane *n) __attribute__((nonnull(1))) |
| |
| API struct ncplane * | ncplane_reparent (struct ncplane *n, struct ncplane *newparent) __attribute__((nonnull(1 |
| |
| API struct ncplane API struct ncplane * | ncplane_reparent_family (struct ncplane *n, struct ncplane *newparent) __attribute__((nonnull(1 |
| |
| API struct ncplane API struct ncplane API ALLOC struct ncplane * | ncplane_dup (const struct ncplane *n, void *opaque) __attribute__((nonnull(1))) |
| |
| API void | ncplane_translate (const struct ncplane *src, const struct ncplane *dst, int *RESTRICT y, int *RESTRICT x) __attribute__((nonnull(1))) |
| |
| API bool | ncplane_translate_abs (const struct ncplane *n, int *RESTRICT y, int *RESTRICT x) __attribute__((nonnull(1))) |
| |
| API bool | ncplane_set_scrolling (struct ncplane *n, unsigned scrollp) __attribute__((nonnull(1))) |
| |
| API bool | ncplane_scrolling_p (const struct ncplane *n) __attribute__((nonnull(1))) |
| |
| API bool | ncplane_set_autogrow (struct ncplane *n, unsigned growp) __attribute__((nonnull(1))) |
| |
| API bool | ncplane_autogrow_p (const struct ncplane *n) __attribute__((nonnull(1))) |
| |
| API ALLOC ncpalette * | ncpalette_new (struct notcurses *nc) __attribute__((nonnull(1))) |
| |
| API int | ncpalette_use (struct notcurses *nc, const ncpalette *p) __attribute__((nonnull(1 |
| |
| API void | ncpalette_free (ncpalette *p) |
| |
| API uint16_t | notcurses_supported_styles (const struct notcurses *nc) __attribute__((nonnull(1))) __attribute__((pure)) |
| |
| API unsigned | notcurses_palette_size (const struct notcurses *nc) __attribute__((nonnull(1))) __attribute__((pure)) |
| |
| ALLOC API char * | notcurses_detected_terminal (const struct notcurses *nc) __attribute__((nonnull(1))) |
| |
| API const nccapabilities * | notcurses_capabilities (const struct notcurses *n) __attribute__((nonnull(1))) |
| |
| API ncpixelimpl_e | notcurses_check_pixel_support (const struct notcurses *nc) __attribute__((nonnull(1))) __attribute__((pure)) |
| |
| API bool | notcurses_canopen_images (const struct notcurses *nc) __attribute__((pure)) |
| |
| API bool | notcurses_canopen_videos (const struct notcurses *nc) __attribute__((pure)) |
| |
| API ALLOC ncstats * | notcurses_stats_alloc (const struct notcurses *nc __attribute__((unused))) __attribute__((nonnull(1))) |
| |
| API void | notcurses_stats (struct notcurses *nc, ncstats *stats) __attribute__((nonnull(1 |
| |
| API void API void | notcurses_stats_reset (struct notcurses *nc, ncstats *stats) __attribute__((nonnull(1))) |
| |
| API int | ncplane_resize (struct ncplane *n, int keepy, int keepx, unsigned keepleny, unsigned keeplenx, int yoff, int xoff, unsigned ylen, unsigned xlen) |
| |
| API int | ncplane_destroy (struct ncplane *n) |
| |
| API int | ncplane_set_base_cell (struct ncplane *n, const nccell *c) |
| |
| API int | ncplane_set_base (struct ncplane *n, const char *egc, uint16_t stylemask, uint64_t channels) |
| |
| API int | ncplane_base (struct ncplane *n, nccell *c) |
| |
| API void | ncplane_yx (const struct ncplane *n, int *RESTRICT y, int *RESTRICT x) __attribute__((nonnull(1))) |
| |
| API int | ncplane_y (const struct ncplane *n) __attribute__((pure)) |
| |
| API int | ncplane_x (const struct ncplane *n) __attribute__((pure)) |
| |
| API int | ncplane_move_yx (struct ncplane *n, int y, int x) |
| |
| | ncplane_yx (n, &oy, &ox) |
| |
| return | ncplane_move_yx (n, oy+y, ox+x) |
| |
| API void | ncplane_abs_yx (const struct ncplane *n, int *RESTRICT y, int *RESTRICT x) __attribute__((nonnull(1))) |
| |
| API int | ncplane_abs_y (const struct ncplane *n) __attribute__((pure)) |
| |
| API int | ncplane_abs_x (const struct ncplane *n) __attribute__((pure)) |
| |
| API struct ncplane * | ncplane_parent (struct ncplane *n) __attribute__((nonnull(1))) |
| |
| API const struct ncplane * | ncplane_parent_const (const struct ncplane *n) __attribute__((nonnull(1))) |
| |
| API int | ncplane_move_above (struct ncplane *RESTRICT n, struct ncplane *RESTRICT above) __attribute__((nonnull(1))) |
| |
| API int | ncplane_move_below (struct ncplane *RESTRICT n, struct ncplane *RESTRICT below) __attribute__((nonnull(1))) |
| |
| API int | ncplane_move_family_above (struct ncplane *n, struct ncplane *targ) __attribute__((nonnull(1))) |
| |
| API int | ncplane_move_family_below (struct ncplane *n, struct ncplane *targ) __attribute__((nonnull(1))) |
| |
| API int | ncplane_family_destroy (struct ncplane *n) |
| |
| API struct ncplane * | ncplane_below (struct ncplane *n) __attribute__((nonnull(1))) |
| |
| API struct ncplane * | ncplane_above (struct ncplane *n) __attribute__((nonnull(1))) |
| |
| API int | ncplane_scrollup (struct ncplane *n, int r) __attribute__((nonnull(1))) |
| |
| API int | ncplane_scrollup_child (struct ncplane *n, const struct ncplane *child) __attribute__((nonnull(1 |
| |
| API int API int | ncplane_rotate_cw (struct ncplane *n) __attribute__((nonnull(1))) |
| |
| API int | ncplane_rotate_ccw (struct ncplane *n) __attribute__((nonnull(1))) |
| |
| API char * | ncplane_at_cursor (const struct ncplane *n, uint16_t *stylemask, uint64_t *channels) __attribute__((nonnull(1))) |
| |
| API int | ncplane_at_cursor_cell (struct ncplane *n, nccell *c) __attribute__((nonnull(1 |
| |
| API int API char * | ncplane_at_yx (const struct ncplane *n, int y, int x, uint16_t *stylemask, uint64_t *channels) __attribute__((nonnull(1))) |
| |
| API int | ncplane_at_yx_cell (struct ncplane *n, int y, int x, nccell *c) __attribute__((nonnull(1 |
| |
| API int API char * | ncplane_contents (struct ncplane *n, int begy, int begx, unsigned leny, unsigned lenx) __attribute__((nonnull(1))) |
| |
| API void * | ncplane_set_userptr (struct ncplane *n, void *opaque) __attribute__((nonnull(1))) |
| |
| API void * | ncplane_userptr (struct ncplane *n) __attribute__((nonnull(1))) |
| |
| API void | ncplane_center_abs (const struct ncplane *n, int *RESTRICT y, int *RESTRICT x) __attribute__((nonnull(1))) |
| |
| API ALLOC uint32_t * | ncplane_as_rgba (const struct ncplane *n, ncblitter_e blit, int begy, int begx, unsigned leny, unsigned lenx, unsigned *pxdimy, unsigned *pxdimx) __attribute__((nonnull(1))) |
| |
| API int | ncplane_cursor_move_yx (struct ncplane *n, int y, int x) __attribute__((nonnull(1))) |
| |
| API int | ncplane_cursor_move_rel (struct ncplane *n, int y, int x) __attribute__((nonnull(1))) |
| |
| API void | ncplane_home (struct ncplane *n) __attribute__((nonnull(1))) |
| |
| API void | ncplane_cursor_yx (const struct ncplane *n, unsigned *RESTRICT y, unsigned *RESTRICT x) __attribute__((nonnull(1))) |
| |
| API uint64_t | ncplane_channels (const struct ncplane *n) __attribute__((nonnull(1))) |
| |
| API uint16_t | ncplane_styles (const struct ncplane *n) __attribute__((nonnull(1))) |
| |
| API int | ncplane_putc_yx (struct ncplane *n, int y, int x, const nccell *c) __attribute__((nonnull(1 |
| |
| API int | ncplane_putchar_stained (struct ncplane *n, char c) __attribute__((nonnull(1))) |
| |
| API int | ncplane_putegc_yx (struct ncplane *n, int y, int x, const char *gclust, size_t *sbytes) __attribute__((nonnull(1 |
| |
| API int | ncplane_putegc_stained (struct ncplane *n, const char *gclust, size_t *sbytes) __attribute__((nonnull(1 |
| |
| API int | ncplane_putwegc_stained (struct ncplane *n, const wchar_t *gclust, size_t *sbytes) __attribute__((nonnull(1 |
| |
| API int | ncplane_putnstr_aligned (struct ncplane *n, int y, ncalign_e align, size_t s, const char *str) __attribute__((nonnull(1 |
| |
| API int | ncplane_putwstr_stained (struct ncplane *n, const wchar_t *gclustarr) __attribute__((nonnull(1 |
| |
| API int | ncplane_vprintf_aligned (struct ncplane *n, int y, ncalign_e align, const char *format, va_list ap) __attribute__((nonnull(1 |
| |
| API int | __attribute__ ((format(printf, 4, 0))) |
| |
| API int | ncplane_vprintf_yx (struct ncplane *n, int y, int x, const char *format, va_list ap) __attribute__((nonnull(1 |
| |
| API int | ncplane_vprintf_stained (struct ncplane *n, const char *format, va_list ap) __attribute__((nonnull(1 |
| |
| API int | __attribute__ ((format(printf, 2, 0))) |
| |
| static int | __attribute__ ((format(printf, 2, 3))) |
| |
| static int | __attribute__ ((format(printf, 4, 5))) |
| |
| API int | ncplane_puttext (struct ncplane *n, int y, ncalign_e align, const char *text, size_t *bytes) __attribute__((nonnull(1 |
| |
| API int API int | ncplane_hline_interp (struct ncplane *n, const nccell *c, unsigned len, uint64_t c1, uint64_t c2) __attribute__((nonnull(1 |
| |
| API int API int | __attribute__ ((nonnull(1, 2))) static inline int ncplane_hline(struct ncplane *n |
| |
| API int | ncplane_vline_interp (struct ncplane *n, const nccell *c, unsigned len, uint64_t c1, uint64_t c2) __attribute__((nonnull(1 |
| |
| API int | ncplane_box (struct ncplane *n, const nccell *ul, const nccell *ur, const nccell *ll, const nccell *lr, const nccell *hline, const nccell *vline, unsigned ystop, unsigned xstop, unsigned ctlword) |
| |
| API int | ncplane_polyfill_yx (struct ncplane *n, int y, int x, const nccell *c) __attribute__((nonnull(1 |
| |
| API int API int | ncplane_gradient (struct ncplane *n, int y, int x, unsigned ylen, unsigned xlen, const char *egc, uint16_t styles, uint64_t ul, uint64_t ur, uint64_t ll, uint64_t lr) __attribute__((nonnull(1 |
| |
| API int API int API int | ncplane_gradient2x1 (struct ncplane *n, int y, int x, unsigned ylen, unsigned xlen, uint32_t ul, uint32_t ur, uint32_t ll, uint32_t lr) __attribute__((nonnull(1))) |
| |
| API int | ncplane_format (struct ncplane *n, int y, int x, unsigned ylen, unsigned xlen, uint16_t stylemask) __attribute__((nonnull(1))) |
| |
| API int | ncplane_stain (struct ncplane *n, int y, int x, unsigned ylen, unsigned xlen, uint64_t ul, uint64_t ur, uint64_t ll, uint64_t lr) __attribute__((nonnull(1))) |
| |
| API int | ncplane_mergedown_simple (struct ncplane *RESTRICT src, struct ncplane *RESTRICT dst) __attribute__((nonnull(1 |
| |
| API int API int | ncplane_mergedown (struct ncplane *RESTRICT src, struct ncplane *RESTRICT dst, int begsrcy, int begsrcx, unsigned leny, unsigned lenx, int dsty, int dstx) __attribute__((nonnull(1 |
| |
| API int API int API void | ncplane_erase (struct ncplane *n) __attribute__((nonnull(1))) |
| |
| API int | ncplane_erase_region (struct ncplane *n, int ystart, int xstart, int ylen, int xlen) __attribute__((nonnull(1))) |
| |
| API void | ncplane_set_channels (struct ncplane *n, uint64_t channels) __attribute__((nonnull(1))) |
| |
| API uint64_t | ncplane_set_bchannel (struct ncplane *n, uint32_t channel) __attribute__((nonnull(1))) |
| |
| API uint64_t | ncplane_set_fchannel (struct ncplane *n, uint32_t channel) __attribute__((nonnull(1))) |
| |
| API void | ncplane_set_styles (struct ncplane *n, unsigned stylebits) __attribute__((nonnull(1))) |
| |
| API void | ncplane_on_styles (struct ncplane *n, unsigned stylebits) __attribute__((nonnull(1))) |
| |
| API void | ncplane_off_styles (struct ncplane *n, unsigned stylebits) __attribute__((nonnull(1))) |
| |
| API int | ncplane_set_fg_rgb8 (struct ncplane *n, unsigned r, unsigned g, unsigned b) |
| |
| API int | ncplane_set_bg_rgb8 (struct ncplane *n, unsigned r, unsigned g, unsigned b) |
| |
| API void | ncplane_set_bg_rgb8_clipped (struct ncplane *n, int r, int g, int b) |
| |
| API void | ncplane_set_fg_rgb8_clipped (struct ncplane *n, int r, int g, int b) |
| |
| API int | ncplane_set_fg_rgb (struct ncplane *n, uint32_t channel) |
| |
| API int | ncplane_set_bg_rgb (struct ncplane *n, uint32_t channel) |
| |
| API void | ncplane_set_fg_default (struct ncplane *n) |
| |
| API void | ncplane_set_bg_default (struct ncplane *n) |
| |
| API int | ncplane_set_fg_palindex (struct ncplane *n, unsigned idx) |
| |
| API int | ncplane_set_bg_palindex (struct ncplane *n, unsigned idx) |
| |
| API int | ncplane_set_fg_alpha (struct ncplane *n, int alpha) |
| |
| API int | ncplane_set_bg_alpha (struct ncplane *n, int alpha) |
| |
| API int | ncplane_fadeout (struct ncplane *n, const struct timespec *ts, fadecb fader, void *curry) __attribute__((nonnull(1))) |
| |
| API int | ncplane_fadein (struct ncplane *n, const struct timespec *ts, fadecb fader, void *curry) __attribute__((nonnull(1))) |
| |
| API ALLOC struct ncfadectx * | ncfadectx_setup (struct ncplane *n) __attribute__((nonnull(1))) |
| |
| API int | ncfadectx_iterations (const struct ncfadectx *nctx) __attribute__((nonnull(1))) |
| |
| API int | ncplane_fadeout_iteration (struct ncplane *n, struct ncfadectx *nctx, int iter, fadecb fader, void *curry) __attribute__((nonnull(1 |
| |
| API int API int | ncplane_fadein_iteration (struct ncplane *n, struct ncfadectx *nctx, int iter, fadecb fader, void *curry) __attribute__((nonnull(1 |
| |
| API int API int API int | ncplane_pulse (struct ncplane *n, const struct timespec *ts, fadecb fader, void *curry) __attribute__((nonnull(1))) |
| |
| API void | ncfadectx_free (struct ncfadectx *nctx) |
| |
| API ALLOC struct ncvisual * | ncvisual_from_file (const char *file) __attribute__((nonnull(1))) |
| |
| API ALLOC struct ncvisual * | ncvisual_from_rgba (const void *rgba, int rows, int rowstride, int cols) __attribute__((nonnull(1))) |
| |
| API ALLOC struct ncvisual * | ncvisual_from_rgb_packed (const void *rgba, int rows, int rowstride, int cols, int alpha) __attribute__((nonnull(1))) |
| |
| API ALLOC struct ncvisual * | ncvisual_from_rgb_loose (const void *rgba, int rows, int rowstride, int cols, int alpha) __attribute__((nonnull(1))) |
| |
| API ALLOC struct ncvisual * | ncvisual_from_bgra (const void *bgra, int rows, int rowstride, int cols) __attribute__((nonnull(1))) |
| |
| API ALLOC struct ncvisual * | ncvisual_from_palidx (const void *data, int rows, int rowstride, int cols, int palsize, int pstride, const uint32_t *palette) __attribute__((nonnull(1 |
| |
| API ALLOC struct ncvisual API ALLOC struct ncvisual * | ncvisual_from_plane (const struct ncplane *n, ncblitter_e blit, int begy, int begx, unsigned leny, unsigned lenx) __attribute__((nonnull(1))) |
| |
| API ALLOC struct ncvisual * | ncvisual_from_sixel (const char *s, unsigned leny, unsigned lenx) __attribute__((nonnull(1))) |
| |
| API int | ncvisual_geom (const struct notcurses *nc, const struct ncvisual *n, const struct ncvisual_options *vopts, ncvgeom *geom) __attribute__((nonnull(4))) |
| |
| API void | ncvisual_destroy (struct ncvisual *ncv) |
| |
| API int | ncvisual_decode (struct ncvisual *nc) __attribute__((nonnull(1))) |
| |
| API int | ncvisual_decode_loop (struct ncvisual *nc) __attribute__((nonnull(1))) |
| |
| API int | ncvisual_rotate (struct ncvisual *n, double rads) __attribute__((nonnull(1))) |
| |
| API int | ncvisual_resize (struct ncvisual *n, int rows, int cols) __attribute__((nonnull(1))) |
| |
| API int | ncvisual_resize_noninterpolative (struct ncvisual *n, int rows, int cols) __attribute__((nonnull(1))) |
| |
| API int | ncvisual_polyfill_yx (struct ncvisual *n, unsigned y, unsigned x, uint32_t rgba) __attribute__((nonnull(1))) |
| |
| API int | ncvisual_at_yx (const struct ncvisual *n, unsigned y, unsigned x, uint32_t *pixel) __attribute__((nonnull(1 |
| |
| API int API int | ncvisual_set_yx (const struct ncvisual *n, unsigned y, unsigned x, uint32_t pixel) __attribute__((nonnull(1))) |
| |
| API struct ncplane * | ncvisual_blit (struct notcurses *nc, struct ncvisual *ncv, const struct ncvisual_options *vopts) __attribute__((nonnull(2))) |
| |
| | __attribute__ ((nonnull(1, 2, 3))) static inline struct ncplane *ncvisualplane_create(struct notcurses *nc |
| |
| | if (vopts &&vopts->n) |
| |
| | if (newn==NULL) |
| |
| | if (!vopts) |
| |
| | if (ncvisual_blit(nc, ncv, vopts)==NULL) |
| |
| API ALLOC struct ncplane * | ncvisual_subtitle_plane (struct ncplane *parent, const struct ncvisual *ncv) __attribute__((nonnull(1 |
| |
| API ALLOC struct ncplane API ncblitter_e | ncvisual_media_defblitter (const struct notcurses *nc, ncscale_e scale) __attribute__((nonnull(1))) |
| |
| API int | ncvisual_simple_streamer (struct ncvisual *ncv, struct ncvisual_options *vopts, const struct timespec *tspec, void *curry) __attribute__((nonnull(1))) |
| |
| API int | ncvisual_stream (struct notcurses *nc, struct ncvisual *ncv, float timescale, ncstreamcb streamer, const struct ncvisual_options *vopts, void *curry) __attribute__((nonnull(1 |
| |
| API int API int | ncblit_rgba (const void *data, int linesize, const struct ncvisual_options *vopts) __attribute__((nonnull(1))) |
| |
| API int | ncblit_bgrx (const void *data, int linesize, const struct ncvisual_options *vopts) __attribute__((nonnull(1))) |
| |
| API int | ncblit_rgb_packed (const void *data, int linesize, const struct ncvisual_options *vopts, int alpha) __attribute__((nonnull(1))) |
| |
| API int | ncblit_rgb_loose (const void *data, int linesize, const struct ncvisual_options *vopts, int alpha) __attribute__((nonnull(1))) |
| |
| API ALLOC struct ncreel * | ncreel_create (struct ncplane *n, const ncreel_options *popts) __attribute__((nonnull(1))) |
| |
| API struct ncplane * | ncreel_plane (struct ncreel *nr) __attribute__((nonnull(1))) |
| |
| API ALLOC struct nctablet * | ncreel_add (struct ncreel *nr, struct nctablet *after, struct nctablet *before, tabletcb cb, void *opaque) __attribute__((nonnull(1))) |
| |
| API int | ncreel_tabletcount (const struct ncreel *nr) __attribute__((nonnull(1))) |
| |
| API int | ncreel_del (struct ncreel *nr, struct nctablet *t) __attribute__((nonnull(1))) |
| |
| API int | ncreel_redraw (struct ncreel *nr) __attribute__((nonnull(1))) |
| |
| API bool | ncreel_offer_input (struct ncreel *nr, const ncinput *ni) __attribute__((nonnull(1 |
| |
| API bool API struct nctablet * | ncreel_focused (struct ncreel *nr) __attribute__((nonnull(1))) |
| |
| API struct nctablet * | ncreel_next (struct ncreel *nr) __attribute__((nonnull(1))) |
| |
| API struct nctablet * | ncreel_prev (struct ncreel *nr) __attribute__((nonnull(1))) |
| |
| API void | ncreel_destroy (struct ncreel *nr) |
| |
| API void * | nctablet_userptr (struct nctablet *t) |
| |
| API struct ncplane * | nctablet_plane (struct nctablet *t) |
| |
| API const char * | ncnmetric (uintmax_t val, size_t s, uintmax_t decimal, char *buf, int omitdec, uintmax_t mult, int uprefix) __attribute__((nonnull(4))) |
| |
| API int | notcurses_default_foreground (const struct notcurses *nc, uint32_t *fg) __attribute__((nonnull(1))) |
| |
| API int | notcurses_default_background (const struct notcurses *nc, uint32_t *bg) __attribute__((nonnull(1))) |
| |
| API int | notcurses_cursor_enable (struct notcurses *nc, int y, int x) __attribute__((nonnull(1))) |
| |
| API int | notcurses_cursor_disable (struct notcurses *nc) __attribute__((nonnull(1))) |
| |
| API int | notcurses_cursor_yx (const struct notcurses *nc, int *y, int *x) __attribute__((nonnull(1))) |
| |
| API void | ncplane_greyscale (struct ncplane *n) __attribute__((nonnull(1))) |
| |
| API ALLOC struct ncselector * | ncselector_create (struct ncplane *n, const ncselector_options *opts) __attribute__((nonnull(1))) |
| |
| API int | ncselector_additem (struct ncselector *n, const struct ncselector_item *item) |
| |
| API int | ncselector_delitem (struct ncselector *n, const char *item) |
| |
| API const char * | ncselector_selected (const struct ncselector *n) __attribute__((nonnull(1))) |
| |
| API struct ncplane * | ncselector_plane (struct ncselector *n) __attribute__((nonnull(1))) |
| |
| API const char * | ncselector_previtem (struct ncselector *n) __attribute__((nonnull(1))) |
| |
| API const char * | ncselector_nextitem (struct ncselector *n) __attribute__((nonnull(1))) |
| |
| API bool | ncselector_offer_input (struct ncselector *n, const ncinput *nc) __attribute__((nonnull(1 |
| |
| API bool API void | ncselector_destroy (struct ncselector *n, char **item) |
| |
| API ALLOC struct ncmultiselector * | ncmultiselector_create (struct ncplane *n, const ncmultiselector_options *opts) __attribute__((nonnull(1))) |
| |
| API int | ncmultiselector_selected (struct ncmultiselector *n, bool *selected, unsigned count) |
| |
| API struct ncplane * | ncmultiselector_plane (struct ncmultiselector *n) |
| |
| API bool | ncmultiselector_offer_input (struct ncmultiselector *n, const ncinput *nc) __attribute__((nonnull(1 |
| |
| API bool API void | ncmultiselector_destroy (struct ncmultiselector *n) |
| |
| API ALLOC struct nctree * | nctree_create (struct ncplane *n, const nctree_options *opts) __attribute__((nonnull(1 |
| |
| API ALLOC struct nctree API struct ncplane * | nctree_plane (struct nctree *n) __attribute__((nonnull(1))) |
| |
| API int | nctree_redraw (struct nctree *n) __attribute__((nonnull(1))) |
| |
| API bool | nctree_offer_input (struct nctree *n, const ncinput *ni) __attribute__((nonnull(1 |
| |
| API bool API void * | nctree_focused (struct nctree *n) __attribute__((nonnull(1))) |
| |
| API void * | nctree_next (struct nctree *n) __attribute__((nonnull(1))) |
| |
| API void * | nctree_prev (struct nctree *n) __attribute__((nonnull(1))) |
| |
| API void * | nctree_goto (struct nctree *n, const unsigned *spec, int *failspec) |
| |
| API int | nctree_add (struct nctree *n, const unsigned *spec, const struct nctree_item *add) __attribute__((nonnull(1 |
| |
| API int API int | nctree_del (struct nctree *n, const unsigned *spec) __attribute__((nonnull(1 |
| |
| API int API int API void | nctree_destroy (struct nctree *n) |
| |
| API ALLOC struct ncmenu * | ncmenu_create (struct ncplane *n, const ncmenu_options *opts) __attribute__((nonnull(1))) |
| |
| API int | ncmenu_unroll (struct ncmenu *n, int sectionidx) |
| |
| API int | ncmenu_rollup (struct ncmenu *n) __attribute__((nonnull(1))) |
| |
| API int | ncmenu_nextsection (struct ncmenu *n) __attribute__((nonnull(1))) |
| |
| API int | ncmenu_prevsection (struct ncmenu *n) __attribute__((nonnull(1))) |
| |
| API int | ncmenu_nextitem (struct ncmenu *n) __attribute__((nonnull(1))) |
| |
| API int | ncmenu_previtem (struct ncmenu *n) __attribute__((nonnull(1))) |
| |
| API int | ncmenu_item_set_status (struct ncmenu *n, const char *section, const char *item, bool enabled) |
| |
| API const char * | ncmenu_selected (const struct ncmenu *n, ncinput *ni) |
| |
| API const char * | ncmenu_mouse_selected (const struct ncmenu *n, const ncinput *click, ncinput *ni) |
| |
| API struct ncplane * | ncmenu_plane (struct ncmenu *n) |
| |
| API bool | ncmenu_offer_input (struct ncmenu *n, const ncinput *nc) __attribute__((nonnull(1 |
| |
| API bool API void | ncmenu_destroy (struct ncmenu *n) |
| |
| API ALLOC struct ncprogbar * | ncprogbar_create (struct ncplane *n, const ncprogbar_options *opts) __attribute__((nonnull(1))) |
| |
| API struct ncplane * | ncprogbar_plane (struct ncprogbar *n) __attribute__((nonnull(1))) |
| |
| API int | ncprogbar_set_progress (struct ncprogbar *n, double p) __attribute__((nonnull(1))) |
| |
| API double | ncprogbar_progress (const struct ncprogbar *n) __attribute__((nonnull(1))) |
| |
| API void | ncprogbar_destroy (struct ncprogbar *n) |
| |
| API ALLOC struct nctabbed * | nctabbed_create (struct ncplane *n, const nctabbed_options *opts) __attribute__((nonnull(1))) |
| |
| API void | nctabbed_destroy (struct nctabbed *nt) |
| |
| API void | nctabbed_redraw (struct nctabbed *nt) __attribute__((nonnull(1))) |
| |
| API void | nctabbed_ensure_selected_header_visible (struct nctabbed *nt) __attribute__((nonnull(1))) |
| |
| API struct nctab * | nctabbed_selected (struct nctabbed *nt) __attribute__((nonnull(1))) |
| |
| API struct nctab * | nctabbed_leftmost (struct nctabbed *nt) __attribute__((nonnull(1))) |
| |
| API int | nctabbed_tabcount (struct nctabbed *nt) __attribute__((nonnull(1))) |
| |
| API struct ncplane * | nctabbed_plane (struct nctabbed *nt) __attribute__((nonnull(1))) |
| |
| API struct ncplane * | nctabbed_content_plane (struct nctabbed *nt) __attribute__((nonnull(1))) |
| |
| API tabcb | nctab_cb (struct nctab *t) __attribute__((nonnull(1))) |
| |
| API const char * | nctab_name (struct nctab *t) __attribute__((nonnull(1))) |
| |
| API int | nctab_name_width (struct nctab *t) __attribute__((nonnull(1))) |
| |
| API void * | nctab_userptr (struct nctab *t) __attribute__((nonnull(1))) |
| |
| API struct nctab * | nctab_next (struct nctab *t) __attribute__((nonnull(1))) |
| |
| API struct nctab * | nctab_prev (struct nctab *t) __attribute__((nonnull(1))) |
| |
| API ALLOC struct nctab * | nctabbed_add (struct nctabbed *nt, struct nctab *after, struct nctab *before, tabcb tcb, const char *name, void *opaque) __attribute__((nonnull(1 |
| |
| API ALLOC struct nctab API int | nctabbed_del (struct nctabbed *nt, struct nctab *t) __attribute__((nonnull(1))) |
| |
| API int | nctab_move (struct nctabbed *nt, struct nctab *t, struct nctab *after, struct nctab *before) __attribute__((nonnull(1 |
| |
| API int API void | nctab_move_right (struct nctabbed *nt, struct nctab *t) __attribute__((nonnull(1 |
| |
| API int API void API void | nctab_move_left (struct nctabbed *nt, struct nctab *t) __attribute__((nonnull(1 |
| |
| API int API void API void API void | nctabbed_rotate (struct nctabbed *nt, int amt) __attribute__((nonnull(1))) |
| |
| API struct nctab * | nctabbed_next (struct nctabbed *nt) __attribute__((nonnull(1))) |
| |
| API struct nctab * | nctabbed_prev (struct nctabbed *nt) __attribute__((nonnull(1))) |
| |
| API struct nctab * | nctabbed_select (struct nctabbed *nt, struct nctab *t) __attribute__((nonnull(1 |
| |
| API struct nctab API void | nctabbed_channels (struct nctabbed *nt, uint64_t *RESTRICT hdrchan, uint64_t *RESTRICT selchan, uint64_t *RESTRICT sepchan) __attribute__((nonnull(1))) |
| |
| API const char * | nctabbed_separator (struct nctabbed *nt) __attribute__((nonnull(1))) |
| |
| API int | nctabbed_separator_width (struct nctabbed *nt) __attribute__((nonnull(1))) |
| |
| API void | nctabbed_set_hdrchan (struct nctabbed *nt, uint64_t chan) __attribute__((nonnull(1))) |
| |
| API void | nctabbed_set_selchan (struct nctabbed *nt, uint64_t chan) __attribute__((nonnull(1))) |
| |
| API void | nctabbed_set_sepchan (struct nctabbed *nt, uint64_t chan) __attribute__((nonnull(1))) |
| |
| API tabcb | nctab_set_cb (struct nctab *t, tabcb newcb) __attribute__((nonnull(1))) |
| |
| API int | nctab_set_name (struct nctab *t, const char *newname) __attribute__((nonnull(1 |
| |
| API int API void * | nctab_set_userptr (struct nctab *t, void *newopaque) __attribute__((nonnull(1))) |
| |
| API int | nctabbed_set_separator (struct nctabbed *nt, const char *separator) __attribute__((nonnull(1 |
| |
| API ALLOC struct ncuplot * | ncuplot_create (struct ncplane *n, const ncplot_options *opts, uint64_t miny, uint64_t maxy) __attribute__((nonnull(1))) |
| |
| API ALLOC struct ncdplot * | ncdplot_create (struct ncplane *n, const ncplot_options *opts, double miny, double maxy) __attribute__((nonnull(1))) |
| |
| API struct ncplane * | ncuplot_plane (struct ncuplot *n) __attribute__((nonnull(1))) |
| |
| API struct ncplane * | ncdplot_plane (struct ncdplot *n) __attribute__((nonnull(1))) |
| |
| API int | ncuplot_add_sample (struct ncuplot *n, uint64_t x, uint64_t y) __attribute__((nonnull(1))) |
| |
| API int | ncdplot_add_sample (struct ncdplot *n, uint64_t x, double y) __attribute__((nonnull(1))) |
| |
| API int | ncuplot_set_sample (struct ncuplot *n, uint64_t x, uint64_t y) __attribute__((nonnull(1))) |
| |
| API int | ncdplot_set_sample (struct ncdplot *n, uint64_t x, double y) __attribute__((nonnull(1))) |
| |
| API int | ncuplot_sample (const struct ncuplot *n, uint64_t x, uint64_t *y) __attribute__((nonnull(1))) |
| |
| API int | ncdplot_sample (const struct ncdplot *n, uint64_t x, double *y) __attribute__((nonnull(1))) |
| |
| API void | ncuplot_destroy (struct ncuplot *n) |
| |
| API void | ncdplot_destroy (struct ncdplot *n) |
| |
| API ALLOC struct ncfdplane * | ncfdplane_create (struct ncplane *n, const ncfdplane_options *opts, int fd, ncfdplane_callback cbfxn, ncfdplane_done_cb donecbfxn) __attribute__((nonnull(1))) |
| |
| API struct ncplane * | ncfdplane_plane (struct ncfdplane *n) __attribute__((nonnull(1))) |
| |
| API int | ncfdplane_destroy (struct ncfdplane *n) |
| |
| API ALLOC struct ncsubproc * | ncsubproc_createv (struct ncplane *n, const ncsubproc_options *opts, const char *bin, const char *const arg[], ncfdplane_callback cbfxn, ncfdplane_done_cb donecbfxn) __attribute__((nonnull(1))) |
| |
| API ALLOC struct ncsubproc * | ncsubproc_createvp (struct ncplane *n, const ncsubproc_options *opts, const char *bin, const char *const arg[], ncfdplane_callback cbfxn, ncfdplane_done_cb donecbfxn) __attribute__((nonnull(1))) |
| |
| API ALLOC struct ncsubproc * | ncsubproc_createvpe (struct ncplane *n, const ncsubproc_options *opts, const char *bin, const char *const arg[], const char *const env[], ncfdplane_callback cbfxn, ncfdplane_done_cb donecbfxn) __attribute__((nonnull(1))) |
| |
| API struct ncplane * | ncsubproc_plane (struct ncsubproc *n) __attribute__((nonnull(1))) |
| |
| API int | ncsubproc_destroy (struct ncsubproc *n) |
| |
| API int | ncplane_qrcode (struct ncplane *n, unsigned *ymax, unsigned *xmax, const void *data, size_t len) __attribute__((nonnull(1 |
| |
| API ALLOC struct ncreader * | ncreader_create (struct ncplane *n, const ncreader_options *opts) __attribute__((nonnull(1))) |
| |
| API int | ncreader_clear (struct ncreader *n) __attribute__((nonnull(1))) |
| |
| API struct ncplane * | ncreader_plane (struct ncreader *n) __attribute__((nonnull(1))) |
| |
| API bool | ncreader_offer_input (struct ncreader *n, const ncinput *ni) __attribute__((nonnull(1 |
| |
| API bool API int | ncreader_move_left (struct ncreader *n) __attribute__((nonnull(1))) |
| |
| API int | ncreader_move_right (struct ncreader *n) __attribute__((nonnull(1))) |
| |
| API int | ncreader_move_up (struct ncreader *n) __attribute__((nonnull(1))) |
| |
| API int | ncreader_move_down (struct ncreader *n) __attribute__((nonnull(1))) |
| |
| API int | ncreader_write_egc (struct ncreader *n, const char *egc) __attribute__((nonnull(1 |
| |
| API int API char * | ncreader_contents (const struct ncreader *n) __attribute__((nonnull(1))) |
| |
| API void | ncreader_destroy (struct ncreader *n, char **contents) |
| |
| API ALLOC char * | notcurses_accountname (void) |
| |
| API ALLOC char * | notcurses_hostname (void) |
| |
| API ALLOC char * | notcurses_osversion (void) |
| |
| API void | notcurses_debug (const struct notcurses *nc, FILE *debugfp) __attribute__((nonnull(1 |
| |