Trait TextureHandleExt

Source
pub trait TextureHandleExt {
    // Required methods
    fn from_vec_u8(
        ctx: &Context,
        debug_name: &str,
        size: [usize; 2],
        vec: Vec<u8>,
    ) -> TextureHandle;
    fn from_u8_slice(
        ctx: &Context,
        debug_name: &str,
        size: [usize; 2],
        slice: &[u8],
    ) -> TextureHandle;
    fn from_vec_color32(
        ctx: &Context,
        debug_name: &str,
        size: [usize; 2],
        vec: Vec<Color32>,
    ) -> TextureHandle;
    fn from_color32_slice(
        ctx: &Context,
        debug_name: &str,
        size: [usize; 2],
        slice: &[Color32],
    ) -> TextureHandle;
}
Expand description

egui::TextureHandle Extender.

Required Methods§

Source

fn from_vec_u8( ctx: &Context, debug_name: &str, size: [usize; 2], vec: Vec<u8>, ) -> TextureHandle

egui::TextureHandle from Vec u8

Source

fn from_u8_slice( ctx: &Context, debug_name: &str, size: [usize; 2], slice: &[u8], ) -> TextureHandle

Source

fn from_vec_color32( ctx: &Context, debug_name: &str, size: [usize; 2], vec: Vec<Color32>, ) -> TextureHandle

Source

fn from_color32_slice( ctx: &Context, debug_name: &str, size: [usize; 2], slice: &[Color32], ) -> TextureHandle

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.

Implementations on Foreign Types§

Source§

impl TextureHandleExt for TextureHandle

Source§

fn from_vec_u8( ctx: &Context, debug_name: &str, size: [usize; 2], vec: Vec<u8>, ) -> Self

Source§

fn from_u8_slice( ctx: &Context, debug_name: &str, size: [usize; 2], slice: &[u8], ) -> Self

Source§

fn from_vec_color32( ctx: &Context, debug_name: &str, size: [usize; 2], vec: Vec<Color32>, ) -> Self

Source§

fn from_color32_slice( ctx: &Context, debug_name: &str, size: [usize; 2], slice: &[Color32], ) -> Self

Implementors§