Struct gtk::Rectangle [−][src]
Expand description
Defines the position and size of a rectangle. It is identical to
cairo_rectangle_int_t.
Fields
x: i32y: i32width: i32height: i32Implementations
Calculates the intersection of two rectangles. It is allowed for
dest to be the same as either self or src2. If the rectangles
do not intersect, dest’s width and height is set to 0 and its x
and y values are undefined. If you are only interested in whether
the rectangles intersect, but not in the intersecting area itself,
pass None for dest.
src2
Returns
true if the rectangles intersect.
dest
return location for the
intersection of self and src2, or None
Calculates the union of two rectangles.
The union of rectangles self and src2 is the smallest rectangle which
includes both self and src2 within it.
It is allowed for dest to be the same as either self or src2.
Note that this function does not ignore ‘empty’ rectangles (ie. with zero width or height).
src2
Returns
dest
return location for the union of self and src2
Trait Implementations
Performs the conversion.
Performs the conversion.
Value type checker.
Get the contained value from a Value. Read more
Returns the type identifier of Self.
Convert an Option to a Value.
Auto Trait Implementations
impl RefUnwindSafe for Rectangleimpl UnwindSafe for RectangleBlanket Implementations
Mutably borrows from an owned value. Read more
Returns a SendValue clone of self.
impl<'a, T, C> FromValueOptional<'a> for T where
C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError>,
T: FromValue<'a, Checker = C>,