#[repr(C)]pub struct G2DSurface {Show 13 fields
pub format: g2d_format,
pub planes: [c_ulong; 3],
pub left: c_int,
pub top: c_int,
pub right: c_int,
pub bottom: c_int,
pub stride: c_int,
pub width: c_int,
pub height: c_int,
pub blendfunc: g2d_blend_func,
pub global_alpha: c_int,
pub clrcolor: c_int,
pub rot: g2d_rotation,
}Fields§
§format: g2d_format§planes: [c_ulong; 3]§left: c_int§top: c_int§right: c_int§bottom: c_int§stride: c_int< buffer stride, in Pixels
width: c_int< surface width, in Pixels
height: c_int< surface height, in Pixels
blendfunc: g2d_blend_func< alpha blending parameters
global_alpha: c_int< value is 0 ~ 255
clrcolor: c_int§rot: g2d_rotationTrait Implementations§
Source§impl Clone for G2DSurface
impl Clone for G2DSurface
Source§fn clone(&self) -> G2DSurface
fn clone(&self) -> G2DSurface
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for G2DSurface
impl Debug for G2DSurface
Source§impl Default for G2DSurface
impl Default for G2DSurface
Source§impl From<&G2DSurface> for G2DSurfaceLegacy
impl From<&G2DSurface> for G2DSurfaceLegacy
Source§fn from(surface: &G2DSurface) -> Self
fn from(surface: &G2DSurface) -> Self
Converts to this type from the input type.
Source§impl PartialEq for G2DSurface
impl PartialEq for G2DSurface
impl Copy for G2DSurface
impl StructuralPartialEq for G2DSurface
Auto Trait Implementations§
impl Freeze for G2DSurface
impl RefUnwindSafe for G2DSurface
impl Send for G2DSurface
impl Sync for G2DSurface
impl Unpin for G2DSurface
impl UnwindSafe for G2DSurface
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