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.