Struct qt_core::HitTestAccuracy
source · pub struct HitTestAccuracy(/* private fields */);
Expand description
This enum contains the types of accuracy that can be used by the QTextDocument class when testing for mouse clicks on text documents.
C++ enum: Qt::HitTestAccuracy
.
This enum contains the types of accuracy that can be used by the QTextDocument class when testing for mouse clicks on text documents.
Implementations§
source§impl HitTestAccuracy
impl HitTestAccuracy
sourcepub const ExactHit: HitTestAccuracy = _
pub const ExactHit: HitTestAccuracy = _
The point at which input occurred must coincide exactly with input-sensitive parts of the document. (C++ enum variant: ExactHit = 0
)
sourcepub const FuzzyHit: HitTestAccuracy = _
pub const FuzzyHit: HitTestAccuracy = _
The point at which input occurred can lie close to input-sensitive parts of the document. (C++ enum variant: FuzzyHit = 1
)
Trait Implementations§
source§impl Clone for HitTestAccuracy
impl Clone for HitTestAccuracy
source§fn clone(&self) -> HitTestAccuracy
fn clone(&self) -> HitTestAccuracy
Returns a copy 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 HitTestAccuracy
impl Debug for HitTestAccuracy
source§impl From<HitTestAccuracy> for c_int
impl From<HitTestAccuracy> for c_int
source§fn from(value: HitTestAccuracy) -> Self
fn from(value: HitTestAccuracy) -> Self
Converts to this type from the input type.
source§impl From<i32> for HitTestAccuracy
impl From<i32> for HitTestAccuracy
source§impl PartialEq for HitTestAccuracy
impl PartialEq for HitTestAccuracy
source§fn eq(&self, other: &HitTestAccuracy) -> bool
fn eq(&self, other: &HitTestAccuracy) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for HitTestAccuracy
impl Eq for HitTestAccuracy
impl StructuralEq for HitTestAccuracy
impl StructuralPartialEq for HitTestAccuracy
Auto Trait Implementations§
impl RefUnwindSafe for HitTestAccuracy
impl Send for HitTestAccuracy
impl Sync for HitTestAccuracy
impl Unpin for HitTestAccuracy
impl UnwindSafe for HitTestAccuracy
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