Struct qmetaobject::QPointF
source · [−]Expand description
Bindings for QPointF
class.
Fields
x: f64
y: f64
Trait Implementations
sourceimpl AddAssign<QPointF> for QPointF
impl AddAssign<QPointF> for QPointF
sourcepub fn add_assign(&mut self, other: QPointF)
pub fn add_assign(&mut self, other: QPointF)
Wrapper around operator+=(const QPointF &
method.
sourceimpl QMetaType for QPointF
impl QMetaType for QPointF
fn id() -> i32
sourcefn to_qvariant(&self) -> QVariant
fn to_qvariant(&self) -> QVariant
Returns a QVariant containing a copy of this object
sourcefn from_qvariant(variant: QVariant) -> Option<Self>
fn from_qvariant(variant: QVariant) -> Option<Self>
Attempt to convert from a QVariant to this type.
sourceconst CONVERSION_TO_STRING: Option<fn(_: &Self) -> QString>
const CONVERSION_TO_STRING: Option<fn(_: &Self) -> QString>
If this is set to a function, it enable the conversion to and from QString
const CONVERSION_FROM_STRING: Option<fn(_: &QString) -> Self>
impl Copy for QPointF
impl StructuralPartialEq for QPointF
Auto Trait Implementations
impl RefUnwindSafe for QPointF
impl Send for QPointF
impl Sync for QPointF
impl Unpin for QPointF
impl UnwindSafe for QPointF
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> PropertyType for T where
T: QMetaType,
impl<T> PropertyType for T where
T: QMetaType,
fn register_type(name: &CStr) -> i32
unsafe fn pass_to_qt(&mut self, a: *mut c_void)
unsafe fn read_from_qt(a: *const c_void) -> Self
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more