#[repr(C)]
pub struct QMargins { /* private fields */ }
Expand description
The QMargins class defines the four margins of a rectangle.
Returns the bottom margin.
Returns true if all margins are is 0; otherwise returns false.
Returns the right margin.
Sets the bottom margin to bottom.
Sets the left margin to left.
Sets the right margin to right.
Sets the Top margin to Top.
Constructs margins with the given left, top, right, and bottom
The resulting type after applying the +
operator.
The resulting type after applying the +
operator.
The resulting type after applying the +
operator.
Performs copy-assignment from
source
.
Read more
Formats the value using the given formatter.
Read more
Constructs a margins object with all margins set to 0.
Formats the value using the given formatter.
Read more
The resulting type after applying the /
operator.
The resulting type after applying the /
operator.
A type-level representation of the type’s C++ namespace and type name.
Read more
Constructs margins copied from the given margins.
Returns an integer-based copy of this margins object.
Note that the components in the returned margins will be rounded to the nearest integer.
The resulting type after applying the *
operator.
The resulting type after applying the *
operator.
This method tests for self
and other
values to be equal, and is used
by ==
.
This method tests for !=
. The default implementation is almost always
sufficient, and should not be overridden without very good reason.
The resulting type after applying the -
operator.
The resulting type after applying the -
operator.
The resulting type after applying the -
operator.
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more
Uses borrowed data to replace owned data, usually by cloning.
Read more
Converts the given value to a
String
.
Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.