[][src]Struct quicksilver::graphics::ImmiRender

pub struct ImmiRender<'a> { /* fields omitted */ }

The implementation of the Immi rendering code for Quicksilver

This allows Immi to draw the UI to an arbitrary mesh. Used with create_immi_ctx

Methods

impl<'a> ImmiRender<'a>[src]

pub fn new(target: &'a mut Mesh, font: &'a Font) -> ImmiRender<'a>[src]

Deprecated since 0.3.3:

please use new_with_view instead

Create an instance of the renderer, which should be done every frame

The renderer is a short-lived object that should not be stored

pub fn new_with_view(
    target: &'a mut Mesh,
    view: View,
    font: &'a Font
) -> ImmiRender<'a>
[src]

Create a new instance of the renderer with the given view

pub fn new_with_window(window: &'a mut Window, font: &'a Font) -> ImmiRender<'a>[src]

Create a renderer from a Window

Trait Implementations

impl<'a> Draw for ImmiRender<'a>[src]

type ImageResource = Image

Type of a resource that represents an image.

type TextStyle = FontStyle

Type of a resource that represents the style of a text: its font, color, etc.

fn draw_image(&mut self, name: &Self::ImageResource, matrix: &Matrix)[src]

Draws an image that covers the whole surface (from -1.0 to 1.0 both horizontally and vertically), but multiplied by the matrix. Read more

fn draw_image_uv(
    &mut self,
    name: &Self::ImageResource,
    matrix: &Matrix,
    top_left: [f32; 2],
    top_right: [f32; 2],
    bottom_right: [f32; 2],
    bottom_left: [f32; 2]
)
[src]

Draws an image that covers the whole surface (from -1.0 to 1.0 both horizontally and vertically), but multiplied by the matrix. Read more

Auto Trait Implementations

impl<'a> !Send for ImmiRender<'a>

impl<'a> !Sync for ImmiRender<'a>

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.

impl<T> Erased for T

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T> Downcast for T where
    T: Any