[−][src]Struct glyph_brush::OwnedSection
Fields
screen_position: (f32, f32)
Position on screen to render text, in pixels from top-left. Defaults to (0, 0).
bounds: (f32, f32)
Max (width, height) bounds, in pixels from top-left. Defaults to unbounded.
layout: Layout<BuiltInLineBreaker>
Built in layout, can be overridden with custom layout logic
see queue_custom_layout
text: Vec<OwnedText<X>>
Text to render, rendered next to one another according the layout.
Implementations
impl<X> OwnedSection<X>
[src]
pub fn with_screen_position<P: Into<(f32, f32)>>(
mut self: Self,
position: P
) -> Self
[src]
mut self: Self,
position: P
) -> Self
pub fn with_bounds<P: Into<(f32, f32)>>(mut self: Self, bounds: P) -> Self
[src]
pub fn with_layout<L: Into<Layout<BuiltInLineBreaker>>>(
mut self: Self,
layout: L
) -> Self
[src]
mut self: Self,
layout: L
) -> Self
pub fn add_text<T: Into<OwnedText<X>>>(mut self: Self, text: T) -> Self
[src]
pub fn with_text<X2>(self, text: Vec<OwnedText<X2>>) -> OwnedSection<X2>
[src]
impl<X: Clone> OwnedSection<X>
[src]
pub fn to_borrowed(&self) -> Section<'_, X>
[src]
Trait Implementations
impl<X: Clone> Clone for OwnedSection<X>
[src]
pub fn clone(&self) -> OwnedSection<X>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<X: Debug> Debug for OwnedSection<X>
[src]
impl<X: Default> Default for OwnedSection<X>
[src]
impl<'a> From<&'a OwnedSection<Extra>> for Section<'a>
[src]
pub fn from(owned: &'a OwnedSection) -> Self
[src]
impl<X: PartialEq> PartialEq<OwnedSection<X>> for OwnedSection<X>
[src]
pub fn eq(&self, other: &OwnedSection<X>) -> bool
[src]
pub fn ne(&self, other: &OwnedSection<X>) -> bool
[src]
impl<X> StructuralPartialEq for OwnedSection<X>
[src]
Auto Trait Implementations
impl<X> RefUnwindSafe for OwnedSection<X> where
X: RefUnwindSafe,
[src]
X: RefUnwindSafe,
impl<X> Send for OwnedSection<X> where
X: Send,
[src]
X: Send,
impl<X> Sync for OwnedSection<X> where
X: Sync,
[src]
X: Sync,
impl<X> Unpin for OwnedSection<X> where
X: Unpin,
[src]
X: Unpin,
impl<X> UnwindSafe for OwnedSection<X> where
X: UnwindSafe,
[src]
X: UnwindSafe,
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,
pub 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
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut 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.
pub 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.
pub 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>,