pub struct InlineTextBoxBuilder { /* private fields */ }Expand description
Builder for InlineTextBox.
Implementations§
Source§impl InlineTextBoxBuilder
impl InlineTextBoxBuilder
Sourcepub fn bounding_box<VALUE: Into<Rect>>(&mut self, value: VALUE) -> &mut Self
pub fn bounding_box<VALUE: Into<Rect>>(&mut self, value: VALUE) -> &mut Self
The bounding box in document coordinates. Note that scroll offset of the document is ignored.
Sourcepub fn start_character_index<VALUE: Into<JsUInt>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn start_character_index<VALUE: Into<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 num_characters<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
pub fn num_characters<VALUE: Into<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<InlineTextBox, InlineTextBoxBuilderError>
pub fn build(&self) -> Result<InlineTextBox, InlineTextBoxBuilderError>
Trait Implementations§
Source§impl Clone for InlineTextBoxBuilder
impl Clone for InlineTextBoxBuilder
Source§fn clone(&self) -> InlineTextBoxBuilder
fn clone(&self) -> InlineTextBoxBuilder
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 InlineTextBoxBuilder
impl RefUnwindSafe for InlineTextBoxBuilder
impl Send for InlineTextBoxBuilder
impl Sync for InlineTextBoxBuilder
impl Unpin for InlineTextBoxBuilder
impl UnsafeUnpin for InlineTextBoxBuilder
impl UnwindSafe for InlineTextBoxBuilder
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