Struct cxx_qt_lib::QSizeF
source · #[repr(C)]pub struct QSizeF { /* private fields */ }
Expand description
The QSizeF class defines the size of a two-dimensional object using floating point precision.
Implementations§
source§impl QSizeF
impl QSizeF
sourcepub fn bounded_to(&self, other_size: &QSizeF) -> QSizeF
pub fn bounded_to(&self, other_size: &QSizeF) -> QSizeF
Returns a size holding the minimum width and height of this size and the given otherSize.
source§impl QSizeF
impl QSizeF
sourcepub fn expanded_to(&self, other_size: &QSizeF) -> QSizeF
pub fn expanded_to(&self, other_size: &QSizeF) -> QSizeF
Returns a size holding the maximum width and height of this size and the given otherSize.
source§impl QSizeF
impl QSizeF
sourcepub fn scale(&mut self, size: &QSizeF, mode: AspectRatioMode)
pub fn scale(&mut self, size: &QSizeF, mode: AspectRatioMode)
Scales the size to a rectangle with the given size, according to the specified mode.
source§impl QSizeF
impl QSizeF
sourcepub fn scaled(&self, s: &QSizeF, mode: AspectRatioMode) -> QSizeF
pub fn scaled(&self, s: &QSizeF, mode: AspectRatioMode) -> QSizeF
Returns a size scaled to a rectangle with the given size s, according to the specified mode.
source§impl QSizeF
impl QSizeF
sourcepub fn set_height(&mut self, height: f64)
pub fn set_height(&mut self, height: f64)
Sets the height to the given finite height.
Trait Implementations§
source§impl ExternType for QSizeF
impl ExternType for QSizeF
source§impl PartialEq for QSizeF
impl PartialEq for QSizeF
source§impl QListElement for QSizeF
impl QListElement for QSizeF
type TypeId = (Q, L, i, s, t, __, Q, S, i, z, e, F)
fn append(list: &mut QList<Self>, value: Self)
fn append_clone(list: &mut QList<Self>, value: &Self)
fn clear(list: &mut QList<Self>)
fn clone(list: &QList<Self>) -> QList<Self>
fn contains(list: &QList<Self>, value: &Self) -> bool
fn default() -> QList<Self>
fn drop(list: &mut QList<Self>)
fn index_of(list: &QList<Self>, value: &Self) -> isize
fn insert(list: &mut QList<Self>, pos: isize, value: Self)
fn insert_clone(list: &mut QList<Self>, pos: isize, value: &Self)
fn len(list: &QList<Self>) -> isize
fn remove(list: &mut QList<Self>, pos: isize)
fn reserve(list: &mut QList<Self>, size: isize)
source§impl QVariantValue for QSizeF
impl QVariantValue for QSizeF
source§impl QVectorElement for QSizeF
impl QVectorElement for QSizeF
type TypeId = (Q, V, e, c, t, o, r, __, Q, S, i, z, e, F)
fn append(vector: &mut QVector<Self>, value: Self)
fn append_clone(vector: &mut QVector<Self>, value: &Self)
fn clear(vector: &mut QVector<Self>)
fn clone(vector: &QVector<Self>) -> QVector<Self>
fn contains(vector: &QVector<Self>, value: &Self) -> bool
fn default() -> QVector<Self>
fn drop(vector: &mut QVector<Self>)
fn index_of(vector: &QVector<Self>, value: &Self) -> isize
fn insert(vector: &mut QVector<Self>, pos: isize, value: Self)
fn insert_clone(vector: &mut QVector<Self>, pos: isize, value: &Self)
fn len(vector: &QVector<Self>) -> isize
fn remove(vector: &mut QVector<Self>, pos: isize)
fn reserve(vector: &mut QVector<Self>, size: isize)
impl StructuralPartialEq for QSizeF
Auto Trait Implementations§
impl Freeze for QSizeF
impl RefUnwindSafe for QSizeF
impl Send for QSizeF
impl Sync for QSizeF
impl Unpin for QSizeF
impl UnwindSafe for QSizeF
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