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.