Struct wrend::TextureCreateContext
source · [−]pub struct TextureCreateContext { /* private fields */ }Expand description
This is the context object that is passed to the create_texture callback function
Implementations
sourceimpl TextureCreateContext
impl TextureCreateContext
pub fn new(
gl: WebGl2RenderingContext,
now: f64,
canvas: HtmlCanvasElement
) -> Self
pub fn gl(&self) -> &WebGl2RenderingContext
pub fn now(&self) -> f64
pub fn canvas(&self) -> &HtmlCanvasElement
Trait Implementations
sourceimpl Clone for TextureCreateContext
impl Clone for TextureCreateContext
sourcefn clone(&self) -> TextureCreateContext
fn clone(&self) -> TextureCreateContext
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for TextureCreateContext
impl Debug for TextureCreateContext
sourceimpl From<&TextureCreateContext> for TextureCreateContextJs
impl From<&TextureCreateContext> for TextureCreateContextJs
sourcefn from(attribute_create_context: &TextureCreateContext) -> Self
fn from(attribute_create_context: &TextureCreateContext) -> Self
Converts to this type from the input type.
sourceimpl From<TextureCreateContext> for TextureCreateContextJs
impl From<TextureCreateContext> for TextureCreateContextJs
sourcefn from(attribute_create_context: TextureCreateContext) -> Self
fn from(attribute_create_context: TextureCreateContext) -> Self
Converts to this type from the input type.
sourceimpl IntoJsWrapper for &TextureCreateContext
impl IntoJsWrapper for &TextureCreateContext
type Result = TextureCreateContextJs
type Result = TextureCreateContextJs
This is the type that should returned from
into_js_wrappersourcefn into_js_wrapper(self) -> Self::Result
fn into_js_wrapper(self) -> Self::Result
Converts a value into another value that can be converted into a
JsValuesourceimpl IntoJsWrapper for TextureCreateContext
impl IntoJsWrapper for TextureCreateContext
type Result = TextureCreateContextJs
type Result = TextureCreateContextJs
This is the type that should returned from
into_js_wrappersourcefn into_js_wrapper(self) -> Self::Result
fn into_js_wrapper(self) -> Self::Result
Converts a value into another value that can be converted into a
JsValueAuto Trait Implementations
impl RefUnwindSafe for TextureCreateContext
impl !Send for TextureCreateContext
impl !Sync for TextureCreateContext
impl Unpin for TextureCreateContext
impl UnwindSafe for TextureCreateContext
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more