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<'a> FromValue<'a> for &'a RectangleInt
impl<'a> FromValue<'a> for &'a RectangleInt
Source§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
Source§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§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§fn to_value_optional(s: Option<&Self>) -> Value
fn to_value_optional(s: Option<&Self>) -> Value
Convert an
Option
to a Value
.Source§impl ValueType for RectangleInt
impl ValueType for RectangleInt
Source§type Type = RectangleInt
type Type = RectangleInt
Type to get the
Type
from. Read moreimpl Copy for RectangleInt
impl Eq for RectangleInt
impl StructuralPartialEq for RectangleInt
impl ValueTypeOptional for RectangleInt
Auto Trait Implementations§
impl Freeze for RectangleInt
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
.