![]() |
Notcurses 3.0.13
a blingful library for TUIs and character graphics
|
#include <time.h>
#include <ctype.h>
#include <wchar.h>
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <signal.h>
#include <limits.h>
#include <stdbool.h>
#include <notcurses/ncport.h>
#include <notcurses/nckeys.h>
#include <notcurses/ncseqs.h>
Go to the source code of this file.
Data Structures | |
struct | nccell |
struct | notcurses_options |
struct | ncinput |
struct | ncplane_options |
struct | ncpalette |
struct | nccapabilities |
struct | ncstats |
struct | ncvisual_options |
struct | ncvgeom |
struct | ncreel_options |
struct | ncselector_item |
struct | ncselector_options |
struct | ncmselector_item |
struct | ncmultiselector_options |
struct | nctree_item |
struct | nctree_options |
struct | ncmenu_item |
struct | ncmenu_section |
struct | ncmenu_options |
struct | ncprogbar_options |
struct | nctabbed_options |
struct | ncplot_options |
struct | ncfdplane_options |
struct | ncsubproc_options |
struct | ncreader_options |
Typedefs | |
typedef API int struct nccell | nccell |
typedef struct notcurses_options | notcurses_options |
typedef struct ncinput | ncinput |
typedef struct ncplane_options | ncplane_options |
typedef struct ncpalette | ncpalette |
typedef struct nccapabilities | nccapabilities |
typedef struct ncstats | ncstats |
typedef int(* | fadecb) (struct notcurses *nc, struct ncplane *n, const struct timespec *, void *curry) |
typedef struct ncvgeom | ncvgeom |
typedef int(* | ncstreamcb) (struct ncvisual *, struct ncvisual_options *, const struct timespec *, void *) |
typedef struct ncreel_options | ncreel_options |
typedef int(* | tabletcb) (struct nctablet *t, bool drawfromtop) |
typedef struct ncselector_options | ncselector_options |
typedef struct ncmultiselector_options | ncmultiselector_options |
typedef struct nctree_options | nctree_options |
typedef struct ncmenu_options | ncmenu_options |
typedef struct ncprogbar_options | ncprogbar_options |
typedef struct nctabbed_options | nctabbed_options |
typedef void(* | tabcb) (struct nctab *t, struct ncplane *ncp, void *curry) |
typedef struct ncplot_options | ncplot_options |
typedef int(* | ncfdplane_callback) (struct ncfdplane *n, const void *buf, size_t s, void *curry) |
typedef int(* | ncfdplane_done_cb) (struct ncfdplane *n, int fderrno, void *curry) |
typedef struct ncfdplane_options | ncfdplane_options |
typedef struct ncsubproc_options | ncsubproc_options |
typedef struct ncreader_options | ncreader_options |
Enumerations | |
enum | ncblitter_e { NCBLIT_DEFAULT , NCBLIT_1x1 , NCBLIT_2x1 , NCBLIT_2x2 , NCBLIT_3x2 , NCBLIT_4x2 , NCBLIT_BRAILLE , NCBLIT_PIXEL , NCBLIT_4x1 , NCBLIT_8x1 } |
enum | ncalign_e { NCALIGN_UNALIGNED , NCALIGN_LEFT , NCALIGN_CENTER , NCALIGN_RIGHT } |
enum | ncscale_e { NCSCALE_NONE , NCSCALE_SCALE , NCSCALE_STRETCH , NCSCALE_NONE_HIRES , NCSCALE_SCALE_HIRES } |
enum | ncloglevel_e { NCLOGLEVEL_SILENT = -1 , NCLOGLEVEL_PANIC = 0 , NCLOGLEVEL_FATAL = 1 , NCLOGLEVEL_ERROR = 2 , NCLOGLEVEL_WARNING = 3 , NCLOGLEVEL_INFO = 4 , NCLOGLEVEL_VERBOSE = 5 , NCLOGLEVEL_DEBUG = 6 , NCLOGLEVEL_TRACE = 7 } |
enum | ncintype_e { NCTYPE_UNKNOWN , NCTYPE_PRESS , NCTYPE_REPEAT , NCTYPE_RELEASE } |
enum | ncpixelimpl_e { NCPIXEL_NONE = 0 , NCPIXEL_SIXEL , NCPIXEL_LINUXFB , NCPIXEL_ITERM2 , NCPIXEL_KITTY_STATIC , NCPIXEL_KITTY_ANIMATED , NCPIXEL_KITTY_SELFREF } |
Functions | |
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 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 |
Variables | |
API const nccell * | c |
API int(*)(struct ncplane *) | ncplane_resizecb (const struct ncplane *n) |
int | y |
int int | x |
API int API int const nccell unsigned | len |
const struct ncplane_options * | opts |
const struct ncplane_options struct ncvisual * | ncv |
const struct ncplane_options struct ncvisual struct ncvisual_options * | vopts |
else | |
struct ncvisual_options | v |
vopts | n = newn |
return | newn |
#define ALLOC __attribute__((malloc)) __attribute__((warn_unused_result)) |
Definition at line 36 of file notcurses.h.
#define API __attribute__((visibility("default"))) |
Definition at line 32 of file notcurses.h.
#define NC_BG_ALPHA_MASK 0x30000000ull |
Definition at line 125 of file notcurses.h.
#define NC_BG_PALETTE 0x0000000008000000ull |
Definition at line 123 of file notcurses.h.
#define NC_BG_RGB_MASK 0x0000000000ffffffull |
Definition at line 120 of file notcurses.h.
#define NC_BGDEFAULT_MASK 0x0000000040000000ull |
Definition at line 118 of file notcurses.h.
#define NC_NOBACKGROUND_MASK 0x8700000000000000ull |
Definition at line 116 of file notcurses.h.
#define NCALIGN_BOTTOM NCALIGN_RIGHT |
Definition at line 88 of file notcurses.h.
#define NCALIGN_TOP NCALIGN_LEFT |
Definition at line 87 of file notcurses.h.
#define NCALPHA_BLEND 0x10000000ull |
Definition at line 107 of file notcurses.h.
#define NCALPHA_HIGHCONTRAST 0x30000000ull |
Definition at line 105 of file notcurses.h.
#define NCALPHA_OPAQUE 0x00000000ull |
Definition at line 108 of file notcurses.h.
#define NCALPHA_TRANSPARENT 0x20000000ull |
Definition at line 106 of file notcurses.h.
#define NCBOXCORNER_MASK 0x0300 |
Definition at line 2609 of file notcurses.h.
#define NCBOXCORNER_SHIFT 8u |
Definition at line 2610 of file notcurses.h.
#define NCBOXGRAD_BOTTOM 0x0040 |
Definition at line 2607 of file notcurses.h.
#define NCBOXGRAD_LEFT 0x0080 |
Definition at line 2608 of file notcurses.h.
#define NCBOXGRAD_RIGHT 0x0020 |
Definition at line 2606 of file notcurses.h.
#define NCBOXGRAD_TOP 0x0010 |
Definition at line 2605 of file notcurses.h.
#define NCBOXMASK_BOTTOM 0x0004 |
Definition at line 2603 of file notcurses.h.
#define NCBOXMASK_LEFT 0x0008 |
Definition at line 2604 of file notcurses.h.
#define NCBOXMASK_RIGHT 0x0002 |
Definition at line 2602 of file notcurses.h.
#define NCBOXMASK_TOP 0x0001 |
Definition at line 2601 of file notcurses.h.
#define NCBPREFIXCOLUMNS 9 |
Definition at line 3827 of file notcurses.h.
#define NCBPREFIXFMT | ( | x | ) | NCMETRICFWIDTH((x), NCBPREFIXCOLUMNS), (x) |
Definition at line 3837 of file notcurses.h.
#define NCBPREFIXSTRLEN (NCBPREFIXCOLUMNS + 1) |
Definition at line 3830 of file notcurses.h.
#define NCCELL_CHAR_INITIALIZER | ( | c | ) |
Definition at line 734 of file notcurses.h.
#define NCCELL_INITIALIZER | ( | c, | |
s, | |||
chan | |||
) |
Definition at line 731 of file notcurses.h.
#define NCCELL_TRIVIAL_INITIALIZER |
Definition at line 737 of file notcurses.h.
#define NCCHANNEL_INITIALIZER | ( | r, | |
g, | |||
b | |||
) | (((uint32_t)(r) << 16u) + ((uint32_t)(g) << 8u) + (b) + NC_BGDEFAULT_MASK) |
Definition at line 128 of file notcurses.h.
#define NCCHANNELS_INITIALIZER | ( | fr, | |
fg, | |||
fb, | |||
br, | |||
bg, | |||
bb | |||
) |
Definition at line 132 of file notcurses.h.
#define NCINPUT_MAX_EFF_TEXT_CODEPOINTS 4 |
Definition at line 1203 of file notcurses.h.
#define NCIPREFIXCOLUMNS 8 |
Definition at line 3826 of file notcurses.h.
#define NCIPREFIXFMT | ( | x | ) | NCMETRICFWIDTH((x), NCIPREFIXCOLUMNS), (x) |
Definition at line 3836 of file notcurses.h.
#define NCIPREFIXSTRLEN (NCIPREFIXCOLUMNS + 1) |
Definition at line 3829 of file notcurses.h.
#define NCMENU_OPTION_BOTTOM 0x0001ull |
Definition at line 4127 of file notcurses.h.
#define NCMENU_OPTION_HIDING 0x0002ull |
Definition at line 4128 of file notcurses.h.
Definition at line 3833 of file notcurses.h.
#define NCMICE_ALL_EVENTS 0x7 |
Definition at line 1344 of file notcurses.h.
#define NCMICE_BUTTON_EVENT 0x2 |
Definition at line 1342 of file notcurses.h.
#define NCMICE_DRAG_EVENT 0x4 |
Definition at line 1343 of file notcurses.h.
#define NCMICE_MOVE_EVENT 0x1 |
Definition at line 1341 of file notcurses.h.
#define NCMICE_NO_EVENTS 0 |
Definition at line 1340 of file notcurses.h.
#define NCOPTION_CLI_MODE |
Definition at line 1037 of file notcurses.h.
#define NCOPTION_DRAIN_INPUT 0x0100ull |
Definition at line 1030 of file notcurses.h.
#define NCOPTION_INHIBIT_SETLOCALE 0x0001ull |
Definition at line 990 of file notcurses.h.
#define NCOPTION_NO_ALTERNATE_SCREEN 0x0040ull |
Definition at line 1019 of file notcurses.h.
#define NCOPTION_NO_CLEAR_BITMAPS 0x0002ull |
Definition at line 996 of file notcurses.h.
#define NCOPTION_NO_FONT_CHANGES 0x0080ull |
Definition at line 1025 of file notcurses.h.
#define NCOPTION_NO_QUIT_SIGHANDLERS 0x0008ull |
Definition at line 1005 of file notcurses.h.
#define NCOPTION_NO_WINCH_SIGHANDLER 0x0004ull |
Definition at line 1000 of file notcurses.h.
#define NCOPTION_PRESERVE_CURSOR 0x0010ull |
Definition at line 1011 of file notcurses.h.
#define NCOPTION_SCROLLING 0x0200ull |
Definition at line 1034 of file notcurses.h.
#define NCOPTION_SUPPRESS_BANNERS 0x0020ull |
Definition at line 1015 of file notcurses.h.
#define NCPALETTESIZE 256 |
Definition at line 111 of file notcurses.h.
#define NCPLANE_OPTION_AUTOGROW 0x0010ull |
Definition at line 1458 of file notcurses.h.
#define NCPLANE_OPTION_FIXED 0x0008ull |
Definition at line 1454 of file notcurses.h.
#define NCPLANE_OPTION_HORALIGNED 0x0001ull |
Definition at line 1441 of file notcurses.h.
#define NCPLANE_OPTION_MARGINALIZED 0x0004ull |
Definition at line 1450 of file notcurses.h.
#define NCPLANE_OPTION_VERALIGNED 0x0002ull |
Definition at line 1443 of file notcurses.h.
#define NCPLANE_OPTION_VSCROLL 0x0020ull |
Definition at line 1462 of file notcurses.h.
#define NCPLOT_OPTION_DETECTMAXONLY 0x0010u |
Definition at line 4484 of file notcurses.h.
#define NCPLOT_OPTION_EXPONENTIALD 0x0002u |
Definition at line 4481 of file notcurses.h.
#define NCPLOT_OPTION_LABELTICKSD 0x0001u |
Definition at line 4480 of file notcurses.h.
#define NCPLOT_OPTION_NODEGRADE 0x0008u |
Definition at line 4483 of file notcurses.h.
#define NCPLOT_OPTION_PRINTSAMPLE 0x0020u |
Definition at line 4485 of file notcurses.h.
#define NCPLOT_OPTION_VERTICALI 0x0004u |
Definition at line 4482 of file notcurses.h.
#define NCPREFIXCOLUMNS 7 |
Definition at line 3825 of file notcurses.h.
#define NCPREFIXFMT | ( | x | ) | NCMETRICFWIDTH((x), NCPREFIXCOLUMNS), (x) |
Definition at line 3835 of file notcurses.h.
#define NCPREFIXSTRLEN (NCPREFIXCOLUMNS + 1) |
Definition at line 3828 of file notcurses.h.
#define NCPROGBAR_OPTION_RETROGRADE 0x0001u |
Definition at line 4203 of file notcurses.h.
#define NCREADER_OPTION_CURSOR 0x0008ull |
Definition at line 4618 of file notcurses.h.
#define NCREADER_OPTION_HORSCROLL 0x0001ull |
Definition at line 4611 of file notcurses.h.
#define NCREADER_OPTION_NOCMDKEYS 0x0004ull |
Definition at line 4615 of file notcurses.h.
#define NCREADER_OPTION_VERSCROLL 0x0002ull |
Definition at line 4613 of file notcurses.h.
#define NCREEL_OPTION_CIRCULAR 0x0002ull |
Definition at line 3698 of file notcurses.h.
#define NCREEL_OPTION_INFINITESCROLL 0x0001ull |
Definition at line 3694 of file notcurses.h.
#define NCSTYLE_BOLD 0x0002u |
Definition at line 773 of file notcurses.h.
#define NCSTYLE_ITALIC 0x0010u |
Definition at line 770 of file notcurses.h.
#define NCSTYLE_MASK 0xffffu |
Definition at line 769 of file notcurses.h.
#define NCSTYLE_NONE 0 |
Definition at line 775 of file notcurses.h.
#define NCSTYLE_STRUCK 0x0001u |
Definition at line 774 of file notcurses.h.
#define NCSTYLE_UNDERCURL 0x0004u |
Definition at line 772 of file notcurses.h.
#define NCSTYLE_UNDERLINE 0x0008u |
Definition at line 771 of file notcurses.h.
#define NCTABBED_OPTION_BOTTOM 0x0001ull |
Definition at line 4237 of file notcurses.h.
#define NCVISUAL_OPTION_ADDALPHA 0x0010ull |
Definition at line 3341 of file notcurses.h.
#define NCVISUAL_OPTION_BLEND 0x0002ull |
Definition at line 3338 of file notcurses.h.
#define NCVISUAL_OPTION_CHILDPLANE 0x0020ull |
Definition at line 3342 of file notcurses.h.
#define NCVISUAL_OPTION_HORALIGNED 0x0004ull |
Definition at line 3339 of file notcurses.h.
#define NCVISUAL_OPTION_NODEGRADE 0x0001ull |
Definition at line 3337 of file notcurses.h.
#define NCVISUAL_OPTION_NOINTERPOLATE 0x0040ull |
Definition at line 3343 of file notcurses.h.
#define NCVISUAL_OPTION_VERALIGNED 0x0008ull |
Definition at line 3340 of file notcurses.h.
#define RESTRICT restrict |
Definition at line 24 of file notcurses.h.
#define WCHAR_MAX_UTF8BYTES 4 |
Definition at line 594 of file notcurses.h.
typedef int(* fadecb) (struct notcurses *nc, struct ncplane *n, const struct timespec *, void *curry) |
Definition at line 3029 of file notcurses.h.
typedef struct nccapabilities nccapabilities |
Definition at line 4546 of file notcurses.h.
Definition at line 4547 of file notcurses.h.
typedef struct ncfdplane_options ncfdplane_options |
typedef struct ncmenu_options ncmenu_options |
typedef struct ncmultiselector_options ncmultiselector_options |
typedef struct ncplane_options ncplane_options |
typedef struct ncplot_options ncplot_options |
typedef struct ncprogbar_options ncprogbar_options |
typedef struct ncreader_options ncreader_options |
typedef struct ncreel_options ncreel_options |
typedef struct ncselector_options ncselector_options |
typedef int(* ncstreamcb) (struct ncvisual *, struct ncvisual_options *, const struct timespec *, void *) |
Definition at line 3533 of file notcurses.h.
typedef struct ncsubproc_options ncsubproc_options |
typedef struct nctabbed_options nctabbed_options |
typedef struct nctree_options nctree_options |
typedef struct notcurses_options notcurses_options |
Definition at line 4250 of file notcurses.h.
typedef int(* tabletcb) (struct nctablet *t, bool drawfromtop) |
Definition at line 3728 of file notcurses.h.
enum ncalign_e |
Enumerator | |
---|---|
NCALIGN_UNALIGNED | |
NCALIGN_LEFT | |
NCALIGN_CENTER | |
NCALIGN_RIGHT |
Definition at line 80 of file notcurses.h.
enum ncblitter_e |
Enumerator | |
---|---|
NCBLIT_DEFAULT | |
NCBLIT_1x1 | |
NCBLIT_2x1 | |
NCBLIT_2x2 | |
NCBLIT_3x2 | |
NCBLIT_4x2 | |
NCBLIT_BRAILLE | |
NCBLIT_PIXEL | |
NCBLIT_4x1 | |
NCBLIT_8x1 |
Definition at line 65 of file notcurses.h.
enum ncintype_e |
Enumerator | |
---|---|
NCTYPE_UNKNOWN | |
NCTYPE_PRESS | |
NCTYPE_REPEAT | |
NCTYPE_RELEASE |
Definition at line 1194 of file notcurses.h.
enum ncloglevel_e |
Enumerator | |
---|---|
NCLOGLEVEL_SILENT | |
NCLOGLEVEL_PANIC | |
NCLOGLEVEL_FATAL | |
NCLOGLEVEL_ERROR | |
NCLOGLEVEL_WARNING | |
NCLOGLEVEL_INFO | |
NCLOGLEVEL_VERBOSE | |
NCLOGLEVEL_DEBUG | |
NCLOGLEVEL_TRACE |
Definition at line 968 of file notcurses.h.
enum ncpixelimpl_e |
Enumerator | |
---|---|
NCPIXEL_NONE | |
NCPIXEL_SIXEL | |
NCPIXEL_LINUXFB | |
NCPIXEL_ITERM2 | |
NCPIXEL_KITTY_STATIC | |
NCPIXEL_KITTY_ANIMATED | |
NCPIXEL_KITTY_SELFREF |
Definition at line 1672 of file notcurses.h.
enum ncscale_e |
Enumerator | |
---|---|
NCSCALE_NONE | |
NCSCALE_SCALE | |
NCSCALE_STRETCH | |
NCSCALE_NONE_HIRES | |
NCSCALE_SCALE_HIRES |
Definition at line 96 of file notcurses.h.
API int __attribute__ | ( | (format(printf, 2, 0)) | ) |
static int __attribute__ | ( | (format(printf, 2, 3)) | ) |
API int __attribute__ | ( | (format(printf, 4, 0)) | ) |
static int __attribute__ | ( | (format(printf, 4, 5)) | ) |
__attribute__ | ( | (nonnull(1)) | ) |
Definition at line 1353 of file notcurses.h.
__attribute__ | ( | (nonnull(1, 2, 3)) | ) |
API __attribute__ | ( | (returns_nonnull) | ) | const |
if | ( | ! | vopts | ) |
Definition at line 3498 of file notcurses.h.
if | ( | ncvisual_blit(nc, ncv, vopts) | = = NULL | ) |
Definition at line 3503 of file notcurses.h.
Definition at line 3494 of file notcurses.h.
Definition at line 3486 of file notcurses.h.
API int ncblit_bgrx | ( | const void * | data, |
int | linesize, | ||
const struct ncvisual_options * | vopts | ||
) |
Definition at line 1408 of file blit.c.
API int ncblit_rgb_loose | ( | const void * | data, |
int | linesize, | ||
const struct ncvisual_options * | vopts, | ||
int | alpha | ||
) |
Definition at line 1426 of file blit.c.
API int ncblit_rgb_packed | ( | const void * | data, |
int | linesize, | ||
const struct ncvisual_options * | vopts, | ||
int | alpha | ||
) |
Definition at line 1440 of file blit.c.
API int API int ncblit_rgba | ( | const void * | data, |
int | linesize, | ||
const struct ncvisual_options * | vopts | ||
) |
Definition at line 1454 of file blit.c.
Definition at line 1833 of file notcurses.c.
API int ncdplot_add_sample | ( | struct ncdplot * | n, |
uint64_t | x, | ||
double | y | ||
) |
Definition at line 709 of file plot.c.
API ALLOC struct ncdplot * ncdplot_create | ( | struct ncplane * | n, |
const ncplot_options * | opts, | ||
double | miny, | ||
double | maxy | ||
) |
API void ncdplot_destroy | ( | struct ncdplot * | n | ) |
API int ncdplot_sample | ( | const struct ncdplot * | n, |
uint64_t | x, | ||
double * | y | ||
) |
API int ncdplot_set_sample | ( | struct ncdplot * | n, |
uint64_t | x, | ||
double | y | ||
) |
API ALLOC struct ncfdplane * ncfdplane_create | ( | struct ncplane * | n, |
const ncfdplane_options * | opts, | ||
int | fd, | ||
ncfdplane_callback | cbfxn, | ||
ncfdplane_done_cb | donecbfxn | ||
) |
Definition at line 120 of file fd.c.
API ALLOC struct ncmenu * ncmenu_create | ( | struct ncplane * | n, |
const ncmenu_options * | opts | ||
) |
Definition at line 377 of file menu.c.
API int ncmenu_item_set_status | ( | struct ncmenu * | n, |
const char * | section, | ||
const char * | item, | ||
bool | enabled | ||
) |
Definition at line 784 of file menu.c.
API const char * ncmenu_mouse_selected | ( | const struct ncmenu * | n, |
const ncinput * | click, | ||
ncinput * | ni | ||
) |
Definition at line 593 of file menu.c.
Definition at line 578 of file menu.c.
Definition at line 452 of file menu.c.
API ALLOC struct ncmultiselector * ncmultiselector_create | ( | struct ncplane * | n, |
const ncmultiselector_options * | opts | ||
) |
Definition at line 885 of file selector.c.
API bool API void ncmultiselector_destroy | ( | struct ncmultiselector * | n | ) |
Definition at line 985 of file selector.c.
API bool ncmultiselector_offer_input | ( | struct ncmultiselector * | n, |
const ncinput * | nc | ||
) |
API struct ncplane * ncmultiselector_plane | ( | struct ncmultiselector * | n | ) |
Definition at line 586 of file selector.c.
API int ncmultiselector_selected | ( | struct ncmultiselector * | n, |
bool * | selected, | ||
unsigned | count | ||
) |
Definition at line 1002 of file selector.c.
API const char * ncnmetric | ( | uintmax_t | val, |
size_t | s, | ||
uintmax_t | decimal, | ||
char * | buf, | ||
int | omitdec, | ||
uintmax_t | mult, | ||
int | uprefix | ||
) |
Definition at line 28 of file metric.c.
Definition at line 2586 of file notcurses.c.
Definition at line 2563 of file notcurses.c.
API ALLOC struct ncplane API ALLOC struct ncplane * ncpile_create | ( | struct notcurses * | nc, |
const ncplane_options * | nopts | ||
) |
Definition at line 1517 of file render.c.
Definition at line 1569 of file render.c.
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 | ||
) |
API char * ncplane_at_cursor | ( | const struct ncplane * | n, |
uint16_t * | stylemask, | ||
uint64_t * | channels | ||
) |
API int API char * ncplane_at_yx | ( | const struct ncplane * | n, |
int | y, | ||
int | x, | ||
uint16_t * | stylemask, | ||
uint64_t * | channels | ||
) |
Definition at line 1569 of file notcurses.c.
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 | ||
) |
Definition at line 2271 of file notcurses.c.
API int API char * ncplane_contents | ( | struct ncplane * | n, |
int | begy, | ||
int | begx, | ||
unsigned | leny, | ||
unsigned | lenx | ||
) |
Definition at line 3228 of file notcurses.c.
API ALLOC struct ncplane * ncplane_create | ( | struct ncplane * | n, |
const ncplane_options * | nopts | ||
) |
Definition at line 750 of file notcurses.c.
Definition at line 720 of file notcurses.c.
Definition at line 1018 of file notcurses.c.
API struct ncplane API struct ncplane API ALLOC struct ncplane * ncplane_dup | ( | const struct ncplane * | n, |
void * | opaque | ||
) |
Definition at line 2458 of file notcurses.c.
Definition at line 2479 of file notcurses.c.
API int ncplane_fadein | ( | struct ncplane * | n, |
const struct timespec * | ts, | ||
fadecb | fader, | ||
void * | curry | ||
) |
Definition at line 284 of file fade.c.
API int API int ncplane_fadein_iteration | ( | struct ncplane * | n, |
struct ncfadectx * | nctx, | ||
int | iter, | ||
fadecb | fader, | ||
void * | curry | ||
) |
API int ncplane_fadeout | ( | struct ncplane * | n, |
const struct timespec * | ts, | ||
fadecb | fader, | ||
void * | curry | ||
) |
Definition at line 260 of file fade.c.
API int ncplane_fadeout_iteration | ( | struct ncplane * | n, |
struct ncfadectx * | nctx, | ||
int | iter, | ||
fadecb | fader, | ||
void * | curry | ||
) |
API int ncplane_format | ( | struct ncplane * | n, |
int | y, | ||
int | x, | ||
unsigned | ylen, | ||
unsigned | xlen, | ||
uint16_t | stylemask | ||
) |
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 | ||
) |
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 | ||
) |
Definition at line 179 of file fill.c.
API int API int ncplane_hline_interp | ( | struct ncplane * | n, |
const nccell * | c, | ||
unsigned | len, | ||
uint64_t | c1, | ||
uint64_t | c2 | ||
) |
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 | ||
) |
Definition at line 2411 of file notcurses.c.
Definition at line 2081 of file notcurses.c.
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 | ||
) |
API int API int API int ncplane_pulse | ( | struct ncplane * | n, |
const struct timespec * | ts, | ||
fadecb | fader, | ||
void * | curry | ||
) |
Definition at line 301 of file fade.c.
API int ncplane_putegc_yx | ( | struct ncplane * | n, |
int | y, | ||
int | x, | ||
const char * | gclust, | ||
size_t * | sbytes | ||
) |
API int ncplane_putnstr_aligned | ( | struct ncplane * | n, |
int | y, | ||
ncalign_e | align, | ||
size_t | s, | ||
const char * | str | ||
) |
API int ncplane_puttext | ( | struct ncplane * | n, |
int | y, | ||
ncalign_e | align, | ||
const char * | text, | ||
size_t * | bytes | ||
) |
API int ncplane_qrcode | ( | struct ncplane * | n, |
unsigned * | ymax, | ||
unsigned * | xmax, | ||
const void * | data, | ||
size_t | len | ||
) |
API struct ncplane API struct ncplane * ncplane_reparent_family | ( | struct ncplane * | n, |
struct ncplane * | newparent | ||
) |
API int ncplane_resize | ( | struct ncplane * | n, |
int | keepy, | ||
int | keepx, | ||
unsigned | keepleny, | ||
unsigned | keeplenx, | ||
int | yoff, | ||
int | xoff, | ||
unsigned | ylen, | ||
unsigned | xlen | ||
) |
Definition at line 1006 of file notcurses.c.
Definition at line 2723 of file notcurses.c.
API ALLOC struct ncplane API ALLOC struct ncplane API int ncplane_resize_maximize | ( | struct ncplane * | n | ) |
Definition at line 2753 of file notcurses.c.
Definition at line 2681 of file notcurses.c.
Definition at line 2764 of file notcurses.c.
Definition at line 515 of file fill.c.
Definition at line 484 of file fill.c.
Definition at line 1792 of file notcurses.c.
Definition at line 3003 of file notcurses.c.
API int ncplane_set_base | ( | struct ncplane * | n, |
const char * | egc, | ||
uint16_t | stylemask, | ||
uint64_t | channels | ||
) |
Definition at line 1558 of file notcurses.c.
Definition at line 1530 of file notcurses.c.
Definition at line 1554 of file notcurses.c.
Definition at line 1534 of file notcurses.c.
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 | ||
) |
Definition at line 272 of file fill.c.
API void ncplane_translate | ( | const struct ncplane * | src, |
const struct ncplane * | dst, | ||
int *RESTRICT | y, | ||
int *RESTRICT | x | ||
) |
API int ncplane_vline_interp | ( | struct ncplane * | n, |
const nccell * | c, | ||
unsigned | len, | ||
uint64_t | c1, | ||
uint64_t | c2 | ||
) |
API int ncplane_vprintf_aligned | ( | struct ncplane * | n, |
int | y, | ||
ncalign_e | align, | ||
const char * | format, | ||
va_list | ap | ||
) |
ncplane_yx | ( | n | , |
& | oy, | ||
& | ox | ||
) |
API ALLOC struct ncprogbar * ncprogbar_create | ( | struct ncplane * | n, |
const ncprogbar_options * | opts | ||
) |
Definition at line 4 of file progbar.c.
API ALLOC struct ncreader * ncreader_create | ( | struct ncplane * | n, |
const ncreader_options * | opts | ||
) |
Definition at line 26 of file reader.c.
Definition at line 115 of file reader.c.
Definition at line 152 of file reader.c.
API ALLOC struct nctablet * ncreel_add | ( | struct ncreel * | nr, |
struct nctablet * | after, | ||
struct nctablet * | before, | ||
tabletcb | cb, | ||
void * | opaque | ||
) |
Definition at line 838 of file reel.c.
API ALLOC struct ncreel * ncreel_create | ( | struct ncplane * | n, |
const ncreel_options * | popts | ||
) |
Definition at line 807 of file reel.c.
Definition at line 285 of file reel.c.
Definition at line 880 of file reel.c.
Definition at line 905 of file reel.c.
Definition at line 915 of file reel.c.
Definition at line 677 of file reel.c.
API int ncselector_additem | ( | struct ncselector * | n, |
const struct ncselector_item * | item | ||
) |
Definition at line 392 of file selector.c.
API ALLOC struct ncselector * ncselector_create | ( | struct ncplane * | n, |
const ncselector_options * | opts | ||
) |
Definition at line 280 of file selector.c.
API int ncselector_delitem | ( | struct ncselector * | n, |
const char * | item | ||
) |
Definition at line 427 of file selector.c.
API bool API void ncselector_destroy | ( | struct ncselector * | n, |
char ** | item | ||
) |
API const char * ncselector_nextitem | ( | struct ncselector * | n | ) |
API bool ncselector_offer_input | ( | struct ncselector * | n, |
const ncinput * | nc | ||
) |
API struct ncplane * ncselector_plane | ( | struct ncselector * | n | ) |
Definition at line 470 of file selector.c.
API const char * ncselector_previtem | ( | struct ncselector * | n | ) |
Definition at line 481 of file selector.c.
API const char * ncselector_selected | ( | const struct ncselector * | n | ) |
API int ncstrwidth | ( | const char * | egcs, |
int * | validbytes, | ||
int * | validwidth | ||
) |
Definition at line 3309 of file notcurses.c.
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 | ||
) |
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 | ||
) |
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 | ||
) |
Definition at line 402 of file fd.c.
API int nctab_move | ( | struct nctabbed * | nt, |
struct nctab * | t, | ||
struct nctab * | after, | ||
struct nctab * | before | ||
) |
API ALLOC struct nctab * nctabbed_add | ( | struct nctabbed * | nt, |
struct nctab * | after, | ||
struct nctab * | before, | ||
tabcb | tcb, | ||
const char * | name, | ||
void * | opaque | ||
) |
API struct nctab API void nctabbed_channels | ( | struct nctabbed * | nt, |
uint64_t *RESTRICT | hdrchan, | ||
uint64_t *RESTRICT | selchan, | ||
uint64_t *RESTRICT | sepchan | ||
) |
API ALLOC struct nctabbed * nctabbed_create | ( | struct ncplane * | n, |
const nctabbed_options * | opts | ||
) |
Definition at line 148 of file tabbed.c.
Definition at line 411 of file tabbed.c.
Definition at line 69 of file tabbed.c.
Definition at line 23 of file tabbed.c.
API int nctree_add | ( | struct nctree * | n, |
const unsigned * | spec, | ||
const struct nctree_item * | add | ||
) |
API ALLOC struct nctree * nctree_create | ( | struct ncplane * | n, |
const nctree_options * | opts | ||
) |
API int ncuplot_add_sample | ( | struct ncuplot * | n, |
uint64_t | x, | ||
uint64_t | y | ||
) |
API ALLOC struct ncuplot * ncuplot_create | ( | struct ncplane * | n, |
const ncplot_options * | opts, | ||
uint64_t | miny, | ||
uint64_t | maxy | ||
) |
API void ncuplot_destroy | ( | struct ncuplot * | n | ) |
Definition at line 681 of file plot.c.
API int ncuplot_sample | ( | const struct ncuplot * | n, |
uint64_t | x, | ||
uint64_t * | y | ||
) |
API int ncuplot_set_sample | ( | struct ncuplot * | n, |
uint64_t | x, | ||
uint64_t | y | ||
) |
Definition at line 670 of file plot.c.
API struct ncplane * ncvisual_blit | ( | struct notcurses * | nc, |
struct ncvisual * | ncv, | ||
const struct ncvisual_options * | vopts | ||
) |
Definition at line 1136 of file visual.c.
Definition at line 39 of file visual.c.
Definition at line 46 of file visual.c.
Definition at line 1225 of file visual.c.
API ALLOC struct ncvisual * ncvisual_from_bgra | ( | const void * | bgra, |
int | rows, | ||
int | rowstride, | ||
int | cols | ||
) |
Definition at line 891 of file visual.c.
Definition at line 53 of file visual.c.
API ALLOC struct ncvisual * ncvisual_from_palidx | ( | const void * | data, |
int | rows, | ||
int | rowstride, | ||
int | cols, | ||
int | palsize, | ||
int | pstride, | ||
const uint32_t * | palette | ||
) |
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 | ||
) |
API ALLOC struct ncvisual * ncvisual_from_rgb_loose | ( | const void * | rgba, |
int | rows, | ||
int | rowstride, | ||
int | cols, | ||
int | alpha | ||
) |
Definition at line 858 of file visual.c.
API ALLOC struct ncvisual * ncvisual_from_rgb_packed | ( | const void * | rgba, |
int | rows, | ||
int | rowstride, | ||
int | cols, | ||
int | alpha | ||
) |
Definition at line 817 of file visual.c.
API ALLOC struct ncvisual * ncvisual_from_rgba | ( | const void * | rgba, |
int | rows, | ||
int | rowstride, | ||
int | cols | ||
) |
Definition at line 776 of file visual.c.
Definition at line 806 of file visual.c.
API int ncvisual_geom | ( | const struct notcurses * | nc, |
const struct ncvisual * | n, | ||
const struct ncvisual_options * | vopts, | ||
ncvgeom * | geom | ||
) |
API ALLOC struct ncplane API ncblitter_e ncvisual_media_defblitter | ( | const struct notcurses * | nc, |
ncscale_e | scale | ||
) |
Definition at line 982 of file visual.c.
Definition at line 992 of file visual.c.
Definition at line 704 of file visual.c.
API int API int ncvisual_set_yx | ( | const struct ncvisual * | n, |
unsigned | y, | ||
unsigned | x, | ||
uint32_t | pixel | ||
) |
API int ncvisual_simple_streamer | ( | struct ncvisual * | ncv, |
struct ncvisual_options * | vopts, | ||
const struct timespec * | tspec, | ||
void * | curry | ||
) |
Definition at line 1238 of file visual.c.
API int ncvisual_stream | ( | struct notcurses * | nc, |
struct ncvisual * | ncv, | ||
float | timescale, | ||
ncstreamcb | streamer, | ||
const struct ncvisual_options * | vopts, | ||
void * | curry | ||
) |
API ALLOC struct ncplane * ncvisual_subtitle_plane | ( | struct ncplane * | parent, |
const struct ncvisual * | ncv | ||
) |
Definition at line 35 of file util.c.
API char * notcurses_at_yx | ( | struct notcurses * | nc, |
unsigned | yoff, | ||
unsigned | xoff, | ||
uint16_t * | stylemask, | ||
uint64_t * | channels | ||
) |
Definition at line 1625 of file render.c.
API const nccapabilities * notcurses_capabilities | ( | const struct notcurses * | n | ) |
API ncpixelimpl_e notcurses_check_pixel_support | ( | const struct notcurses * | nc | ) |
API ALLOC struct notcurses * notcurses_core_init | ( | const notcurses_options * | opts, |
FILE * | fp | ||
) |
Definition at line 1242 of file notcurses.c.
Definition at line 1738 of file render.c.
Definition at line 1434 of file notcurses.c.
Definition at line 31 of file notcurses.c.
API int notcurses_getvec | ( | struct notcurses * | n, |
const struct timespec * | ts, | ||
ncinput * | ni, | ||
int | vcount | ||
) |
Definition at line 62 of file util.c.
API ALLOC struct notcurses * notcurses_init | ( | const notcurses_options * | opts, |
FILE * | fp | ||
) |
Definition at line 3091 of file notcurses.c.
Definition at line 42 of file notcurses.c.
API int notcurses_lex_blitter | ( | const char * | op, |
ncblitter_e * | blitter | ||
) |
Definition at line 1378 of file blit.c.
API int notcurses_lex_margins | ( | const char * | op, |
notcurses_options * | opts | ||
) |
Definition at line 3067 of file notcurses.c.
Definition at line 3035 of file notcurses.c.
Definition at line 2556 of file notcurses.c.
Definition at line 82 of file util.c.
Definition at line 100 of file stats.c.
Definition at line 1446 of file notcurses.c.
API const char * notcurses_str_blitter | ( | ncblitter_e | blitter | ) |
Definition at line 3052 of file notcurses.c.
API int notcurses_ucs32_to_utf8 | ( | const uint32_t * | ucs32, |
unsigned | ucs32count, | ||
unsigned char * | resultbuf, | ||
size_t | buflen | ||
) |
API const char * notcurses_version | ( | void | ) |
Definition at line 182 of file notcurses.c.
API void notcurses_version_components | ( | int * | major, |
int * | minor, | ||
int * | patch, | ||
int * | tweak | ||
) |
Definition at line 24 of file notcurses.c.
Definition at line 861 of file notcurses.h.
else |
Definition at line 3491 of file notcurses.h.
Definition at line 2588 of file notcurses.h.
Definition at line 3502 of file notcurses.h.
Definition at line 1513 of file notcurses.h.
const struct ncplane_options struct ncvisual* ncv |
Definition at line 3484 of file notcurses.h.
return newn |
Definition at line 3508 of file notcurses.h.
const struct ncplane_options* opts |
Definition at line 3483 of file notcurses.h.
struct ncvisual_options v |
Definition at line 3497 of file notcurses.h.
const struct ncplane_options struct ncvisual struct ncvisual_options* vopts |
Definition at line 3484 of file notcurses.h.
int int x |
Definition at line 1905 of file notcurses.h.
int y |
Definition at line 1905 of file notcurses.h.