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]
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]
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]
impl Text
[src]pub fn unresolved_font_request(self: Pin<&Self>) -> FontRequest
[src]
Trait Implementations
impl HasStaticVTable<ItemVTable> for Text
[src]
impl HasStaticVTable<ItemVTable> for Text
[src]fn static_vtable() -> &'static ItemVTable
[src]
impl Item for Text
[src]
impl Item for Text
[src]fn init(self: Pin<&Self>, _window: &ComponentWindow)
[src]
fn geometry(self: Pin<&Self>) -> Rect
[src]
fn layouting_info(self: Pin<&Self>, window: &ComponentWindow) -> LayoutInfo
[src]
fn implicit_size(self: Pin<&Self>, window: &ComponentWindow) -> Size
[src]
fn input_event_filter_before_children(
self: Pin<&Self>,
_: MouseEvent,
_window: &ComponentWindow,
_self_rc: &ItemRc
) -> InputEventFilterResult
[src]
self: Pin<&Self>,
_: MouseEvent,
_window: &ComponentWindow,
_self_rc: &ItemRc
) -> InputEventFilterResult
fn input_event(
self: Pin<&Self>,
_: MouseEvent,
_window: &ComponentWindow,
_self_rc: &ItemRc
) -> InputEventResult
[src]
self: Pin<&Self>,
_: MouseEvent,
_window: &ComponentWindow,
_self_rc: &ItemRc
) -> InputEventResult
fn key_event(
self: Pin<&Self>,
_: &KeyEvent,
_window: &ComponentWindow
) -> KeyEventResult
[src]
self: Pin<&Self>,
_: &KeyEvent,
_window: &ComponentWindow
) -> KeyEventResult
fn focus_event(self: Pin<&Self>, _: &FocusEvent, _window: &ComponentWindow)
[src]
fn render(self: Pin<&Self>, backend: &mut &mut dyn ItemRenderer)
[src]
impl ItemConsts for Text
[src]
impl ItemConsts for Text
[src]