Struct gtk::Rectangle
[−]
[src]
#[repr(C)]pub struct Rectangle { pub x: i32, pub y: i32, pub width: i32, pub height: i32, }
Fields
x: i32
y: i32
width: i32
height: i32
Methods
impl Rectangle[src]
fn intersect(&self, other: &Rectangle) -> Option<Rectangle>[src]
fn union(&self, other: &Rectangle) -> Rectangle[src]
Trait Implementations
impl Copy for Rectangle[src]
impl Clone for Rectangle[src]
fn clone(&self) -> Rectangle[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl SetValue for Rectangle[src]
impl<'a> FromValueOptional<'a> for Rectangle[src]
unsafe fn from_value_optional(value: &'a Value) -> Option<Rectangle>[src]
impl StaticType for Rectangle[src]
fn static_type() -> Type[src]
Returns the type identifier of Self.
impl Hash for Rectangle[src]
fn hash<__H>(&self, __arg_0: &mut __H) where
__H: Hasher, [src]
__H: Hasher,
Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher]. Read more
impl From<RectangleInt> for Rectangle[src]
fn from(r: RectangleInt) -> Rectangle[src]
impl PartialEq<Rectangle> for Rectangle[src]
fn eq(&self, __arg_0: &Rectangle) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Rectangle) -> bool[src]
This method tests for !=.
impl Debug for Rectangle[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>[src]
Formats the value using the given formatter.
impl Eq for Rectangle[src]
impl AsRef<RectangleInt> for Rectangle[src]
fn as_ref(&self) -> &RectangleInt[src]
Performs the conversion.