pub struct Rectangle(_);
Implementations§
§impl Rectangle
impl Rectangle
pub fn new(x: f64, y: f64, width: f64, height: f64) -> Rectangle
pub fn x(&self) -> f64
pub fn set_x(&mut self, x: f64)
pub fn y(&self) -> f64
pub fn set_y(&mut self, y: f64)
pub fn width(&self) -> f64
pub fn set_width(&mut self, width: f64)
pub fn height(&self) -> f64
pub fn set_height(&mut self, height: f64)
§impl Rectangle
impl Rectangle
pub fn to_raw_none(&self) -> *mut cairo_rectangle_t
Trait Implementations§
§impl<'a> FromValue<'a> for &'a Rectangle
impl<'a> FromValue<'a> for &'a Rectangle
§type Checker = GenericValueTypeOrNoneChecker<&'a Rectangle>
type Checker = GenericValueTypeOrNoneChecker<&'a Rectangle>
Value type checker.
§unsafe fn from_value(value: &'a Value) -> &'a Rectangle
unsafe fn from_value(value: &'a Value) -> &'a Rectangle
Get the contained value from a
Value
. Read more§impl<'a> FromValue<'a> for Rectangle
impl<'a> FromValue<'a> for Rectangle
§type Checker = GenericValueTypeOrNoneChecker<Rectangle>
type Checker = GenericValueTypeOrNoneChecker<Rectangle>
Value type checker.
§unsafe fn from_value(value: &'a Value) -> Rectangle
unsafe fn from_value(value: &'a Value) -> Rectangle
Get the contained value from a
Value
. Read more§impl StaticType for Rectangle
impl StaticType for Rectangle
§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.§impl ToValueOptional for Rectangle
impl ToValueOptional for Rectangle
§fn to_value_optional(s: Option<&Rectangle>) -> Value
fn to_value_optional(s: Option<&Rectangle>) -> Value
Convert an
Option
to a Value
.impl Copy for Rectangle
impl StructuralPartialEq for Rectangle
impl ValueTypeOptional for Rectangle
Auto Trait Implementations§
impl RefUnwindSafe for Rectangle
impl Send for Rectangle
impl Sync for Rectangle
impl Unpin for Rectangle
impl UnwindSafe for Rectangle
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
.