pub struct QMarginsF { /* private fields */ }
Expand description
The QMarginsF class defines the four margins of a rectangle.
Implementations§
Source§impl QMarginsF
impl QMarginsF
Sourcepub fn is_null(&self) -> bool
pub fn is_null(&self) -> bool
Returns true if all margins are very close to 0; otherwise returns false.
Sourcepub fn set_bottom(&mut self, bottom: f64)
pub fn set_bottom(&mut self, bottom: f64)
Sets the bottom margin to abottom (which must be finite).
Sourcepub fn set_right(&mut self, right: f64)
pub fn set_right(&mut self, right: f64)
Sets the right margin to aright (which must be finite).
Sourcepub fn to_margins(&self) -> QMargins
pub fn to_margins(&self) -> QMargins
Returns an integer-based copy of this margins object.
Note that the components in the returned margins will be rounded to the nearest integer.
Trait Implementations§
Source§impl ExternType for QMarginsF
impl ExternType for QMarginsF
Source§impl QListElement for QMarginsF
impl QListElement for QMarginsF
type TypeId = (Q, L, i, s, t, __, Q, M, a, r, g, i, n, s, 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 QVectorElement for QMarginsF
impl QVectorElement for QMarginsF
type TypeId = (Q, V, e, c, t, o, r, __, Q, M, a, r, g, i, n, s, 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 QMarginsF
Auto Trait Implementations§
impl Freeze for QMarginsF
impl RefUnwindSafe for QMarginsF
impl Send for QMarginsF
impl Sync for QMarginsF
impl Unpin for QMarginsF
impl UnwindSafe for QMarginsF
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