[−][src]Struct quicksilver::graphics::ImmiRender
Deprecated since 0.3.16:
immi is not actively maintained or sufficient as a GUI solution
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]
target: &'a mut Mesh,
view: View,
font: &'a Font
) -> ImmiRender<'a>
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_triangle(
&mut self,
texture: &Image,
matrix: &Matrix,
uv_coords: [[f32; 2]; 3]
)
[src]
&mut self,
texture: &Image,
matrix: &Matrix,
uv_coords: [[f32; 2]; 3]
)
fn get_image_width_per_height(&mut self, image: &Image) -> f32
[src]
fn draw_glyph(&mut self, text_style: &FontStyle, glyph: char, matrix: &Matrix)
[src]
fn line_height(&self, _text_style: &FontStyle) -> f32
[src]
fn glyph_infos(&self, text_style: &FontStyle, glyph: char) -> GlyphInfos
[src]
fn kerning(
&self,
text_style: &FontStyle,
first_char: char,
second_char: char
) -> f32
[src]
&self,
text_style: &FontStyle,
first_char: char,
second_char: char
) -> f32
fn draw_image(&mut self, name: &Self::ImageResource, matrix: &Matrix)
[src]
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]
&mut self,
name: &Self::ImageResource,
matrix: &Matrix,
top_left: [f32; 2],
top_right: [f32; 2],
bottom_right: [f32; 2],
bottom_left: [f32; 2]
)
Auto Trait Implementations
impl<'a> !Send for ImmiRender<'a>
impl<'a> !Sync for ImmiRender<'a>
impl<'a> Unpin for ImmiRender<'a>
impl<'a> !UnwindSafe for ImmiRender<'a>
impl<'a> !RefUnwindSafe for ImmiRender<'a>
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
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]
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
[src]
fn is_in_subset(&self) -> bool
[src]
unsafe fn to_subset_unchecked(&self) -> SS
[src]
fn from_subset(element: &SS) -> SP
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> Downcast for T where
T: Any,
T: Any,