Struct rute::auto::margins::Margins

source ·
pub struct Margins<'a> { /* private fields */ }
Expand description

Notice these docs are heavy WIP and not very relevent yet

QMargin defines a set of four margins; left, top, right and bottom, that describe the size of the borders surrounding a rectangle.

The isNull() function returns true only if all margins are set to zero.

QMargin objects can be streamed as well as compared.

Licence

The documentation is an adoption of the original Qt Documentation and provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.

Implementations

Returns true if all margins are is 0; otherwise returns false.

Returns the left margin.

See also: setLeft()

Returns the top margin.

See also: setTop()

Returns the right margin.

Returns the bottom margin.

Sets the left margin to left.

Sets the Top margin to Top.

Sets the right margin to right.

Sets the bottom margin to bottom.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
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
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.