pub struct TextRequest {
pub text: TextRun,
pub offset: LogicalPoint,
pub options: TextOptions,
}Expand description
placed text for text system queries such as cursor and hit testing
Fields§
§text: TextRun§offset: LogicalPoint§options: TextOptionsImplementations§
Source§impl TextRequest
impl TextRequest
Sourcepub fn new(text: TextRun) -> Self
pub fn new(text: TextRun) -> Self
creates a new TextRequest
Sourcepub fn text(self, value: TextRun) -> Self
pub fn text(self, value: TextRun) -> Self
sets Self::text
Sourcepub fn offset(self, value: LogicalPoint) -> Self
pub fn offset(self, value: LogicalPoint) -> Self
sets Self::offset
Sourcepub fn options(self, value: TextOptions) -> Self
pub fn options(self, value: TextOptions) -> Self
sets Self::options
Trait Implementations§
Source§impl Clone for TextRequest
impl Clone for TextRequest
impl Copy for TextRequest
Source§impl Debug for TextRequest
impl Debug for TextRequest
Source§impl Hash for TextRequest
impl Hash for TextRequest
Source§impl PartialEq for TextRequest
impl PartialEq for TextRequest
impl StructuralPartialEq for TextRequest
Auto Trait Implementations§
impl Forget for TextRequest
impl Freeze for TextRequest
impl Move for TextRequest
impl RefUnwindSafe for TextRequest
impl Send for TextRequest
impl Sync for TextRequest
impl Unpin for TextRequest
impl UnsafeUnpin for TextRequest
impl UnwindSafe for TextRequest
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