Struct druid::piet::cairo::RectangleInt
pub struct RectangleInt(_);
Implementations§
§impl RectangleInt
impl RectangleInt
pub fn new(x: i32, y: i32, width: i32, height: i32) -> RectangleInt
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)
§impl RectangleInt
impl RectangleInt
pub fn to_raw_none(&self) -> *mut cairo_rectangle_int_t
Trait Implementations§
§impl AsRef<RectangleInt> for Rectangle
impl AsRef<RectangleInt> for Rectangle
§fn as_ref(&self) -> &RectangleInt
fn as_ref(&self) -> &RectangleInt
Converts this type into a shared reference of the (usually inferred) input type.
§impl Clone for RectangleInt
impl Clone for RectangleInt
§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 more§impl Debug for RectangleInt
impl Debug for RectangleInt
§impl Display for RectangleInt
impl Display for RectangleInt
§impl From<RectangleInt> for Rectangle
impl From<RectangleInt> for Rectangle
§fn from(r: RectangleInt) -> Rectangle
fn from(r: RectangleInt) -> Rectangle
Converts to this type from the input type.
§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.
§unsafe fn from_value(value: &'a Value) -> &'a RectangleInt
unsafe fn from_value(value: &'a Value) -> &'a RectangleInt
Get the contained value from a
Value
. Read more§impl<'a> FromValue<'a> for RectangleInt
impl<'a> FromValue<'a> for RectangleInt
§type Checker = GenericValueTypeOrNoneChecker<RectangleInt>
type Checker = GenericValueTypeOrNoneChecker<RectangleInt>
Value type checker.
§unsafe fn from_value(value: &'a Value) -> RectangleInt
unsafe fn from_value(value: &'a Value) -> RectangleInt
Get the contained value from a
Value
. Read more§impl PartialEq<RectangleInt> for RectangleInt
impl PartialEq<RectangleInt> for RectangleInt
§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 ==
.§impl StaticType for RectangleInt
impl StaticType for RectangleInt
§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.§impl ToValue for RectangleInt
impl ToValue for RectangleInt
§impl ToValueOptional for RectangleInt
impl ToValueOptional for RectangleInt
§fn to_value_optional(s: Option<&RectangleInt>) -> Value
fn to_value_optional(s: Option<&RectangleInt>) -> Value
Convert an
Option
to a Value
.§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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
§impl<T> RoundFrom<T> for T
impl<T> RoundFrom<T> for T
§fn round_from(x: T) -> T
fn round_from(x: T) -> T
Performs the conversion.
§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere U: RoundFrom<T>,
§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.
§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere T: StaticType,
§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
§impl<T> ToClosureReturnValue for Twhere
T: ToValue,
impl<T> ToClosureReturnValue for Twhere T: ToValue,
fn to_closure_return_value(&self) -> Option<Value>
§impl<T> ToSendValue for Twhere
T: Send + ToValue + ?Sized,
impl<T> ToSendValue for Twhere T: Send + ToValue + ?Sized,
§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.