Struct gsk4::RadialGradientNode
source · [−]#[repr(transparent)]pub struct RadialGradientNode { /* private fields */ }
Implementations
sourceimpl RadialGradientNode
impl RadialGradientNode
pub fn new(
bounds: &Rect,
center: &Point,
hradius: f32,
vradius: f32,
start: f32,
end: f32,
color_stops: &[ColorStop]
) -> RadialGradientNode
pub fn center(&self) -> Point
pub fn color_stops(&self) -> Vec<ColorStop>
pub fn end(&self) -> f32
pub fn hradius(&self) -> f32
pub fn n_color_stops(&self) -> usize
pub fn start(&self) -> f32
pub fn vradius(&self) -> f32
Methods from Deref<Target = RenderNode>
pub const NONE: Option<&'static RenderNode> = None
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 RadialGradientNode
impl AsRef<RenderNode> for RadialGradientNode
sourcefn as_ref(&self) -> &RenderNode
fn as_ref(&self) -> &RenderNode
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for RadialGradientNode
impl Clone for RadialGradientNode
sourceimpl Debug for RadialGradientNode
impl Debug for RadialGradientNode
sourceimpl Deref for RadialGradientNode
impl Deref for RadialGradientNode
type Target = RenderNode
type Target = RenderNode
The resulting type after dereferencing.
sourceimpl Display for RadialGradientNode
impl Display for RadialGradientNode
sourceimpl<'a> FromValue<'a> for RadialGradientNode
Available on crate feature v4_6
only.
impl<'a> FromValue<'a> for RadialGradientNode
Available on crate feature
v4_6
only.type Checker = GenericValueTypeOrNoneChecker<RadialGradientNode>
type Checker = GenericValueTypeOrNoneChecker<RadialGradientNode>
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 RadialGradientNode
impl IsRenderNode for RadialGradientNode
const NODE_TYPE: RenderNodeType = RenderNodeType::RadialGradientNode
fn upcast(self) -> RenderNode
fn upcast_ref(&self) -> &RenderNode
sourceimpl StaticType for RadialGradientNode
impl StaticType for RadialGradientNode
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of Self
.
sourceimpl ToValue for RadialGradientNode
Available on crate feature v4_6
only.
impl ToValue for RadialGradientNode
Available on crate feature
v4_6
only.sourceimpl ToValueOptional for RadialGradientNode
Available on crate feature v4_6
only.
impl ToValueOptional for RadialGradientNode
Available 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 RadialGradientNode
Available on crate feature v4_6
only.
impl ValueType for RadialGradientNode
Available on crate feature
v4_6
only.type Type = RadialGradientNode
type Type = RadialGradientNode
Type to get the Type
from. Read more
Auto Trait Implementations
impl RefUnwindSafe for RadialGradientNode
impl !Send for RadialGradientNode
impl !Sync for RadialGradientNode
impl Unpin for RadialGradientNode
impl UnwindSafe for RadialGradientNode
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.