pub struct TextBoxSnapshotBuilder { /* private fields */ }Expand description
Builder for TextBoxSnapshot.
Implementations§
Source§impl TextBoxSnapshotBuilder
impl TextBoxSnapshotBuilder
Sourcepub fn layout_index<VALUE: Into<Vec<JsUInt>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn layout_index<VALUE: Into<Vec<JsUInt>>>( &mut self, value: VALUE, ) -> &mut Self
Index of the layout tree node that owns this box collection.
Sourcepub fn bounds<VALUE: Into<Vec<Rectangle>>>(&mut self, value: VALUE) -> &mut Self
pub fn bounds<VALUE: Into<Vec<Rectangle>>>(&mut self, value: VALUE) -> &mut Self
The absolute position bounding box.
Sourcepub fn start<VALUE: Into<Vec<JsUInt>>>(&mut self, value: VALUE) -> &mut Self
pub fn start<VALUE: Into<Vec<JsUInt>>>(&mut self, value: VALUE) -> &mut Self
The starting index in characters, for this post layout textbox substring. Characters that would be represented as a surrogate pair in UTF-16 have length 2.
Sourcepub fn length<VALUE: Into<Vec<JsUInt>>>(&mut self, value: VALUE) -> &mut Self
pub fn length<VALUE: Into<Vec<JsUInt>>>(&mut self, value: VALUE) -> &mut Self
The number of characters in this post layout textbox substring. Characters that would be represented as a surrogate pair in UTF-16 have length 2.
Sourcepub fn build(&self) -> Result<TextBoxSnapshot, TextBoxSnapshotBuilderError>
pub fn build(&self) -> Result<TextBoxSnapshot, TextBoxSnapshotBuilderError>
Trait Implementations§
Source§impl Clone for TextBoxSnapshotBuilder
impl Clone for TextBoxSnapshotBuilder
Source§fn clone(&self) -> TextBoxSnapshotBuilder
fn clone(&self) -> TextBoxSnapshotBuilder
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 moreAuto Trait Implementations§
impl Freeze for TextBoxSnapshotBuilder
impl RefUnwindSafe for TextBoxSnapshotBuilder
impl Send for TextBoxSnapshotBuilder
impl Sync for TextBoxSnapshotBuilder
impl Unpin for TextBoxSnapshotBuilder
impl UnsafeUnpin for TextBoxSnapshotBuilder
impl UnwindSafe for TextBoxSnapshotBuilder
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