Struct gsk4::ConicGradientNode
source · [−]#[repr(transparent)]pub struct ConicGradientNode { /* private fields */ }
Implementations
sourceimpl ConicGradientNode
impl ConicGradientNode
pub fn new(
bounds: &Rect,
center: &Point,
rotation: f32,
color_stops: &[ColorStop]
) -> ConicGradientNode
pub fn angle(&self) -> f32
This is supported on crate feature
v4_2
only.pub fn center(&self) -> Point
pub fn color_stops(&self) -> Vec<ColorStop>
pub fn n_color_stops(&self) -> usize
pub fn rotation(&self) -> f32
Methods from Deref<Target = RenderNode>
pub const NONE: Option<&'static RenderNode>
pub fn draw(&self, cr: &Context)
pub fn bounds(&self) -> Rect
pub fn node_type(&self) -> RenderNodeType
pub fn serialize(&self) -> Bytes
pub fn write_to_file(&self, filename: impl AsRef<Path>) -> Result<(), Error>
pub fn is<T: IsRenderNode>(&self) -> bool
pub fn type_(&self) -> Type
pub fn downcast_ref<T: IsRenderNode>(&self) -> Option<&T>
Trait Implementations
sourceimpl AsRef<RenderNode> for ConicGradientNode
impl AsRef<RenderNode> for ConicGradientNode
sourcefn as_ref(&self) -> &RenderNode
fn as_ref(&self) -> &RenderNode
Performs the conversion.
sourceimpl Clone for ConicGradientNode
impl Clone for ConicGradientNode
sourceimpl Debug for ConicGradientNode
impl Debug for ConicGradientNode
sourceimpl Deref for ConicGradientNode
impl Deref for ConicGradientNode
type Target = RenderNode
type Target = RenderNode
The resulting type after dereferencing.
sourceimpl Display for ConicGradientNode
impl Display for ConicGradientNode
sourceimpl<'a> FromValue<'a> for ConicGradientNode
This is supported on crate feature v4_6
only.
impl<'a> FromValue<'a> for ConicGradientNode
This is supported on crate feature
v4_6
only.type Checker = GenericValueTypeOrNoneChecker<Self>
type Checker = GenericValueTypeOrNoneChecker<Self>
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 more
sourceimpl IsRenderNode for ConicGradientNode
impl IsRenderNode for ConicGradientNode
const NODE_TYPE: RenderNodeType
fn upcast(self) -> RenderNode
fn upcast_ref(&self) -> &RenderNode
sourceimpl StaticType for ConicGradientNode
impl StaticType for ConicGradientNode
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of Self
.
sourceimpl ToValue for ConicGradientNode
This is supported on crate feature v4_6
only.
impl ToValue for ConicGradientNode
This is supported on crate feature
v4_6
only.sourceimpl ToValueOptional for ConicGradientNode
This is supported on crate feature v4_6
only.
impl ToValueOptional for ConicGradientNode
This is supported on crate feature
v4_6
only.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 ConicGradientNode
This is supported on crate feature v4_6
only.
impl ValueType for ConicGradientNode
This is supported on crate feature
v4_6
only.Auto Trait Implementations
impl RefUnwindSafe for ConicGradientNode
impl !Send for ConicGradientNode
impl !Sync for ConicGradientNode
impl Unpin for ConicGradientNode
impl UnwindSafe for ConicGradientNode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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 T where
T: StaticType,
impl<T> StaticTypeExt for T where
T: StaticType,
sourcefn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
sourceimpl<T> ToClosureReturnValue for T where
T: ToValue,
impl<T> ToClosureReturnValue for T where
T: ToValue,
fn to_closure_return_value(&self) -> Option<Value>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more