Struct cairo::RectangleInt
source · [−]#[repr(transparent)]pub struct RectangleInt(_);
Implementations
sourceimpl 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)
sourceimpl RectangleInt
impl RectangleInt
pub fn to_raw_none(&self) -> *mut cairo_rectangle_int_t
Trait Implementations
sourceimpl Clone for RectangleInt
impl Clone for RectangleInt
sourcefn clone(&self) -> RectangleInt
fn clone(&self) -> RectangleInt
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for RectangleInt
impl Debug for RectangleInt
sourceimpl Display for RectangleInt
impl Display for RectangleInt
sourceimpl<'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.
sourceunsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a
Value
. Read moresourceimpl<'a> FromValue<'a> for RectangleInt
impl<'a> FromValue<'a> for RectangleInt
type Checker = GenericValueTypeOrNoneChecker<RectangleInt>
type Checker = GenericValueTypeOrNoneChecker<RectangleInt>
Value type checker.
sourceunsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a
Value
. Read moresourceimpl PartialEq<RectangleInt> for RectangleInt
impl PartialEq<RectangleInt> for RectangleInt
sourcefn eq(&self, other: &RectangleInt) -> bool
fn eq(&self, other: &RectangleInt) -> bool
sourceimpl StaticType for RectangleInt
impl StaticType for RectangleInt
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.sourceimpl ToValue for RectangleInt
impl ToValue for RectangleInt
sourceimpl ToValueOptional for RectangleInt
impl ToValueOptional for RectangleInt
sourcefn to_value_optional(s: Option<&Self>) -> Value
fn to_value_optional(s: Option<&Self>) -> Value
Convert an
Option
to a Value
.sourceimpl 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
sourcefn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
sourceimpl<T> ToClosureReturnValue for Twhere
T: ToValue,
impl<T> ToClosureReturnValue for Twhere
T: ToValue,
fn to_closure_return_value(&self) -> Option<Value>
sourceimpl<T> ToSendValue for Twhere
T: Send + ToValue + ?Sized,
impl<T> ToSendValue for Twhere
T: Send + ToValue + ?Sized,
sourcefn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.