Trait libnotcurses_sys::NcPixelMethods [−][src]
pub trait NcPixelMethods {
fn new(r: NcComponent, g: NcComponent, b: NcComponent) -> Self;
fn a(self) -> NcComponent;
fn b(self) -> NcComponent;
fn g(self) -> NcComponent;
fn r(self) -> NcComponent;
fn set_a(&mut self, green: NcComponent);
fn set_b(&mut self, blue: NcComponent);
fn set_g(&mut self, green: NcComponent);
fn set_r(&mut self, red: NcComponent);
fn set_rgb8(
&mut self,
red: NcComponent,
green: NcComponent,
blue: NcComponent
);
}Expand description
Enables the NcPixel methods.
Required methods
fn new(r: NcComponent, g: NcComponent, b: NcComponent) -> Self
[src]fn a(self) -> NcComponent
[src]fn b(self) -> NcComponent
[src]fn g(self) -> NcComponent
[src]fn r(self) -> NcComponent
[src]fn set_a(&mut self, green: NcComponent)
[src]fn set_b(&mut self, blue: NcComponent)
[src]fn set_g(&mut self, green: NcComponent)
[src]fn set_r(&mut self, red: NcComponent)
[src]fn set_rgb8(&mut self, red: NcComponent, green: NcComponent, blue: NcComponent)
[src]Implementors
Constructs a libav-compatible ABGR pixel from RGB NcComponents.
Extracts the 8-bit alpha NcComponent from an ABGR pixel.
Extracts the 8 bit blue NcComponent from an ABGR pixel.
Extracts the 8 bit green NcComponent from an ABGR pixel.
Extracts the 8 bit red NcComponent from an ABGR pixel.
Sets the 8-bit alpha NcComponent of an ABGR pixel.
Sets the 8-bit green NcComponent of an ABGR pixel.
Sets the 8-bit blue NcComponent of an ABGR pixel.
Sets the 8-bit red NcComponent of an ABGR pixel.
Sets the RGB NcComponents of an ABGR pixel.