[−][src]Struct rg3d_ui::formatted_text::FormattedText
Implementations
impl FormattedText
[src]
pub fn get_glyphs(&self) -> &[TextGlyph]
[src]
pub fn get_font(&self) -> Option<SharedFont>
[src]
pub fn set_font(&mut self, font: SharedFont) -> &mut Self
[src]
pub fn get_lines(&self) -> &[TextLine]
[src]
pub fn set_vertical_alignment(
&mut self,
vertical_alignment: VerticalAlignment
) -> &mut Self
[src]
&mut self,
vertical_alignment: VerticalAlignment
) -> &mut Self
pub fn vertical_alignment(&self) -> VerticalAlignment
[src]
pub fn set_horizontal_alignment(
&mut self,
horizontal_alignment: HorizontalAlignment
) -> &mut Self
[src]
&mut self,
horizontal_alignment: HorizontalAlignment
) -> &mut Self
pub fn horizontal_alignment(&self) -> HorizontalAlignment
[src]
pub fn set_brush(&mut self, brush: Brush) -> &mut Self
[src]
pub fn brush(&self) -> Brush
[src]
pub fn set_constraint(&mut self, constraint: Vector2<f32>) -> &mut Self
[src]
pub fn get_raw_text(&self) -> &[u32]
[src]
pub fn text(&self) -> String
[src]
pub fn get_range_width<T: IntoIterator<Item = usize>>(&self, range: T) -> f32
[src]
pub fn set_text<P: AsRef<str>>(&mut self, text: P) -> &mut Self
[src]
pub fn set_wrap(&mut self, wrap: bool) -> &mut Self
[src]
pub fn is_wrap(&self) -> bool
[src]
pub fn insert_char(&mut self, c: char, index: usize) -> &mut Self
[src]
pub fn remove_range(&mut self, range: Range<usize>) -> &mut Self
[src]
pub fn remove_at(&mut self, index: usize) -> &mut Self
[src]
pub fn build(&mut self) -> Vector2<f32>
[src]
Trait Implementations
impl Clone for FormattedText
[src]
pub fn clone(&self) -> FormattedText
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for FormattedText
[src]
Auto Trait Implementations
impl RefUnwindSafe for FormattedText
impl Send for FormattedText
impl Sync for FormattedText
impl Unpin for FormattedText
impl UnwindSafe for FormattedText
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> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
pub fn to_subset(&self) -> Option<SS>
pub fn is_in_subset(&self) -> bool
pub fn to_subset_unchecked(&self) -> SS
pub fn from_subset(element: &SS) -> SP
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>,