mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-20 03:25:47 +00:00
remove deprecated static inlines
This commit is contained in:
parent
20edd5a3cd
commit
2fbdb50d71
@ -3982,21 +3982,6 @@ cells_double_box(struct ncplane* n, uint32_t styles, uint64_t channels,
|
||||
nccell* ul, nccell* ur, nccell* ll,
|
||||
nccell* lr, nccell* hl, nccell* vl);
|
||||
|
||||
// Deprecated in favor of ncplane_as_rgba. This will be removed in ABI3.
|
||||
ALLOC __attribute__ ((deprecated)) __attribute__ ((nonnull (1)))
|
||||
static inline uint32_t*
|
||||
ncplane_rgba(const struct ncplane* n, ncblitter_e blit,
|
||||
int begy, int begx, int leny, int lenx){
|
||||
return ncplane_as_rgba(n, blit, begy, begx, leny, lenx, NULL, NULL);
|
||||
}
|
||||
|
||||
__attribute__ ((deprecated)) static inline int
|
||||
ncvisual_geom(const struct notcurses* nc, const struct ncvisual* n,
|
||||
const struct ncvisual_options* vopts,
|
||||
int* y, int* x, int* scaley, int* scalex){
|
||||
return ncvisual_blitter_geom(nc, n, vopts, y, x, scaley, scalex, NULL);
|
||||
}
|
||||
|
||||
// Deprecated form of nctablet_plane().
|
||||
API struct ncplane* nctablet_ncplane(struct nctablet* t)
|
||||
__attribute__ ((deprecated));
|
||||
@ -4009,216 +3994,6 @@ API int palette256_use(struct notcurses* nc, const ncpalette* p)
|
||||
|
||||
API void palette256_free(ncpalette* p) __attribute__ ((deprecated));
|
||||
|
||||
// Extract the three 8-bit R/G/B components from a 32-bit channel.
|
||||
__attribute__ ((deprecated)) static inline unsigned
|
||||
channel_rgb8(uint32_t channel, unsigned* RESTRICT r, unsigned* RESTRICT g,
|
||||
unsigned* RESTRICT b){
|
||||
return ncchannel_rgb8(channel, r, g, b);
|
||||
}
|
||||
|
||||
// Set the three 8-bit components of a 32-bit channel, and mark it as not using
|
||||
// the default color. Retain the other bits unchanged.
|
||||
__attribute__ ((deprecated)) static inline int
|
||||
channel_set_rgb8(uint32_t* channel, int r, int g, int b){
|
||||
return ncchannel_set_rgb8(channel, r, g, b);
|
||||
}
|
||||
|
||||
// Set the three 8-bit components of a 32-bit channel, and mark it as not using
|
||||
// the default color. Retain the other bits unchanged. r, g, and b will be
|
||||
// clipped to the range [0..255].
|
||||
__attribute__ ((deprecated)) static inline void
|
||||
channel_set_rgb8_clipped(unsigned* channel, int r, int g, int b){
|
||||
return ncchannel_set_rgb8_clipped(channel, r, g, b);
|
||||
}
|
||||
|
||||
// Same, but provide an assembled, packed 24 bits of rgb.
|
||||
__attribute__ ((deprecated)) static inline int
|
||||
channel_set(unsigned* channel, unsigned rgb){
|
||||
return ncchannel_set(channel, rgb);
|
||||
}
|
||||
|
||||
// Extract the 2-bit alpha component from a 32-bit channel.
|
||||
__attribute__ ((deprecated)) static inline unsigned
|
||||
channel_alpha(unsigned channel){
|
||||
return ncchannel_alpha(channel);
|
||||
}
|
||||
|
||||
__attribute__ ((deprecated)) static inline unsigned
|
||||
channel_palindex(uint32_t channel){
|
||||
return ncchannel_palindex(channel);
|
||||
}
|
||||
|
||||
// Set the 2-bit alpha component of the 32-bit channel.
|
||||
__attribute__ ((deprecated)) static inline int
|
||||
channel_set_alpha(unsigned* channel, unsigned alpha){
|
||||
return ncchannel_set_alpha(channel, alpha);
|
||||
}
|
||||
|
||||
__attribute__ ((deprecated)) static inline int
|
||||
channel_set_palindex(uint32_t* channel, int idx){
|
||||
return ncchannel_set_palindex(channel, idx);
|
||||
}
|
||||
|
||||
__attribute__ ((deprecated)) static inline bool
|
||||
channel_default_p(unsigned channel){
|
||||
return ncchannel_default_p(channel);
|
||||
}
|
||||
|
||||
__attribute__ ((deprecated)) static inline bool
|
||||
channel_palindex_p(unsigned channel){
|
||||
return ncchannel_palindex_p(channel);
|
||||
}
|
||||
|
||||
__attribute__ ((deprecated)) static inline unsigned
|
||||
channel_set_default(unsigned* channel){
|
||||
return ncchannel_set_default(channel);
|
||||
}
|
||||
|
||||
__attribute__ ((deprecated)) static inline uint32_t
|
||||
channels_bchannel(uint64_t channels){
|
||||
return ncchannels_bchannel(channels);
|
||||
}
|
||||
|
||||
__attribute__ ((deprecated)) static inline uint32_t
|
||||
channels_fchannel(uint64_t channels){
|
||||
return ncchannels_fchannel(channels);
|
||||
}
|
||||
|
||||
__attribute__ ((deprecated)) static inline uint64_t
|
||||
channels_set_bchannel(uint64_t* channels, uint32_t channel){
|
||||
return ncchannels_set_bchannel(channels, channel);
|
||||
}
|
||||
|
||||
__attribute__ ((deprecated)) static inline uint64_t
|
||||
channels_set_fchannel(uint64_t* channels, uint32_t channel){
|
||||
return ncchannels_set_fchannel(channels, channel);
|
||||
}
|
||||
|
||||
__attribute__ ((deprecated)) static inline uint64_t
|
||||
channels_combine(uint32_t fchan, uint32_t bchan){
|
||||
return ncchannels_combine(fchan, bchan);
|
||||
}
|
||||
|
||||
__attribute__ ((deprecated)) static inline unsigned
|
||||
channels_fg_palindex(uint64_t channels){
|
||||
return ncchannels_fg_palindex(channels);
|
||||
}
|
||||
|
||||
__attribute__ ((deprecated)) static inline unsigned
|
||||
channels_bg_palindex(uint64_t channels){
|
||||
return ncchannels_bg_palindex(channels);
|
||||
}
|
||||
|
||||
__attribute__ ((deprecated)) static inline unsigned
|
||||
channels_fg_rgb(uint64_t channels){
|
||||
return ncchannels_fg_rgb(channels);
|
||||
}
|
||||
|
||||
__attribute__ ((deprecated)) static inline unsigned
|
||||
channels_bg_rgb(uint64_t channels){
|
||||
return ncchannels_bg_rgb(channels);
|
||||
}
|
||||
|
||||
__attribute__ ((deprecated)) static inline unsigned
|
||||
channels_fg_alpha(uint64_t channels){
|
||||
return ncchannels_fg_alpha(channels);
|
||||
}
|
||||
|
||||
__attribute__ ((deprecated)) static inline unsigned
|
||||
channels_bg_alpha(uint64_t channels){
|
||||
return ncchannels_bg_alpha(channels);
|
||||
}
|
||||
|
||||
__attribute__ ((deprecated)) static inline unsigned
|
||||
channels_fg_rgb8(uint64_t channels, unsigned* r, unsigned* g, unsigned* b){
|
||||
return ncchannels_fg_rgb8(channels, r, g, b);
|
||||
}
|
||||
|
||||
__attribute__ ((deprecated)) static inline unsigned
|
||||
channels_bg_rgb8(uint64_t channels, unsigned* r, unsigned* g, unsigned* b){
|
||||
return ncchannels_bg_rgb8(channels, r, g, b);
|
||||
}
|
||||
|
||||
__attribute__ ((deprecated)) static inline int
|
||||
channels_set_fg_rgb8(uint64_t* channels, int r, int g, int b){
|
||||
return ncchannels_set_fg_rgb8(channels, r, g, b);
|
||||
}
|
||||
|
||||
__attribute__ ((deprecated)) static inline void
|
||||
channels_set_fg_rgb8_clipped(uint64_t* channels, int r, int g, int b){
|
||||
ncchannels_set_fg_rgb8_clipped(channels, r, g, b);
|
||||
}
|
||||
|
||||
__attribute__ ((deprecated)) static inline int
|
||||
channels_set_fg_alpha(uint64_t* channels, unsigned alpha){
|
||||
return ncchannels_set_fg_alpha(channels, alpha);
|
||||
}
|
||||
|
||||
__attribute__ ((deprecated)) static inline int
|
||||
channels_set_fg_palindex(uint64_t* channels, int idx){
|
||||
return ncchannels_set_bg_palindex(channels, idx);
|
||||
}
|
||||
|
||||
__attribute__ ((deprecated)) static inline int
|
||||
channels_set_fg_rgb(uint64_t* channels, unsigned rgb){
|
||||
return ncchannels_set_fg_rgb(channels, rgb);
|
||||
}
|
||||
|
||||
__attribute__ ((deprecated)) static inline int
|
||||
channels_set_bg_rgb8(uint64_t* channels, int r, int g, int b){
|
||||
return ncchannels_set_bg_rgb8(channels, r, g, b);
|
||||
}
|
||||
|
||||
__attribute__ ((deprecated)) static inline void
|
||||
channels_set_bg_rgb8_clipped(uint64_t* channels, int r, int g, int b){
|
||||
ncchannels_set_bg_rgb8_clipped(channels, r, g, b);
|
||||
}
|
||||
|
||||
__attribute__ ((deprecated)) static inline int
|
||||
channels_set_bg_alpha(uint64_t* channels, unsigned alpha){
|
||||
return ncchannels_set_bg_alpha(channels, alpha);
|
||||
}
|
||||
|
||||
__attribute__ ((deprecated)) static inline int
|
||||
channels_set_bg_palindex(uint64_t* channels, int idx){
|
||||
return ncchannels_set_bg_palindex(channels, idx);
|
||||
}
|
||||
|
||||
__attribute__ ((deprecated)) static inline int
|
||||
channels_set_bg_rgb(uint64_t* channels, unsigned rgb){
|
||||
return ncchannels_set_bg_rgb(channels, rgb);
|
||||
}
|
||||
|
||||
__attribute__ ((deprecated)) static inline bool
|
||||
channels_fg_default_p(uint64_t channels){
|
||||
return ncchannels_fg_default_p(channels);
|
||||
}
|
||||
|
||||
__attribute__ ((deprecated)) static inline bool
|
||||
channels_fg_palindex_p(uint64_t channels){
|
||||
return ncchannels_fg_palindex_p(channels);
|
||||
}
|
||||
|
||||
__attribute__ ((deprecated)) static inline bool
|
||||
channels_bg_default_p(uint64_t channels){
|
||||
return ncchannels_bg_default_p(channels);
|
||||
}
|
||||
|
||||
__attribute__ ((deprecated)) static inline bool
|
||||
channels_bg_palindex_p(uint64_t channels){
|
||||
return ncchannels_bg_palindex_p(channels);
|
||||
}
|
||||
|
||||
__attribute__ ((deprecated)) static inline uint64_t
|
||||
channels_set_fg_default(uint64_t* channels){
|
||||
return ncchannels_set_fg_default(channels);
|
||||
}
|
||||
|
||||
__attribute__ ((deprecated)) static inline uint64_t
|
||||
channels_set_bg_default(uint64_t* channels){
|
||||
return ncchannels_set_bg_default(channels);
|
||||
}
|
||||
|
||||
// Inflate each pixel in the image to 'scale'x'scale' pixels. It is an error
|
||||
// if 'scale' is less than 1. The original color is retained.
|
||||
// Deprecated; use ncvisual_resize_noninterpolative(), which this now wraps.
|
||||
|
Loading…
Reference in New Issue
Block a user