pub struct SelectableTextProps {
pub layout: LayoutStyle,
pub rich: AttributedText,
pub style: Option<TextStyle>,
pub color: Option<Color>,
pub wrap: TextWrap,
pub overflow: TextOverflow,
pub align: TextAlign,
pub ink_overflow: TextInkOverflow,
pub interactive_spans: Arc<[SelectableTextInteractiveSpan]>,
}Fields§
§layout: LayoutStyle§rich: AttributedText§style: Option<TextStyle>§color: Option<Color>Base color for glyphs without a per-run override.
wrap: TextWrap§overflow: TextOverflow§align: TextAlign§ink_overflow: TextInkOverflow§interactive_spans: Arc<[SelectableTextInteractiveSpan]>Optional interactive span ranges (e.g. link spans).
The runtime owns hit-testing and event routing; component/ecosystem code decides what
activation does via ElementContext::selectable_text_on_activate_span* hooks.
Implementations§
Source§impl SelectableTextProps
impl SelectableTextProps
pub fn new(rich: AttributedText) -> Self
Trait Implementations§
Source§impl Clone for SelectableTextProps
impl Clone for SelectableTextProps
Source§fn clone(&self) -> SelectableTextProps
fn clone(&self) -> SelectableTextProps
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SelectableTextProps
impl Debug for SelectableTextProps
Source§impl IntoElement for SelectableTextProps
impl IntoElement for SelectableTextProps
fn into_element(self, id: GlobalElementId) -> AnyElement
Auto Trait Implementations§
impl Freeze for SelectableTextProps
impl RefUnwindSafe for SelectableTextProps
impl Send for SelectableTextProps
impl Sync for SelectableTextProps
impl Unpin for SelectableTextProps
impl UnsafeUnpin for SelectableTextProps
impl UnwindSafe for SelectableTextProps
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more