Struct gsk4::OutsetShadowNode
source · [−]#[repr(transparent)]pub struct OutsetShadowNode { /* private fields */ }
Implementations
sourceimpl OutsetShadowNode
impl OutsetShadowNode
pub fn new(
outline: &RoundedRect,
color: &RGBA,
dx: f32,
dy: f32,
spread: f32,
blur_radius: f32
) -> OutsetShadowNode
pub fn blur_radius(&self) -> f32
pub fn color(&self) -> RGBA
pub fn dx(&self) -> f32
pub fn dy(&self) -> f32
pub fn outline(&self) -> RoundedRect
pub fn spread(&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 OutsetShadowNode
impl AsRef<RenderNode> for OutsetShadowNode
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 OutsetShadowNode
impl Clone for OutsetShadowNode
sourceimpl Debug for OutsetShadowNode
impl Debug for OutsetShadowNode
sourceimpl Deref for OutsetShadowNode
impl Deref for OutsetShadowNode
type Target = RenderNode
type Target = RenderNode
The resulting type after dereferencing.
sourceimpl Display for OutsetShadowNode
impl Display for OutsetShadowNode
sourceimpl<'a> FromValue<'a> for OutsetShadowNode
Available on crate feature v4_6
only.
impl<'a> FromValue<'a> for OutsetShadowNode
Available on crate feature
v4_6
only.type Checker = GenericValueTypeOrNoneChecker<OutsetShadowNode>
type Checker = GenericValueTypeOrNoneChecker<OutsetShadowNode>
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 OutsetShadowNode
impl IsRenderNode for OutsetShadowNode
const NODE_TYPE: RenderNodeType = RenderNodeType::OutsetShadowNode
fn upcast(self) -> RenderNode
fn upcast_ref(&self) -> &RenderNode
sourceimpl StaticType for OutsetShadowNode
impl StaticType for OutsetShadowNode
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of Self
.
sourceimpl ToValue for OutsetShadowNode
Available on crate feature v4_6
only.
impl ToValue for OutsetShadowNode
Available on crate feature
v4_6
only.sourceimpl ToValueOptional for OutsetShadowNode
Available on crate feature v4_6
only.
impl ToValueOptional for OutsetShadowNode
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 OutsetShadowNode
Available on crate feature v4_6
only.
impl ValueType for OutsetShadowNode
Available on crate feature
v4_6
only.type Type = OutsetShadowNode
type Type = OutsetShadowNode
Type to get the Type
from. Read more
Auto Trait Implementations
impl RefUnwindSafe for OutsetShadowNode
impl !Send for OutsetShadowNode
impl !Sync for OutsetShadowNode
impl Unpin for OutsetShadowNode
impl UnwindSafe for OutsetShadowNode
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.