Struct sixtyfps_corelib::items::Text[][src]

#[repr(C)]
pub struct Text {
Show fields pub text: Property<SharedString>, pub font_family: Property<SharedString>, pub font_size: Property<f32>, pub font_weight: Property<i32>, pub color: Property<Brush>, pub horizontal_alignment: Property<TextHorizontalAlignment>, pub vertical_alignment: Property<TextVerticalAlignment>, pub wrap: Property<TextWrap>, pub overflow: Property<TextOverflow>, pub letter_spacing: Property<f32>, pub x: Property<f32>, pub y: Property<f32>, pub width: Property<f32>, pub height: Property<f32>, pub cached_rendering_data: CachedRenderingData,
}

The implementation of the Text element

Fields

text: Property<SharedString>font_family: Property<SharedString>font_size: Property<f32>font_weight: Property<i32>color: Property<Brush>horizontal_alignment: Property<TextHorizontalAlignment>vertical_alignment: Property<TextVerticalAlignment>wrap: Property<TextWrap>overflow: Property<TextOverflow>letter_spacing: Property<f32>x: Property<f32>y: Property<f32>width: Property<f32>height: Property<f32>cached_rendering_data: CachedRenderingData

Implementations

impl Text[src]

pub const FIELD_OFFSETS: TextFieldsOffsets[src]

Return a struct containing the offset of for the fields of this struct

impl Text[src]

pub fn text(self: Pin<&Self>) -> SharedString[src]

pub fn font_family(self: Pin<&Self>) -> SharedString[src]

pub fn font_size(self: Pin<&Self>) -> f32[src]

pub fn font_weight(self: Pin<&Self>) -> i32[src]

pub fn color(self: Pin<&Self>) -> Brush[src]

pub fn horizontal_alignment(self: Pin<&Self>) -> TextHorizontalAlignment[src]

pub fn vertical_alignment(self: Pin<&Self>) -> TextVerticalAlignment[src]

pub fn wrap(self: Pin<&Self>) -> TextWrap[src]

pub fn overflow(self: Pin<&Self>) -> TextOverflow[src]

pub fn letter_spacing(self: Pin<&Self>) -> f32[src]

pub fn x(self: Pin<&Self>) -> f32[src]

pub fn y(self: Pin<&Self>) -> f32[src]

pub fn width(self: Pin<&Self>) -> f32[src]

pub fn height(self: Pin<&Self>) -> f32[src]

impl Text[src]

Trait Implementations

impl Default for Text[src]

impl HasStaticVTable<ItemVTable> for Text[src]

impl Item for Text[src]

impl ItemConsts for Text[src]

impl<'__dummy_lifetime> Unpin for Text where
    __MustNotImplUnpin<'__dummy_lifetime>: Unpin
[src]

Auto Trait Implementations

impl !RefUnwindSafe for Text

impl !Send for Text

impl !Sync for Text

impl UnwindSafe for Text

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<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.