Struct qmetaobject::QSize
source · [−]Expand description
Bindings for QSize
class.
Fields
width: u32
height: u32
Trait Implementations
sourceimpl QMetaType for QSize
impl QMetaType for QSize
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 QSize
impl StructuralPartialEq for QSize
Auto Trait Implementations
impl RefUnwindSafe for QSize
impl Send for QSize
impl Sync for QSize
impl Unpin for QSize
impl UnwindSafe for QSize
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