Trait libnotcurses_sys::NcChannelsApi [−][src]
pub trait NcChannelsApi {
const BG_DEFAULT_MASK: u32;
const BG_ALPHA_MASK: u32;
const BG_PALETTE_MASK: u32;
const BG_RGB_MASK: u32;
const NOBACKGROUND_MASK: u64;
Show 56 methods
fn new() -> Self;
fn with_default() -> Self;
fn from_rgb(fg_rgb: NcRgb, bg_rgb: NcRgb) -> Self;
fn from_rgb_both(rgb: NcRgb) -> Self;
fn from_rgb_alpha(
fg_rgb: NcRgb,
fg_alpha: NcAlpha,
bg_rgb: NcRgb,
bg_alpha: NcAlpha
) -> Self;
fn from_rgb_alpha_both(rgb: NcRgb, alpha: NcAlpha) -> Self;
fn from_rgb8(
fg_r: NcComponent,
fg_g: NcComponent,
fg_b: NcComponent,
bg_r: NcComponent,
bg_g: NcComponent,
bg_b: NcComponent
) -> Self;
fn from_rgb8_both(r: NcComponent, g: NcComponent, b: NcComponent) -> Self;
fn from_rgb8_alpha(
fg_r: NcComponent,
fg_g: NcComponent,
fg_b: NcComponent,
fg_alpha: NcAlpha,
bg_r: NcComponent,
bg_g: NcComponent,
bg_b: NcComponent,
bg_alpha: NcAlpha
) -> Self;
fn from_rgb8_alpha_both(
r: NcComponent,
g: NcComponent,
b: NcComponent,
alpha: NcAlpha
) -> Self;
fn combine(fchannel: NcChannel, bchannel: NcChannel) -> Self;
fn reverse(&mut self) -> Self;
fn fchannel(&self) -> NcChannel;
fn bchannel(&self) -> NcChannel;
fn set_fchannel(&mut self, fchannel: NcChannel) -> Self;
fn set_bchannel(&mut self, bchannel: NcChannel) -> Self;
fn fg_alpha(&self) -> NcAlpha;
fn bg_alpha(&self) -> NcAlpha;
fn set_fg_alpha(&mut self, alpha: NcAlpha) -> NcResult<()>;
fn set_bg_alpha(&mut self, alpha: NcAlpha) -> NcResult<()>;
fn fg_rgb_p(&self) -> bool;
fn bg_rgb_p(&self) -> bool;
fn fg_rgb(&self) -> NcRgb;
fn bg_rgb(&self) -> NcRgb;
fn set_fg_rgb(&mut self, rgb: NcRgb) -> Self;
fn set_bg_rgb(&mut self, rgb: NcRgb) -> Self;
fn fg_rgb8(&self) -> (NcComponent, NcComponent, NcComponent);
fn bg_rgb8(&self) -> (NcComponent, NcComponent, NcComponent);
fn set_fg_rgb8(
&mut self,
r: NcComponent,
g: NcComponent,
b: NcComponent
) -> Self;
fn set_bg_rgb8(
&mut self,
r: NcComponent,
g: NcComponent,
b: NcComponent
) -> Self;
fn fg_r(&self) -> NcComponent;
fn fg_g(&self) -> NcComponent;
fn fg_b(&self) -> NcComponent;
fn bg_r(&self) -> NcComponent;
fn bg_g(&self) -> NcComponent;
fn bg_b(&self) -> NcComponent;
fn fg_set_r(&mut self, r: NcComponent) -> Self;
fn fg_set_g(&mut self, g: NcComponent) -> Self;
fn fg_set_b(&mut self, b: NcComponent) -> Self;
fn bg_set_r(&mut self, r: NcComponent) -> Self;
fn bg_set_g(&mut self, g: NcComponent) -> Self;
fn bg_set_b(&mut self, b: NcComponent) -> Self;
fn fg_default_p(&self) -> bool;
fn bg_default_p(&self) -> bool;
fn set_fg_default(&mut self) -> Self;
fn set_fg_not_default(&mut self) -> Self;
fn set_bg_default(&mut self) -> Self;
fn set_bg_not_default(&mut self) -> Self;
fn set_default(&mut self) -> Self;
fn set_not_default(&mut self) -> Self;
fn fg_palindex(&self) -> NcPaletteIndex;
fn bg_palindex(&self) -> NcPaletteIndex;
fn fg_palindex_p(&self) -> bool;
fn bg_palindex_p(&self) -> bool;
fn set_fg_palindex(&mut self, index: NcPaletteIndex) -> Self;
fn set_bg_palindex(&mut self, index: NcPaletteIndex) -> Self;
}
Expand description
Enables the NcChannels
associated methods and constants.