pub struct UseBrowser { /* private fields */ }
Expand description

Window height effect handler

Implementations§

source§

impl UseBrowser

source

pub fn size(&self) -> (usize, usize)

get size of current browser

source

pub fn width(&self) -> usize

get width of current browser

read-only

source

pub fn height(&self) -> usize

get height of current window

read-only

source

pub fn aspect_radio(&self) -> f64

get aspect radio of current window

source

pub fn resize_to(&self, size: (usize, usize)) -> bool

get height of current window

source

pub fn resize_delta(&self, size: (i32, i32)) -> bool

get height of current window

source§

impl UseBrowser

source

pub fn is_fullscreen(&self) -> bool

check if is full screen

source

pub fn fullscreen_toggle(&self) -> bool

get width of current browser

source

pub fn fullscreen_on(&self) -> bool

set full screen on

source

pub fn fullscreen_off(&self) -> bool

set full screen off

Trait Implementations§

source§

impl Debug for UseBrowser

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for UseBrowser

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<UseWindow> for UseBrowser

source§

fn from(size: UseWindow) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
§

impl<T> To for Twhere T: ?Sized,

§

fn to<T>(self) -> Twhere Self: Into<T>,

Converts to T by calling Into<T>::into.
§

fn try_to<T>(self) -> Result<T, Self::Error>where Self: TryInto<T>,

Tries to convert to T by calling TryInto<T>::try_into.
source§

impl<T> ToString for Twhere T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.