Trait libnotcurses_sys::NcChannelApi [−][src]
pub trait NcChannelApi {
const DEFAULT_MASK: u32;
const ALPHA_MASK: u32;
const PALETTE_MASK: u32;
const RGB_MASK: u32;
Show 27 methods
fn new() -> Self;
fn with_default() -> Self;
fn from_rgb(rgb: NcRgb) -> Self;
fn from_rgb_alpha(rgb: NcRgb, alpha: NcAlpha) -> Self;
fn from_rgb8(r: NcComponent, g: NcComponent, b: NcComponent) -> Self;
fn from_rgb8_alpha(
r: NcComponent,
g: NcComponent,
b: NcComponent,
alpha: NcAlpha
) -> Self;
fn fcombine(&self, bchannel: NcChannel) -> NcChannels;
fn bcombine(&self, fchannel: NcChannel) -> NcChannels;
fn alpha(&self) -> NcAlpha;
fn set_alpha(&mut self, alpha: NcAlpha) -> Self;
fn rgb_p(&self) -> bool;
fn rgb(&self) -> NcRgb;
fn set(&mut self, rgb: NcRgb) -> Self;
fn rgb8(&self) -> (NcComponent, NcComponent, NcComponent);
fn set_rgb8(
&mut self,
r: NcComponent,
g: NcComponent,
b: NcComponent
) -> Self;
fn r(&self) -> NcComponent;
fn g(&self) -> NcComponent;
fn b(&self) -> NcComponent;
fn set_r(&mut self, r: NcComponent) -> Self;
fn set_g(&mut self, g: NcComponent) -> Self;
fn set_b(&mut self, b: NcComponent) -> Self;
fn default_p(&self) -> bool;
fn set_default(&mut self) -> Self;
fn set_not_default(&mut self) -> Self;
fn palindex(&self) -> NcPaletteIndex;
fn palindex_p(&self) -> bool;
fn set_palindex(&mut self, index: NcPaletteIndex) -> Self;
}
Expand description
Enables the NcChannel
associated methods and constants.