[−][src]Struct gelatin::misc::LogicalVector
Used to represent logical pixel coordinates and dimensions.
This struct is distinct from PhysicalVector
which represents
physical pixel coordinates and dimensions to avoid
confusion when dealing with scaled dpi scenarios.
Fields
vec: Vector2<f32>
Implementations
impl LogicalVector
[src]
Trait Implementations
impl Add<LogicalVector> for LogicalVector
[src]
type Output = Self
The resulting type after applying the +
operator.
pub fn add(self, other: LogicalVector) -> Self::Output
[src]
impl AddAssign<LogicalVector> for LogicalVector
[src]
pub fn add_assign(&mut self, other: LogicalVector)
[src]
impl Clone for LogicalVector
[src]
pub fn clone(&self) -> LogicalVector
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for LogicalVector
[src]
impl Debug for LogicalVector
[src]
impl Default for LogicalVector
[src]
pub fn default() -> LogicalVector
[src]
impl<T: Into<f32>> Div<T> for LogicalVector
[src]
type Output = Self
The resulting type after applying the /
operator.
pub fn div(self, other: T) -> Self::Output
[src]
impl From<LogicalPosition<f32>> for LogicalVector
[src]
pub fn from(other: LogicalPosition<f32>) -> LogicalVector
[src]
impl From<LogicalSize<f32>> for LogicalVector
[src]
pub fn from(other: LogicalSize<f32>) -> LogicalVector
[src]
impl<T: Into<f32>> From<Vector2<T>> for LogicalVector
[src]
pub fn from(other: Vector2<T>) -> LogicalVector
[src]
impl<T: Into<f64>> FromPhysical<PhysicalPosition<T>> for LogicalVector
[src]
pub fn from_physical(source: PhysicalPosition<T>, scale_factor: f32) -> Self
[src]
impl<T: Into<f64>> FromPhysical<PhysicalSize<T>> for LogicalVector
[src]
pub fn from_physical(source: PhysicalSize<T>, scale_factor: f32) -> Self
[src]
impl Into<LogicalPosition<f32>> for LogicalVector
[src]
pub fn into(self) -> LogicalPosition<f32>
[src]
impl Into<LogicalSize<f32>> for LogicalVector
[src]
pub fn into(self) -> LogicalSize<f32>
[src]
impl Mul<LogicalVector> for f32
[src]
type Output = LogicalVector
The resulting type after applying the *
operator.
pub fn mul(self, other: LogicalVector) -> Self::Output
[src]
impl<T: Into<f32>> Mul<T> for LogicalVector
[src]
type Output = Self
The resulting type after applying the *
operator.
pub fn mul(self, other: T) -> Self::Output
[src]
impl Sub<LogicalVector> for LogicalVector
[src]
type Output = Self
The resulting type after applying the -
operator.
pub fn sub(self, other: LogicalVector) -> Self::Output
[src]
Auto Trait Implementations
impl RefUnwindSafe for LogicalVector
[src]
impl Send for LogicalVector
[src]
impl Sync for LogicalVector
[src]
impl Unpin for LogicalVector
[src]
impl UnwindSafe for LogicalVector
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Content for T where
T: Copy,
[src]
T: Copy,
type Owned = T
A type that holds a sized version of the content.
pub fn read<F, E>(size: usize, f: F) -> Result<T, E> where
F: FnOnce(&mut T) -> Result<(), E>,
[src]
F: FnOnce(&mut T) -> Result<(), E>,
pub fn get_elements_size() -> usize
[src]
pub fn to_void_ptr(&self) -> *const ()
[src]
pub fn ref_from_ptr(ptr: *mut (), size: usize) -> Option<*mut T>
[src]
pub fn is_size_suitable(size: usize) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,