#[repr(C)]
pub struct QRect { /* private fields */ }
Expand description

The QRect struct defines a rectangle in the plane using integer precision.

Implementations

Returns the height of the rectangle.

Returns the width of the rectangle.

Returns the x-coordinate of the rectangle’s left edge.

Returns the y-coordinate of the rectangle’s top edge.

Sets the height of the rectangle to the given height. The bottom edge is changed, but not the top one.

Sets the width of the rectangle to the given width. The right edge is changed, but not the left one.

Sets the left edge of the rectangle to the given x coordinate. May change the width, but will never change the right edge of the rectangle.

Sets the top edge of the rectangle to the given y coordinate. May change the height, but will never change the bottom edge of the rectangle.

Constructs a rectangle with (x, y) as its top-left corner and the given width and height.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Constructs a null rectangle.

A type-level representation of the type’s C++ namespace and type name. Read more

Constructs a QVariant from a reference of $typeName

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.