[−][src]Struct solstice_2d::Graphics2DLock
Fields
transforms: Transforms
Implementations
impl<'a, 's> Graphics2DLock<'a, 's>
[src]
pub fn set_shader(&mut self, shader: &'s mut Shader2D)
[src]
pub fn remove_active_shader(&mut self)
[src]
pub fn set_color<C: Into<[f32; 4]>>(&mut self, color: C)
[src]
pub fn arc(&mut self, draw_mode: DrawMode, arc: Arc)
[src]
pub fn circle(&mut self, draw_mode: DrawMode, circle: Circle)
[src]
pub fn ellipse(&mut self, draw_mode: DrawMode, ellipse: Ellipse)
[src]
pub fn line(&mut self, x1: f32, y1: f32, x2: f32, y2: f32)
[src]
pub fn lines<P: Into<Point>, I: IntoIterator<Item = P>>(&mut self, points: I)
[src]
pub fn rectangle(&mut self, draw_mode: DrawMode, rectangle: Rectangle)
[src]
pub fn image<T: Texture + Copy>(&mut self, rectangle: Rectangle, texture: T)
[src]
pub fn print<S: AsRef<str>>(
&mut self,
font: FontId,
text: S,
x: f32,
y: f32,
scale: f32
)
[src]
&mut self,
font: FontId,
text: S,
x: f32,
y: f32,
scale: f32
)
Trait Implementations
impl<'_, '_> Drop for Graphics2DLock<'_, '_>
[src]
Auto Trait Implementations
impl<'a, 's> RefUnwindSafe for Graphics2DLock<'a, 's>
impl<'a, 's> Send for Graphics2DLock<'a, 's>
impl<'a, 's> Sync for Graphics2DLock<'a, 's>
impl<'a, 's> Unpin for Graphics2DLock<'a, 's>
impl<'a, 's> !UnwindSafe for Graphics2DLock<'a, 's>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
const ALIGN: usize
type Init = T
The type for initializers.
unsafe fn init(init: <T as Pointable>::Init) -> usize
unsafe fn deref<'a>(ptr: usize) -> &'a T
unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
unsafe fn drop(ptr: usize)
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<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,