pub struct G2D {
pub lib: Rc<g2d>,
pub handle: *mut c_void,
pub version: Version,
}Fields§
§lib: Rc<g2d>§handle: *mut c_void§version: VersionImplementations§
Source§impl G2D
impl G2D
pub fn new<P>(path: P) -> Result<Self>
pub fn version(&self) -> Version
pub fn clear(&self, dst: &mut G2DSurface, color: [u8; 4]) -> Result<()>
pub fn blit(&self, src: &G2DSurface, dst: &G2DSurface) -> Result<()>
pub fn set_bt601_colorspace(&mut self) -> Result<()>
pub fn set_bt709_colorspace(&mut self) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for G2D
impl !RefUnwindSafe for G2D
impl !Send for G2D
impl !Sync for G2D
impl Unpin for G2D
impl !UnwindSafe for G2D
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more