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