[−][src]Enum quicksilver::graphics::ResizeHandler
The way to adjust the content when the size of the window changes
Variants (Non-exhaustive)
Use the entire area and stretch to fill it
Keep the content area exactly the same size. If necessary, content will be cut off
Fill the screen while maintaing aspect ratio, possiby cutting off content in the process
Take up as much of the screen as possible while maintaing aspect ratio, but use letterboxing if necessary
Only scale as integer multiple of the given width and height
16, 9, for example, will allow any 16:9 viewport; 160, 90 will only allow 16:9 viewports that are divisible by 10
Implementations
impl ResizeHandler
[src]
pub fn content_size(self, size: Vector) -> Vector
[src]
Determine the size of the content given a window size
This depends on which ResizeStrategy is in use; check the documentation for each enum variant for more.
Trait Implementations
impl Clone for ResizeHandler
[src]
fn clone(&self) -> ResizeHandler
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ResizeHandler
[src]
impl Debug for ResizeHandler
[src]
impl PartialEq<ResizeHandler> for ResizeHandler
[src]
fn eq(&self, other: &ResizeHandler) -> bool
[src]
fn ne(&self, other: &ResizeHandler) -> bool
[src]
impl StructuralPartialEq for ResizeHandler
[src]
Auto Trait Implementations
impl RefUnwindSafe for ResizeHandler
impl Send for ResizeHandler
impl Sync for ResizeHandler
impl Unpin for ResizeHandler
impl UnwindSafe for ResizeHandler
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,
fn borrow_mut(&mut self) -> &mut T
[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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
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.
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>,