Skip to main content

IDisplayMethods

Trait IDisplayMethods 

Source
pub trait IDisplayMethods: IDisplay {
    // Provided methods
    fn ctor(self) { ... }
    fn ctor_2(self, native_display: impl Into<IntPtr>) { ... }
    fn get_rendering_width(self) -> i32 { ... }
    fn get_rendering_height(self) -> i32 { ... }
    fn get_system_width(self) -> i32 { ... }
    fn get_system_height(self) -> i32 { ... }
    fn get_requires_srgb_blit_to_backbuffer(self) -> bool { ... }
}

Provided Methods§

Source

fn ctor(self)

.ctor() overload

Source

fn ctor_2(self, native_display: impl Into<IntPtr>)

.ctor(::unity::IntPtr) overload

Source

fn get_rendering_width(self) -> i32

get_renderingWidth() overload

Source

fn get_rendering_height(self) -> i32

get_renderingHeight() overload

Source

fn get_system_width(self) -> i32

get_systemWidth() overload

Source

fn get_system_height(self) -> i32

get_systemHeight() overload

Source

fn get_requires_srgb_blit_to_backbuffer(self) -> bool

get_requiresSrgbBlitToBackbuffer() overload

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<__T: IDisplay> IDisplayMethods for __T

Available on crate feature unity_engine-display only.