Struct cairo::RectangleInt
source · pub struct RectangleInt(/* private fields */);
Implementations§
source§impl RectangleInt
impl RectangleInt
pub fn new(x: i32, y: i32, width: i32, height: i32) -> Self
pub fn x(&self) -> i32
pub fn set_x(&mut self, x: i32)
pub fn y(&self) -> i32
pub fn set_y(&mut self, y: i32)
pub fn width(&self) -> i32
pub fn set_width(&mut self, width: i32)
pub fn height(&self) -> i32
pub fn set_height(&mut self, height: i32)
source§impl RectangleInt
impl RectangleInt
pub fn to_raw_none(&self) -> *mut cairo_rectangle_int_t
Trait Implementations§
source§impl Clone for RectangleInt
impl Clone for RectangleInt
source§fn clone(&self) -> RectangleInt
fn clone(&self) -> RectangleInt
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RectangleInt
impl Debug for RectangleInt
source§impl Display for RectangleInt
impl Display for RectangleInt
source§impl<'a> FromValue<'a> for &'a RectangleInt
impl<'a> FromValue<'a> for &'a RectangleInt
§type Checker = GenericValueTypeOrNoneChecker<&'a RectangleInt>
type Checker = GenericValueTypeOrNoneChecker<&'a RectangleInt>
Value type checker.
source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a
Value
. Read moresource§impl<'a> FromValue<'a> for RectangleInt
impl<'a> FromValue<'a> for RectangleInt
§type Checker = GenericValueTypeOrNoneChecker<RectangleInt>
type Checker = GenericValueTypeOrNoneChecker<RectangleInt>
Value type checker.
source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a
Value
. Read moresource§impl PartialEq for RectangleInt
impl PartialEq for RectangleInt
source§fn eq(&self, other: &RectangleInt) -> bool
fn eq(&self, other: &RectangleInt) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl StaticType for RectangleInt
impl StaticType for RectangleInt
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.source§impl ToValue for RectangleInt
impl ToValue for RectangleInt
source§impl ToValueOptional for RectangleInt
impl ToValueOptional for RectangleInt
source§impl ValueType for RectangleInt
impl ValueType for RectangleInt
§type Type = RectangleInt
type Type = RectangleInt
Type to get the
Type
from. Read moreimpl Copy for RectangleInt
impl Eq for RectangleInt
impl StructuralEq for RectangleInt
impl StructuralPartialEq for RectangleInt
impl ValueTypeOptional for RectangleInt
Auto Trait Implementations§
impl RefUnwindSafe for RectangleInt
impl Send for RectangleInt
impl Sync for RectangleInt
impl Unpin for RectangleInt
impl UnwindSafe for RectangleInt
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
source§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.