Struct glium::BlitTarget
source · pub struct BlitTarget {
pub left: u32,
pub bottom: u32,
pub width: i32,
pub height: i32,
}
Expand description
Area of a surface in pixels. Similar to a Rect
except that dimensions can be negative.
In the OpenGL ecosystem, the (0,0) coordinate is at the bottom-left hand corner of the images.
Fields§
§left: u32
Number of pixels between the left border of the surface and the left border of the rectangle.
bottom: u32
Number of pixels between the bottom border of the surface and the bottom border of the rectangle.
width: i32
Width of the area in pixels. Can be negative.
height: i32
Height of the area in pixels. Can be negative.
Trait Implementations§
source§impl Clone for BlitTarget
impl Clone for BlitTarget
source§fn clone(&self) -> BlitTarget
fn clone(&self) -> BlitTarget
Returns a copy 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 BlitTarget
impl Debug for BlitTarget
source§impl Default for BlitTarget
impl Default for BlitTarget
source§fn default() -> BlitTarget
fn default() -> BlitTarget
Returns the “default value” for a type. Read more
source§impl PartialEq<BlitTarget> for BlitTarget
impl PartialEq<BlitTarget> for BlitTarget
source§fn eq(&self, other: &BlitTarget) -> bool
fn eq(&self, other: &BlitTarget) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for BlitTarget
impl Eq for BlitTarget
impl StructuralEq for BlitTarget
impl StructuralPartialEq for BlitTarget
Auto Trait Implementations§
impl RefUnwindSafe for BlitTarget
impl Send for BlitTarget
impl Sync for BlitTarget
impl Unpin for BlitTarget
impl UnwindSafe for BlitTarget
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
source§impl<T> Content for Twhere
T: Copy,
impl<T> Content for Twhere T: Copy,
source§unsafe fn read<F, E>(size: usize, f: F) -> Result<T, E>where
F: FnOnce(&mut T) -> Result<(), E>,
unsafe fn read<F, E>(size: usize, f: F) -> Result<T, E>where F: FnOnce(&mut T) -> Result<(), E>,
Prepares an output buffer, then turns this buffer into an
Owned
.
User-provided closure F
must only write to and not read from &mut Self
.source§fn get_elements_size() -> usize
fn get_elements_size() -> usize
Returns the size of each element.
source§fn to_void_ptr(&self) -> *const ()
fn to_void_ptr(&self) -> *const ()
Produces a pointer to the data.
source§fn ref_from_ptr<'a>(ptr: *mut (), size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut (), size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
source§fn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.