Struct cxx_qt_lib::QSize
source · #[repr(C)]pub struct QSize { /* private fields */ }
Expand description
The QSize struct defines the size of a two-dimensional object using integer point precision.
Implementations§
source§impl QSize
impl QSize
sourcepub fn bounded_to(&self, other_size: &QSize) -> QSize
pub fn bounded_to(&self, other_size: &QSize) -> QSize
Returns a size holding the minimum width and height of this size and the given otherSize.
source§impl QSize
impl QSize
sourcepub fn expanded_to(&self, other_size: &QSize) -> QSize
pub fn expanded_to(&self, other_size: &QSize) -> QSize
Returns a size holding the maximum width and height of this size and the given otherSize.
source§impl QSize
impl QSize
sourcepub fn scale(&mut self, size: &QSize, mode: AspectRatioMode)
pub fn scale(&mut self, size: &QSize, mode: AspectRatioMode)
Scales the size to a rectangle with the given size, according to the specified mode.
source§impl QSize
impl QSize
sourcepub fn scaled(&self, s: &QSize, mode: AspectRatioMode) -> QSize
pub fn scaled(&self, s: &QSize, mode: AspectRatioMode) -> QSize
Return a size scaled to a rectangle with the given size s, according to the specified mode.
source§impl QSize
impl QSize
sourcepub fn set_height(&mut self, height: i32)
pub fn set_height(&mut self, height: i32)
Sets the height to the given height.
Trait Implementations§
source§impl ExternType for QSize
impl ExternType for QSize
source§impl PartialEq for QSize
impl PartialEq for QSize
source§impl QListElement for QSize
impl QListElement for QSize
type TypeId = (Q, L, i, s, t, __, Q, S, i, z, e)
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 QSize
impl QVariantValue for QSize
source§impl QVectorElement for QSize
impl QVectorElement for QSize
type TypeId = (Q, V, e, c, t, o, r, __, Q, S, i, z, e)
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 Eq for QSize
impl StructuralPartialEq for QSize
Auto Trait Implementations§
impl Freeze for QSize
impl RefUnwindSafe for QSize
impl Send for QSize
impl Sync for QSize
impl Unpin for QSize
impl UnwindSafe for QSize
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